π₯ Make videos programmatically with React
docs pages
JonnyBurgera785bae1931a
diff --git a/packages/docs/docs/media/support.mdx b/packages/docs/docs/media/support.mdxnew file mode 100644index 0000000000..cff5ec8e94--- /dev/null+++ b/packages/docs/docs/media/support.mdx@@ -0,0 +1,27 @@+---+title: Supported media+sidebar_label: Supported media+crumb: '@remotion/media'+---++The new [`<Audio>`](/docs/media/audio) and [`<Video>`](/docs/media/video) tags from `@remotion/media` are based on [Mediabunny](https://mediabunny.dev) and WebCodecs.++## CORS++Any assets must be either CORS-enabled or served from the bundle using [`staticFile()`](/docs/staticfile).++## Supported formats and codecs++The supported formats and codecs are defined here: [Mediabunny - Supported formats and codecs](/docs/mediabunny/formats).++## Matroska limitation++Matroska-based files (`.mkv`, `.webm`) are supported, but for the audio to be extracted, the entire audio up to the point of extraction must be extracted as well because Matroska containers only store millisecond-precise timestamps in the container, but more precision is needed correctly concatenate audio parts.++For example: If you want to render the third minute of a 10 minute audio, the first 2 minutes of the audio must be decoded as well because only then the precise timestamps of the audio will be unveiled.++Prefer non-Matroska-based files (`.mp4`, `.mov`, `.m4a`) when you are doing distributed rendering (e.g. on Lambda) if possible.++## Fallback to `<OffthreadVideo>`++If a media file cannot be decoded, be it because of an unsupported codec or because it does not support CORS, then we plan on automatically falling back to [`<OffthreadVideo>`](/docs/offthreadvideo) if available. This is currently not yet implemented.diff --git a/packages/docs/docs/mediabunny/formats.mdx b/packages/docs/docs/mediabunny/formats.mdxnew file mode 100644index 0000000000..886a4ecd41--- /dev/null+++ b/packages/docs/docs/mediabunny/formats.mdx@@ -0,0 +1,101 @@+---+title: Supported formats and codecs by Mediabunny+crumb: 'Mediabunny'+sidebar_label: Supported formats+---++The following features from Remotion are using [Mediabunny](https://mediabunny.dev):++- [`<Video>`](/docs/media/video) from [`@remotion/media`](/docs/media)+- [`<Audio>`](/docs/media/audio) from [`@remotion/media`](/docs/media)++Therefore, format support is bound to the [formats and codecs supported by Mediabunny](/guide/supported-formats-and-codecs).+Mediabunny's compatibility data is mirrored on this page.++## Supported container formats++- ISOBMFF-based formats (`.mp4`, `.m4v`, `.m4a`, ...)+- QuickTime File Format (`.mov`)+- Matroska (`.mkv`)+- WebM (`.webm`)+- Ogg (`.ogg`)+- MP3 (`.mp3`)+- WAVE (`.wav`)+- ADTS (`.aac`)+- FLAC (`.flac`)++## Video codecs++- `'avc'` - Advanced Video Coding (AVC) / H.264+- `'hevc'` - High Efficiency Video Coding (HEVC) / H.265++:::note+Chrome Headless Shell does not support HEVC in headless mode.+This means that during rendering of Remotion videos server-side, HEVC videos cannot be decoded using [`<Video>`](/docs/media/video) from [`@remotion/media`](/docs/media).+:::++- `'vp8'` - VP8+- `'vp9'` - VP9+- `'av1'` - AOMedia Video 1 (AV1)++## Audio codecs++- `'aac'` - Advanced Audio Coding (AAC)+- `'opus'` - Opus+- `'mp3'` - MP3+- `'vorbis'` - Vorbis+- `'flac'` - Free Lossless Audio Codec (FLAC)+- `'pcm-u8'` - 8-bit unsigned PCM+- `'pcm-s8'` - 8-bit signed PCM+- `'pcm-s16'` - 16-bit little-endian signed PCM+- `'pcm-s16be'` - 16-bit big-endian signed PCM+- `'pcm-s24'` - 24-bit little-endian signed PCM+- `'pcm-s24be'` - 24-bit big-endian signed PCM+- `'pcm-s32'` - 32-bit little-endian signed PCM+- `'pcm-s32be'` - 32-bit big-endian signed PCM+- `'pcm-f32'` - 32-bit little-endian float PCM+- `'pcm-f32be'` - 32-bit big-endian float PCM+- `'pcm-f64'` - 64-bit little-endian float PCM+- `'pcm-f64be'` - 64-bit big-endian float PCM+- `'ulaw'` - ΞΌ-law PCM+- `'alaw'` - A-law PCM++## Compatibility table++Not all codecs can be used with all containers. The following table specifies the supported codec-container combinations:++| | .mp4 | .mov | .mkv | .webm | .ogg | .mp3 | .wav | .aac | .flac |+| :-----------: | :--: | :--: | :--: | :---: | :--: | :--: | :--: | :--: | :---: |+| `'avc'` | β | β | β | | | | | | |+| `'hevc'` | β | β | β | | | | | | |+| `'vp8'` | β | β | β | β | | | | | |+| `'vp9'` | β | β | β | β | | | | | |+| `'av1'` | β | β | β | β | | | | | |+| `'aac'` | β | β | β | | | | | β | |+| `'opus'` | β | β | β | β | β | | | | |+| `'mp3'` | β | β | β | | | β | | | |+| `'vorbis'` | β | β | β | β | β | | | | |+| `'flac'` | β | β | β | | | | | | β |+| `'pcm-u8'` | | β | β | | | | β | | |+| `'pcm-s8'` | | β | | | | | | | |+| `'pcm-s16'` | β | β | β | | | | β | | |+| `'pcm-s16be'` | β | β | β | | | | | | |+| `'pcm-s24'` | β | β | β | | | | β | | |+| `'pcm-s24be'` | β | β | β | | | | | | |+| `'pcm-s32'` | β | β | β | | | | β | | |+| `'pcm-s32be'` | β | β | β | | | | | | |+| `'pcm-f32'` | β | β | β | | | | β | | |+| `'pcm-f32be'` | β | β | | | | | | | |+| `'pcm-f64'` | β | β | β | | | | | | |+| `'pcm-f64be'` | β | β | | | | | | | |+| `'ulaw'` | | β | | | | | β | | |+| `'alaw'` | | β | | | | | β | | |++## CORS++All media files must be either CORS-enabled or served from the bundle using [`staticFile()`](/docs/staticfile).++## See also++- [`@remotion/media` - Supported media](/docs/media/support)+- [Mediabunny - Supported formats and codecs](https://mediabunny.dev/guide/supported-formats-and-codecs)diff --git a/packages/docs/docs/mediabunny.mdx b/packages/docs/docs/mediabunny/index.mdxsimilarity index 98%rename from packages/docs/docs/mediabunny.mdxrename to packages/docs/docs/mediabunny/index.mdxindex 78fb56e6c4..e55b78b24a 100644--- a/packages/docs/docs/mediabunny.mdx+++ b/packages/docs/docs/mediabunny/index.mdx@@ -1,9 +1,8 @@---image: /generated/articles-docs-mediabunny.png-id: mediabunnytitle: Remotion and Mediabunnycrumb: 'Migration'-sidebar_label: Mediabunny+sidebar_label: Remotion and Mediabunny---[On September 1st 2025, we announced](/blog/mediabunny) that we are combining our efforts and are helping Mediabunny become the definitive multimedia library for the web!diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex afb349fb9e..f72ce78ddf 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -398,7 +398,7 @@ const sidebars: SidebarsConfig = {type: 'doc',id: 'media/index',},- items: ['media/audio', 'media/video'],+ items: ['media/audio', 'media/video', 'media/support'],},{type: 'category',@@ -1201,7 +1201,15 @@ const sidebars: SidebarsConfig = {href: '/docs/api',label: 'API Reference',},- 'mediabunny',+ {+ type: 'category',+ label: 'Mediabunny',+ link: {+ type: 'doc',+ id: 'mediabunny/index',+ },+ items: ['mediabunny/index', 'mediabunny/formats'],+ },'upgrading',{type: 'category',