Skip to content

🎥 Make videos programmatically with React

progress release notes

Jonny Burger2e8f17fe356a
diff --git a/packages/docs/blog/2021-04-15-remotion-2-0.md b/packages/docs/blog/2021-04-15-remotion-2-0.md
index 17c9a17c28..8a1606bb89 100644
--- a/packages/docs/blog/2021-04-15-remotion-2-0.md
+++ b/packages/docs/blog/2021-04-15-remotion-2-0.md
@@ -7,17 +7,29 @@ author_url: https://github.com/JonnyBurger
author_image_url: https://avatars2.githubusercontent.com/u/1629785?s=460&u=12eb94da6070d00fc924761ce06e3a428d01b7e9&v=4
---
+This is our biggest and best release so far - today we are unloading a lot of awesome, highly requested features!
+
## Audio support
+<div>
+ <video width="100%" height="100%" controls playsinline autoplay="true" muted loop>
+ <source src="/img/audio.mp4" type="video/mp4" />
+ </video>
+</div>
+
+We are happy to ship really solid audio support with a really flexible API. First the basics: You can [import one or multiple audio tracks into your project, cut, trim and align them in your composition](/docs/using-audio). You can control the volume for the entirety of a track, or you can control it frame by frame and create arbitrary fade effects and much more. You can apply your React mindset - Remotion doesn't care how you render the audio tag, just that it's there. How we tell FFMPEG to mix the audio just like you hear it in the browser preview is really complex and was challenging to build - the prouder we are of the outcome!
+
## Audio visualization
-With Remotion 2.0's audio visualization APIs, you can create animations based on the frequency of the audio. This is often used to make graphics react to the volume or sound spectrum of the music.
+With new audio visualization APIs, you can create make your visuals react to the frequency of the audio.
+
+What you need are the new [`getAudioData()`](/docs/get-audio-data) and [`visualizeAudio()`](/docs/visualize-audio) APIs that have been published [in it's own package](/blog/#remotionmedia-utils-package).
-Using the [`visualizeAudio()`](/docs/visualize-audio) API of `@remotion/media-utils`, you can get an audio spectrum for the current frame, with the `numberOfSamples` parameter being an option to control the amount of detail you need.
+Read more about [audio visualization](/docs/audio-visualization) in the docs or [watch a sample video](https://twitter.com/JNYBGR/status/1378444074634592262) (the source can be found [here](https://github.com/yuta0801/remotion/blob/1103092f4902fb11f41877a05398dab6ce7203e7/packages/example/src/AudioVisualization/index.tsx)).
-Read more about [`audio-visualization`](/docs/audio-visualization).
+## Export as MP3, AAC, WAV
-## Export as audio
+You can now also completely omit the video from the output and only emit an audio file. Yes, Remotion can also be used as an audio editing program! Pass `mp3`, `aac` or `wav` as a codec [using the `--codec` flag](/docs/cli#flags) or [in your config file](/docs/config#setcodec)
## `remotion/media-utils` package
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.md
index 3f6c55fc56..881dc2228e 100644
--- a/packages/docs/docs/cli.md
+++ b/packages/docs/docs/cli.md
@@ -21,7 +21,7 @@ Besides choosing a video and output location with the command line arguments, th
- `--quality`: [Value between 0 and 100 for JPEG rendering quality](/docs/config#setquality). Doesn't work when PNG frames are rendered. Available since v1.4.
- `--overwrite`: [Write to output even if file already exists.](/docs/config#setoverwriteoutput)
- `--sequence`: [Pass this flag if you want an image sequence as the output instead of a video.](/docs/config#setimagesequence) Available since v1.4.
-- `--codec`: [`h264` or `h265` or `png` or `vp8` or `vp9`](/docs/config#setoutputformat). If you don't supply `--codec`, it will use the H.264 encoder. Available since v1.4.
+- `--codec`: [`h264` or `h265` or `png` or `vp8` or `vp9` or `mp3` or `aac` or `wav`](/docs/config#setcodec). If you don't supply `--codec`, it will use the H.264 encoder. Available since v1.4.
- `--crf`: [To set Constant Rate Factor (CRF) of the output](/docs/config#setcrf). Minimum 0. Use this rate control mode if you want to keep the best quality and care less about the file size. Available since v1.4.
- `--browser-executable`: [Path to a Chrome executable](/docs/config#setbrowserexecutable). If not specified and Remotion cannot find one, it will download one during rendering. Available since v1.5.
- `--frames`: [Render a still frame or a subset of a video](/docs/config#setframerange). Example: `--frames=0-9` (To select the first 10 frames) or `--frames=50` (To render a still of the 51st frame). Available since v2.0.
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index 7b20e72516..219e4fb731 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -145,6 +145,9 @@ Choose one of the supported codecs: `h264` _(default)_, `h265`, `vp8`, `vp9`.
- `h265` is the successor of H264, with smaller file sizes. Also known as HEVC. Poor browser compatibility.
- `vp8` is the codec for WebM.
- `vp9` is the next-generation codec for WebM. Lower file size, longer compression time.
+- `mp3` will export audio only as an MP3 file.
+- `wav` will export audio only as an WAV file.
+- `aac` will export audio only as an AAC file.
```tsx
Config.Output.setCodec('h265');
diff --git a/packages/docs/docs/encoding.md b/packages/docs/docs/encoding.md
index f01752efe5..0bc7792235 100644
--- a/packages/docs/docs/encoding.md
+++ b/packages/docs/docs/encoding.md
@@ -130,6 +130,10 @@ VP9
You can [set a CRF in the config file using the `Config.Output.setCrf()`](config#setcrf) function or use the [`--crf`](/docs/cli#flags) command line flag.
+## Audio-only export
+
+You can pass `mp3`, `wav` or `aac` as a codec. If you do it, an audio file will be output in the corresponding format. Quality settings will be ignored.
+
## What other settings do you need?
Which of the dozens of options that FFMPEG supports would you like to see exposed in Remotion? Let us know by opening an [issue on our issue tracker!](https://github.com/JonnyBurger/remotion/issues)
diff --git a/packages/docs/static/img/audio.mp4 b/packages/docs/static/img/audio.mp4
new file mode 100644
index 0000000000..6309eb3bb0
Binary files /dev/null and b/packages/docs/static/img/audio.mp4 differ