Skip to content

🎥 Make videos programmatically with React

added remotion/media-utils package doc

Shankhadeep Deyee8ed551e547
diff --git a/packages/docs/blog/2021-04-09-remotion-2-0.md b/packages/docs/blog/2021-04-09-remotion-2-0.md
index 34722e895e..a466b60641 100644
--- a/packages/docs/blog/2021-04-09-remotion-2-0.md
+++ b/packages/docs/blog/2021-04-09-remotion-2-0.md
@@ -16,6 +16,19 @@ author_image_url: https://avatars2.githubusercontent.com/u/1629785?s=460&u=12eb9
## Rich timeline
## `remotion/media-utils` package
+with Remotion 2.0 we are introducing a new remotion package called `@remotion/media-utils` with new audio and video metadata api.
+
+- [`getAudioData()`](get-audio-data) Takes an audio `src`, loads it and returns data and metadata for the specified source.
+
+- [`getAudioDuration()`](get-audio-duration) Gets the duration in seconds of an audio source. Remotion will create an invisible `<Audio>` tag, load the audio and return the duration.
+
+- [`getVideoMetadata()`](get-video-metadata) Takes a `src` to a video, loads it and returns metadata for the specified source.
+
+- [`getWaveformPortion()`](get-waveform-portion) Takes bulky waveform data (for example fetched by `getAudioData()`) and returns a trimmed and simplified version of it, for simpler visualization.
+
+- [`useAudioData()`](use-audio-data) This convienience function wraps the [`getAudioData()`](/docs/get-audio-data) function into a hook and does 3 things. **1**. Keeps the audio data in a state **2**. Wraps the function in a [`delayRender()` / `continueRender()`](/docs/data-fetching) pattern **3**. Handles the case where the component gets unmounted while the fetching is in progress and a React error is thrown.
+
+- [`visualizeAudio()`](visualize-audio) This function takes in `AudioData` (preferrably fetched by the `useAudioData()` hook) and processes it in a way that makes visualizing the audio that is playing at the current frame easy.
## Rich Timeline