🎥 Make videos programmatically with React
cool
Jonny Burger3be76724062f
diff --git a/packages/docs/docs/media-parser/download-and-parse-media.mdx b/packages/docs/docs/media-parser/download-and-parse-media.mdxindex dd919f9b70..f494fd73ad 100644--- a/packages/docs/docs/media-parser/download-and-parse-media.mdx+++ b/packages/docs/docs/media-parser/download-and-parse-media.mdx@@ -6,6 +6,10 @@ slug: /media-parser/download-and-parse-mediacrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+Same as [`parseMedia()`](/docs/media-parser/parse-media), but also downloads the media file to disk.Meant to be used in Node.js and Bun.diff --git a/packages/docs/docs/media-parser/download-and-parse.mdx b/packages/docs/docs/media-parser/download-and-parse.mdxindex 8d705e8c3e..46aefb29ec 100644--- a/packages/docs/docs/media-parser/download-and-parse.mdx+++ b/packages/docs/docs/media-parser/download-and-parse.mdx@@ -7,6 +7,10 @@ slug: /media-parser/download-and-parsecrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+[`@remotion/media-parser`](/docs/media-parser) allows you to download a remote video to disk, and while the media is downloading, retrieve metadata from it as soon as it is available.Here is an example using the [`downloadAndParseMedia()`](/docs/media-parser/download-and-parse-media) API:diff --git a/packages/docs/docs/media-parser/fast-and-slow.mdx b/packages/docs/docs/media-parser/fast-and-slow.mdxindex dcdeb908b6..eb8f70af61 100644--- a/packages/docs/docs/media-parser/fast-and-slow.mdx+++ b/packages/docs/docs/media-parser/fast-and-slow.mdx@@ -6,6 +6,10 @@ slug: /media-parser/fast-and-slowcrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+[`@remotion/media-parser`](/docs/media-parser) allows you to specify the information that you want to obtain.It then reads as little data as possible to achieve the goal.diff --git a/packages/docs/docs/media-parser/fields.mdx b/packages/docs/docs/media-parser/fields.mdxindex 61f02cc451..95ffe020dd 100644--- a/packages/docs/docs/media-parser/fields.mdx+++ b/packages/docs/docs/media-parser/fields.mdx@@ -6,6 +6,10 @@ slug: /media-parser/fieldscrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+The following fields are available in [`parseMedia()`](/docs/media-parser/parse-media):### `dimensions`diff --git a/packages/docs/docs/media-parser/foreign-file-types.mdx b/packages/docs/docs/media-parser/foreign-file-types.mdxindex 9c1c5b360e..bd445a2add 100644--- a/packages/docs/docs/media-parser/foreign-file-types.mdx+++ b/packages/docs/docs/media-parser/foreign-file-types.mdx@@ -6,6 +6,10 @@ slug: /media-parser/foreign-file-typescrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+If you pass a file that is not one of the supported formats, [`parseMedia()`](/docs/media-parser/parse-media) will throw an error.Sometimes this error can contain useful information about the file type nonetheless.diff --git a/packages/docs/docs/media-parser/format-support.mdx b/packages/docs/docs/media-parser/format-support.mdxindex 1a4c44b565..2313424808 100644--- a/packages/docs/docs/media-parser/format-support.mdx+++ b/packages/docs/docs/media-parser/format-support.mdx@@ -6,6 +6,10 @@ slug: /media-parser/format-supportcrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+`@remotion/media-parser` supports a variety of media formats:## ISO Base Media formats (`.mp4`, `.mov`, `.m4a`)diff --git a/packages/docs/docs/media-parser/has-been-aborted.mdx b/packages/docs/docs/media-parser/has-been-aborted.mdxindex 35e0b3aa4e..680ce0c7f5 100644--- a/packages/docs/docs/media-parser/has-been-aborted.mdx+++ b/packages/docs/docs/media-parser/has-been-aborted.mdx@@ -6,6 +6,10 @@ slug: /media-parser/has-been-abortedcrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+Pass an error to the `hasBeenAborted()` function to check if the error was thrown because you opted to abort the render.In this case, the error is intentional and you probably don't want to display it.diff --git a/packages/docs/docs/media-parser/index.mdx b/packages/docs/docs/media-parser/index.mdxindex ce5819f87f..c231fffc47 100644--- a/packages/docs/docs/media-parser/index.mdx+++ b/packages/docs/docs/media-parser/index.mdx@@ -10,6 +10,10 @@ import {TableOfContents, MediaParserGuideTableOfContents, ReadersTableOfContents# @remotion/media-parser+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+<img src="/img/media-parser.png" alt="Media Parser" /><br /><br />diff --git a/packages/docs/docs/media-parser/media-parser-controller.mdx b/packages/docs/docs/media-parser/media-parser-controller.mdxindex ef312b0d07..570cfd5916 100644--- a/packages/docs/docs/media-parser/media-parser-controller.mdx+++ b/packages/docs/docs/media-parser/media-parser-controller.mdx@@ -6,6 +6,10 @@ slug: /media-parser/media-parser-controllercrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+Pass `mediaParserController()` to [`controller`](/docs/media-parser/parse-media#controller) to steer the `parseMedia()` function.Each `mediaParserController` can only be attached to 1 [`parseMedia()`](/docs/media-parser/parse-media) call.diff --git a/packages/docs/docs/media-parser/metadata.mdx b/packages/docs/docs/media-parser/metadata.mdxindex e806e11b4c..44266ee51f 100644--- a/packages/docs/docs/media-parser/metadata.mdx+++ b/packages/docs/docs/media-parser/metadata.mdx@@ -7,6 +7,10 @@ sidebar_label: Getting video metadatacrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+Using [`@remotion/media-parser`](/docs/media-parser), you can get metadata from a [variety of media formats](/docs/media-parser/format-support).## Getting metadata from a URLdiff --git a/packages/docs/docs/media-parser/node-reader.mdx b/packages/docs/docs/media-parser/node-reader.mdxindex f5dcacced1..73415516d5 100644--- a/packages/docs/docs/media-parser/node-reader.mdx+++ b/packages/docs/docs/media-parser/node-reader.mdx@@ -6,6 +6,10 @@ slug: /media-parser/node-readercrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+A [reader](/docs/media-parser/readers) for `@remotion/media-parser` that reads from the local file system using Node.js `fs` module.It also works with Bun.diff --git a/packages/docs/docs/media-parser/node-writer.mdx b/packages/docs/docs/media-parser/node-writer.mdxindex eac30b58cd..407b99c2cb 100644--- a/packages/docs/docs/media-parser/node-writer.mdx+++ b/packages/docs/docs/media-parser/node-writer.mdx@@ -6,6 +6,10 @@ slug: /media-parser/node-writercrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+:::warning**Unstable API**: The writer interface is experimental. The API may change in the future.:::diff --git a/packages/docs/docs/media-parser/parse-media-on-server-worker.mdx b/packages/docs/docs/media-parser/parse-media-on-server-worker.mdxindex 001daf1c37..7022040fe5 100644--- a/packages/docs/docs/media-parser/parse-media-on-server-worker.mdx+++ b/packages/docs/docs/media-parser/parse-media-on-server-worker.mdx@@ -6,6 +6,10 @@ slug: /media-parser/parse-media-on-server-workercrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+This API is the same as [`parseMediaOnWebWorker()`](/docs/media-parser/parse-media-on-web-worker), but besides reading from URLs and [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) objects, you can also pass file paths that will be read using the `fs` module.This makes the function also work on the server, but incompatible with the browser.diff --git a/packages/docs/docs/media-parser/parse-media-on-web-worker.mdx b/packages/docs/docs/media-parser/parse-media-on-web-worker.mdxindex dc57be3cf3..3ae948e83e 100644--- a/packages/docs/docs/media-parser/parse-media-on-web-worker.mdx+++ b/packages/docs/docs/media-parser/parse-media-on-web-worker.mdx@@ -6,6 +6,10 @@ slug: /media-parser/parse-media-on-web-workercrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+This API works the same as [`parseMedia()`](/docs/media-parser/parse-media), except that it executes the parse on a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers). Web Workers are only available in Browsers and in Bun.This is useful if you are processing large files which parsing process would block the UI thread for a longer time.diff --git a/packages/docs/docs/media-parser/parse-media.mdx b/packages/docs/docs/media-parser/parse-media.mdxindex 4307f147ac..88cc8564b2 100644--- a/packages/docs/docs/media-parser/parse-media.mdx+++ b/packages/docs/docs/media-parser/parse-media.mdx@@ -6,6 +6,10 @@ slug: /media-parser/parse-mediacrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+_Part of the [`@remotion/media-parser`](/docs/media-parser) package.__available from v4.0.190_diff --git a/packages/docs/docs/media-parser/pause-resume-abort.mdx b/packages/docs/docs/media-parser/pause-resume-abort.mdxindex 2ba261df86..5374e1a059 100644--- a/packages/docs/docs/media-parser/pause-resume-abort.mdx+++ b/packages/docs/docs/media-parser/pause-resume-abort.mdx@@ -7,6 +7,10 @@ slug: /media-parser/pause-resume-abortcrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+You can pause, resume and abort the parsing process.Create a [`mediaParserController()`](/docs/media-parser/media-parser-controller) and use the following methods:diff --git a/packages/docs/docs/media-parser/readers.mdx b/packages/docs/docs/media-parser/readers.mdxindex 10bf0a84f2..2b185a8667 100644--- a/packages/docs/docs/media-parser/readers.mdx+++ b/packages/docs/docs/media-parser/readers.mdx@@ -6,6 +6,10 @@ slug: /media-parser/readerscrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+import {ReadersTableOfContents} from './TableOfContents';The [`parseMedia()`](/docs/media-parser) function takes a reader interface which defines how the source is being read.diff --git a/packages/docs/docs/media-parser/runtime-support.mdx b/packages/docs/docs/media-parser/runtime-support.mdxindex 33e805098f..2b2b6fd783 100644--- a/packages/docs/docs/media-parser/runtime-support.mdx+++ b/packages/docs/docs/media-parser/runtime-support.mdx@@ -6,6 +6,10 @@ slug: /media-parser/runtime-supportcrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+[`@remotion/media-parser`](/docs/media-parser) works in the Browser, Node.js and Bun.## Runtime versionsdiff --git a/packages/docs/docs/media-parser/samples.mdx b/packages/docs/docs/media-parser/samples.mdxindex 30e9f361ec..32115c9821 100644--- a/packages/docs/docs/media-parser/samples.mdx+++ b/packages/docs/docs/media-parser/samples.mdx@@ -6,6 +6,10 @@ slug: /media-parser/samplescrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+With [`parseMedia()`](/docs/media-parser/parse-media), you can extract video and audio samples from a variety of [media formats](/docs/media-parser/format-support).## Getting tracks@@ -18,10 +22,10 @@ import {parseMedia} from '@remotion/media-parser';const samples = await parseMedia({src: 'https://parser.media/video.mp4',onVideoTrack: ({track, container}) => {- console.log(track.codecEnum)+ console.log(track.codecEnum);// ^?- return null- }+ return null;+ },});```@@ -40,10 +44,10 @@ const samples = await parseMedia({src: 'https://parser.media/video.mp4',onVideoTrack: ({track, container}) => {return (sample) => {- console.log(sample)+ console.log(sample);// ^?- }- }+ };+ },});```@@ -61,21 +65,21 @@ const samples = await parseMedia({onVideoTrack: ({track, container}) => {return (sample) => {return () => {- console.log(sample, 'is the last sample')- }- }- }+ console.log(sample, 'is the last sample');+ };+ };+ },});```## Seeking in callbacks-In all types of callbacks, you can pause, resume, seek and abort.+In all types of callbacks, you can pause, resume, seek and abort.```tsx twoslash title="Looping the parse"import {parseMedia, mediaParserController} from '@remotion/media-parser';-const controller = mediaParserController()+const controller = mediaParserController();const samples = await parseMedia({src: 'https://parser.media/video.mp4',@@ -84,11 +88,11 @@ const samples = await parseMedia({return (sample) => {return () => {// When it's the last sample, seek to the beginning- controller.seek(0)- }- }- }+ controller.seek(0);+ };+ };+ },});```-See: [`mediaParserController()`](/docs/media-parser/media-parser-controller) and [Seeking](/docs/media-parser/seeking).\ No newline at end of file+See: [`mediaParserController()`](/docs/media-parser/media-parser-controller) and [Seeking](/docs/media-parser/seeking).diff --git a/packages/docs/docs/media-parser/seeking-hints.mdx b/packages/docs/docs/media-parser/seeking-hints.mdxindex 22443dd018..f612ea6701 100644--- a/packages/docs/docs/media-parser/seeking-hints.mdx+++ b/packages/docs/docs/media-parser/seeking-hints.mdx@@ -6,6 +6,10 @@ slug: /media-parser/seeking-hintscrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+:::warningThis feature is experimental and not yet ready for production use.:::diff --git a/packages/docs/docs/media-parser/seeking.mdx b/packages/docs/docs/media-parser/seeking.mdxindex 2041f37a88..df5887ce8e 100644--- a/packages/docs/docs/media-parser/seeking.mdx+++ b/packages/docs/docs/media-parser/seeking.mdx@@ -6,6 +6,10 @@ slug: /media-parser/seekingcrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+# Seeking<AvailableFrom v="4.0.291" />In [`parseMedia()`](/docs/media-parser/parse-media), [`parseMediaOnWebWorker()`](/docs/media-parser/parse-media-on-web-worker) and [`parseMediaOnServerWorker()`](/docs/media-parser/parse-media-on-server-worker), you can seek to a different position in the media file.@@ -72,7 +76,7 @@ await parseMedia({controller,onVideoTrack: () => {return async () => {- const result = await controller.simulateSeek(3);+ const result = await controller.simulateSeek(3);console.log(result); // { "type": "do-seek", byte: 5763, timeInSeconds: 0 }};},diff --git a/packages/docs/docs/media-parser/selecting-streams.mdx b/packages/docs/docs/media-parser/selecting-streams.mdxindex 9a2f4e80b8..17c4194ac7 100644--- a/packages/docs/docs/media-parser/selecting-streams.mdx+++ b/packages/docs/docs/media-parser/selecting-streams.mdx@@ -6,6 +6,10 @@ slug: /media-parser/stream-selectioncrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+Some containers such as `.m3u8` (and in the future `.mpd`) support multiple equivalent streams, of which you are supposed to select one.For example, a `.m3u8` file might contain multiple video streams with different resolutions.diff --git a/packages/docs/docs/media-parser/tags.mdx b/packages/docs/docs/media-parser/tags.mdxindex da320c9c16..96e4a3f3e1 100644--- a/packages/docs/docs/media-parser/tags.mdx+++ b/packages/docs/docs/media-parser/tags.mdx@@ -7,6 +7,10 @@ slug: /media-parser/tagscrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+[`@remotion/media-parser`](/docs/media-parser) allows you to extract metadata that is embedded in video files, such as ID3 tags or EXIF data.```tsx twoslash title="Extracting metadata"diff --git a/packages/docs/docs/media-parser/types.mdx b/packages/docs/docs/media-parser/types.mdxindex 1dc934490b..65f4a9c948 100644--- a/packages/docs/docs/media-parser/types.mdx+++ b/packages/docs/docs/media-parser/types.mdx@@ -7,6 +7,10 @@ slug: /media-parser/typescrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+The following types are part of the stable API of `@remotion/media-parser`:## `MediaParserDimensions`@@ -315,4 +319,3 @@ import type {M3uAssociatedPlaylist} from '@remotion/media-parser';import type {SeekResolution} from '@remotion/media-parser';// ^?```-diff --git a/packages/docs/docs/media-parser/universal-reader.mdx b/packages/docs/docs/media-parser/universal-reader.mdxindex 9272e97bb7..a295ddf34e 100644--- a/packages/docs/docs/media-parser/universal-reader.mdx+++ b/packages/docs/docs/media-parser/universal-reader.mdx@@ -6,6 +6,10 @@ slug: /media-parser/universal-readercrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+A [reader](/docs/media-parser/readers) for [`@remotion/media-parser`](/docs/media-parser) that reads either from a URL, from a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) or from a local file path.It is the combination of [`nodeReader`](/docs/media-parser/node-reader) and [`webReader`](/docs/media-parser/web-reader).diff --git a/packages/docs/docs/media-parser/web-reader.mdx b/packages/docs/docs/media-parser/web-reader.mdxindex 403ed4fc96..57b52d9a03 100644--- a/packages/docs/docs/media-parser/web-reader.mdx+++ b/packages/docs/docs/media-parser/web-reader.mdx@@ -6,6 +6,10 @@ slug: /media-parser/web-readercrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+A [reader](/docs/media-parser/readers) for [`@remotion/media-parser`](/docs/media-parser) that reads either from a URL or from a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File).It is the default reader, and therefore does not have to be specified.diff --git a/packages/docs/docs/media-parser/webcodecs-timescale.mdx b/packages/docs/docs/media-parser/webcodecs-timescale.mdxindex 17c8b6c68e..83e273bc3b 100644--- a/packages/docs/docs/media-parser/webcodecs-timescale.mdx+++ b/packages/docs/docs/media-parser/webcodecs-timescale.mdx@@ -6,6 +6,10 @@ title: WEBCODECS_TIMESCALEcrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+`@remotion/media-parser` returns all samples with normalized timestamps in microseconds.This means the global timescale is `1_000_000`.diff --git a/packages/docs/docs/media-parser/webcodecs.mdx b/packages/docs/docs/media-parser/webcodecs.mdxindex 8ed9359b18..0bdc84aa83 100644--- a/packages/docs/docs/media-parser/webcodecs.mdx+++ b/packages/docs/docs/media-parser/webcodecs.mdx@@ -7,8 +7,11 @@ slug: /media-parser/webcodecscrumb: '@remotion/media-parser'----[`parseMedia()`](/docs/media-parser/parse-media) is able to extract tracks and samples from audio and video in a format that is suitable for usage with WebCodecs APIs.+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+[`parseMedia()`](/docs/media-parser/parse-media) is able to extract tracks and samples from audio and video in a format that is suitable for usage with WebCodecs APIs.## Minimal example@@ -34,6 +37,7 @@ const result = await parseMedia({},});```+## The importance of queueingimport {WebCodecsQueueing} from './WebCodecsQueueing';@@ -51,7 +55,6 @@ Since this will cause memory to build up, it will negatively impact the performaIt makes sense to connect the whole pipeline together and throttle each step so it does not perform faster than the next step.In the example above, six queues are required to be managed, with each one of them malfunctioning causing memory to run away.-## How Remotion helps you work with WebCodecsSince handling queueing correctly is a challenging task, we offer helpers that help you work with WebCodecs.@@ -59,11 +62,9 @@ Since handling queueing correctly is a challenging task, we offer helpers that hRemotion's primitives are designed to offer you functionality to implement queueing in a sensible way:- In [`parseMedia()`](/docs/media-parser/parse-media), callbacks are asnychronous, and as long as they don't resolve, the parsing process will not continue.-- The helper functions [`createAudioDecoder()`](/docs/webcodecs/create-audio-decoder) and [`createVideoDecoder()`](/docs/webcodecs/create-video-decoder) offer you a helper method `waitForQueueToBeLessThan()` which you can await.+- The helper functions [`createAudioDecoder()`](/docs/webcodecs/create-audio-decoder) and [`createVideoDecoder()`](/docs/webcodecs/create-video-decoder) offer you a helper method `waitForQueueToBeLessThan()` which you can await.- For processing video and audio frames as well as encoding video and audio, we don't offer helpers yet, but hope to do so soon.--## Practical considerationsIf you use `parseMedia()` with codecs, make the following considerations for your implementation.@@ -148,8 +149,6 @@ const onAudioTrack: MediaParserOnAudioTrack = async ({track}) => {Perform these checks in addition to the previously mentioned ones.:::--### Error handlingIf an error occurs, you get the error in the `error` callback that you passed to the `VideoDecoder` or `AudioDecoder` constructor.@@ -180,7 +179,6 @@ const onVideoTrack: MediaParserOnVideoTrack = async ({track}) => {- You should still perform the checks previously mentioned, but they are omitted from this example.:::-### Handling rotationWebCodecs do not seem to consider rotation.diff --git a/packages/docs/docs/media-parser/workers.mdx b/packages/docs/docs/media-parser/workers.mdxindex c8d1970647..bb5d885239 100644--- a/packages/docs/docs/media-parser/workers.mdx+++ b/packages/docs/docs/media-parser/workers.mdx@@ -7,6 +7,10 @@ slug: /media-parser/workerscrumb: '@remotion/media-parser'---+:::warning+[We are phasing out Media Parser and are moving to Mediabunny](/blog/mediabunny)!+:::+Parsing using [`parseMedia()`](/docs/media-parser/parse-media) will block the main thread of JavaScript, which is undesirable if you are displaying a UI in the browser, or are serving requests on a web server.You can run the parse on a [`Worker`](https://developer.mozilla.org/en-US/docs/Web/API/Worker) instead of on the main thread using [`parseMediaOnWebWorker()`](/docs/media-parser/parse-media-on-web-worker).diff --git a/packages/docs/docs/mediabunny.mdx b/packages/docs/docs/mediabunny.mdxindex 4118092e88..dcd4546ab4 100644--- a/packages/docs/docs/mediabunny.mdx+++ b/packages/docs/docs/mediabunny.mdx@@ -28,7 +28,7 @@ Here are some notable ones:- Foreign file probing- Native Web Worker integration- Download and Parse media-- ID3 Metadata+- ID3 and EXIF Metadata parsing**Features exclusive to Mediabunny**:diff --git a/packages/docs/docs/webcodecs/buffer-writer.mdx b/packages/docs/docs/webcodecs/buffer-writer.mdxindex e4268462c0..97096e225e 100644--- a/packages/docs/docs/webcodecs/buffer-writer.mdx+++ b/packages/docs/docs/webcodecs/buffer-writer.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/buffer-writercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+import {LicenseDisclaimer} from './LicenseDisclaimer';import {UnstableDisclaimer} from './UnstableDisclaimer';diff --git a/packages/docs/docs/webcodecs/can-copy-audio-track.mdx b/packages/docs/docs/webcodecs/can-copy-audio-track.mdxindex 97256115c1..b5f5afa127 100644--- a/packages/docs/docs/webcodecs/can-copy-audio-track.mdx+++ b/packages/docs/docs/webcodecs/can-copy-audio-track.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/can-copy-audio-trackcrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._:::warningdiff --git a/packages/docs/docs/webcodecs/can-copy-video-track.mdx b/packages/docs/docs/webcodecs/can-copy-video-track.mdxindex 8abdfa4c8f..711e1c42de 100644--- a/packages/docs/docs/webcodecs/can-copy-video-track.mdx+++ b/packages/docs/docs/webcodecs/can-copy-video-track.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/can-copy-video-trackcrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._import {UnstableDisclaimer} from './UnstableDisclaimer';diff --git a/packages/docs/docs/webcodecs/can-reencode-audio-track.mdx b/packages/docs/docs/webcodecs/can-reencode-audio-track.mdxindex 5061166771..def28c9d63 100644--- a/packages/docs/docs/webcodecs/can-reencode-audio-track.mdx+++ b/packages/docs/docs/webcodecs/can-reencode-audio-track.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/can-reencode-audio-trackcrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._:::warningdiff --git a/packages/docs/docs/webcodecs/can-reencode-video-track.mdx b/packages/docs/docs/webcodecs/can-reencode-video-track.mdxindex 2a166efc81..a30570618d 100644--- a/packages/docs/docs/webcodecs/can-reencode-video-track.mdx+++ b/packages/docs/docs/webcodecs/can-reencode-video-track.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/can-reencode-video-trackcrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._:::warningdiff --git a/packages/docs/docs/webcodecs/convert-a-video.mdx b/packages/docs/docs/webcodecs/convert-a-video.mdxindex 48ca47ed80..2a66b0f88b 100644--- a/packages/docs/docs/webcodecs/convert-a-video.mdx+++ b/packages/docs/docs/webcodecs/convert-a-video.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/convert-a-videocrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+You can convert a video in the browser from one format to another using the [`convertMedia()`](/docs/webcodecs/convert-media) function from [`@remotion/webcodecs`](/docs/webcodecs).import {LicenseDisclaimer} from './LicenseDisclaimer';diff --git a/packages/docs/docs/webcodecs/convert-audiodata.mdx b/packages/docs/docs/webcodecs/convert-audiodata.mdxindex 0efdde211b..5da0d8bc08 100644--- a/packages/docs/docs/webcodecs/convert-audiodata.mdx+++ b/packages/docs/docs/webcodecs/convert-audiodata.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/convert-audiodatacrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+# convertAudioData()<AvailableFrom v="4.0.288"/>_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._diff --git a/packages/docs/docs/webcodecs/convert-media.mdx b/packages/docs/docs/webcodecs/convert-media.mdxindex 93529bee51..81f651e127 100644--- a/packages/docs/docs/webcodecs/convert-media.mdx+++ b/packages/docs/docs/webcodecs/convert-media.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/convert-mediacrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+# convertMedia()<AvailableFrom v="4.0.229"/>_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._diff --git a/packages/docs/docs/webcodecs/create-audio-decoder.mdx b/packages/docs/docs/webcodecs/create-audio-decoder.mdxindex 6ad698f828..e42bd2a5e3 100644--- a/packages/docs/docs/webcodecs/create-audio-decoder.mdx+++ b/packages/docs/docs/webcodecs/create-audio-decoder.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/create-audio-decodercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+import {UnstableDisclaimer} from './UnstableDisclaimer';:::warningdiff --git a/packages/docs/docs/webcodecs/create-video-decoder.mdx b/packages/docs/docs/webcodecs/create-video-decoder.mdxindex a54879da4e..36b9f77177 100644--- a/packages/docs/docs/webcodecs/create-video-decoder.mdx+++ b/packages/docs/docs/webcodecs/create-video-decoder.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/create-video-decodercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+import {UnstableDisclaimer} from './UnstableDisclaimer';:::warningdiff --git a/packages/docs/docs/webcodecs/default-on-audio-track-handler.mdx b/packages/docs/docs/webcodecs/default-on-audio-track-handler.mdxindex d4476f3c14..580b682e1c 100644--- a/packages/docs/docs/webcodecs/default-on-audio-track-handler.mdx+++ b/packages/docs/docs/webcodecs/default-on-audio-track-handler.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/default-on-audio-track-handlercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+This is the default function if no [`onAudioTrack`](/docs/webcodecs/convert-media#onaudiotrack) handler is provided to [`convertMedia()`](/docs/webcodecs/convert-media).You may use this function if you want to customize part of the track transformation logic, but fall back to the default behavior for the rest.diff --git a/packages/docs/docs/webcodecs/default-on-video-track-handler.mdx b/packages/docs/docs/webcodecs/default-on-video-track-handler.mdxindex 309a6e2fb3..78caf027ae 100644--- a/packages/docs/docs/webcodecs/default-on-video-track-handler.mdx+++ b/packages/docs/docs/webcodecs/default-on-video-track-handler.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/default-on-video-track-handlercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+This is the default function if no [`onVideoTrack`](/docs/webcodecs/convert-media#onvideotrack) handler is provided to [`convertMedia()`](/docs/webcodecs/convert-media).You may use this function if you want to customize part of the track transformation logic, but fall back to the default behavior for the rest.diff --git a/packages/docs/docs/webcodecs/extract-frames-on-web-worker.mdx b/packages/docs/docs/webcodecs/extract-frames-on-web-worker.mdxindex 20fd4db193..9551856cf2 100644--- a/packages/docs/docs/webcodecs/extract-frames-on-web-worker.mdx+++ b/packages/docs/docs/webcodecs/extract-frames-on-web-worker.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/extract-frames-on-web-workercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+# extractFramesOnWebWorker()<AvailableFrom v="4.0.330"/>_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._diff --git a/packages/docs/docs/webcodecs/extract-frames.mdx b/packages/docs/docs/webcodecs/extract-frames.mdxindex 9f89c28865..ebbb754200 100644--- a/packages/docs/docs/webcodecs/extract-frames.mdx+++ b/packages/docs/docs/webcodecs/extract-frames.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/extract-framescrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+# extractFrames()<AvailableFrom v="4.0.311"/>_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._diff --git a/packages/docs/docs/webcodecs/fix-a-mediarecorder-video.mdx b/packages/docs/docs/webcodecs/fix-a-mediarecorder-video.mdxindex 557aa69f49..04ee55946a 100644--- a/packages/docs/docs/webcodecs/fix-a-mediarecorder-video.mdx+++ b/packages/docs/docs/webcodecs/fix-a-mediarecorder-video.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/fix-mediarecorder-videocrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+When recording a video with the [`MediaRecorder`](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder) and [`getUserMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) API, a WebM file gets created that may have some playback and compatibility issues.Namely, it:diff --git a/packages/docs/docs/webcodecs/get-available-audio-codecs.mdx b/packages/docs/docs/webcodecs/get-available-audio-codecs.mdxindex 8e877e5637..b19f2266cb 100644--- a/packages/docs/docs/webcodecs/get-available-audio-codecs.mdx+++ b/packages/docs/docs/webcodecs/get-available-audio-codecs.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/get-available-audio-codecscrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+Given a container, get a list of audio codecs that the container can hold.This does not mean that a any audio stream of this codec can be put into the container.Use [`canReencodeAudioTrack()`](/docs/webcodecs/can-reencode-audio-track) and [`canCopyAudioTrack()`](/docs/webcodecs/can-copy-audio-track) to determine this.diff --git a/packages/docs/docs/webcodecs/get-available-containers.mdx b/packages/docs/docs/webcodecs/get-available-containers.mdxindex ef4321393d..edfa6b70bb 100644--- a/packages/docs/docs/webcodecs/get-available-containers.mdx+++ b/packages/docs/docs/webcodecs/get-available-containers.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/get-available-containerscrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+Returns an array of available containers that can be used with the `convertMedia` function.```tsx twoslash title="Getting available containers"diff --git a/packages/docs/docs/webcodecs/get-available-video-codecs.mdx b/packages/docs/docs/webcodecs/get-available-video-codecs.mdxindex b49bc85c33..249c79677d 100644--- a/packages/docs/docs/webcodecs/get-available-video-codecs.mdx+++ b/packages/docs/docs/webcodecs/get-available-video-codecs.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/get-available-video-codecscrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+Given a container, get a list of video codecs that the container can hold.This does not mean that a any video stream of this codec can be put into the container.Use [`canReencodeVideoTrack()`](/docs/webcodecs/can-reencode-video-track) and [`canCopyVideoTrack()`](/docs/webcodecs/can-copy-video-track) to determine this.diff --git a/packages/docs/docs/webcodecs/get-default-audio-codec.mdx b/packages/docs/docs/webcodecs/get-default-audio-codec.mdxindex dbacb59dc4..e7f357ca0a 100644--- a/packages/docs/docs/webcodecs/get-default-audio-codec.mdx+++ b/packages/docs/docs/webcodecs/get-default-audio-codec.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/get-default-audio-codeccrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._:::warningdiff --git a/packages/docs/docs/webcodecs/get-default-video-codec.mdx b/packages/docs/docs/webcodecs/get-default-video-codec.mdxindex 5389b39b50..f77d553648 100644--- a/packages/docs/docs/webcodecs/get-default-video-codec.mdx+++ b/packages/docs/docs/webcodecs/get-default-video-codec.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/get-default-video-codeccrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._:::warningdiff --git a/packages/docs/docs/webcodecs/get-partial-audio-data.mdx b/packages/docs/docs/webcodecs/get-partial-audio-data.mdxindex ea53adc031..018b1fdb30 100644--- a/packages/docs/docs/webcodecs/get-partial-audio-data.mdx+++ b/packages/docs/docs/webcodecs/get-partial-audio-data.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/get-partial-audio-datacrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+import {UnstableDisclaimer} from './UnstableDisclaimer';:::warningdiff --git a/packages/docs/docs/webcodecs/index.mdx b/packages/docs/docs/webcodecs/index.mdxindex ffbb5ad99e..a113ee1d4a 100644--- a/packages/docs/docs/webcodecs/index.mdx+++ b/packages/docs/docs/webcodecs/index.mdx@@ -8,6 +8,10 @@ import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';import {TableOfContents, WebCodecsGuide} from './TableOfContents';+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+_available from v4.0.229_This package provides APIs for converting videos in the browser.diff --git a/packages/docs/docs/webcodecs/pause-resume-abort.mdx b/packages/docs/docs/webcodecs/pause-resume-abort.mdxindex b85cc943ed..4db87ced9c 100644--- a/packages/docs/docs/webcodecs/pause-resume-abort.mdx+++ b/packages/docs/docs/webcodecs/pause-resume-abort.mdx@@ -7,6 +7,10 @@ slug: /webcodecs/pause-resume-abortcrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+You can pause, resume and abort the conversion process.Create a [`webcodecsController()`](/docs/webcodecs/webcodecs-controller) and use the following methods:diff --git a/packages/docs/docs/webcodecs/resample-audio-16khz.mdx b/packages/docs/docs/webcodecs/resample-audio-16khz.mdxindex b83d282153..b47a3dfc5b 100644--- a/packages/docs/docs/webcodecs/resample-audio-16khz.mdx+++ b/packages/docs/docs/webcodecs/resample-audio-16khz.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/resample-audio-16khzcrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+For using Whisper, Whisper.cpp, [`@remotion/install-whisper-cpp`](/docs/install-whisper-cpp) and Whisper.wasm, you need to provide a 16-bit, 16KHz, WAVE audio file.This page describes approaches for converting your audio in the browser and on the server.diff --git a/packages/docs/docs/webcodecs/resizing.mdx b/packages/docs/docs/webcodecs/resizing.mdxindex c313e4e78b..c03d9e0929 100644--- a/packages/docs/docs/webcodecs/resizing.mdx+++ b/packages/docs/docs/webcodecs/resizing.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/resize-a-videocrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+You can resize a video in the browser using [`convertMedia()`](/docs/webcodecs/convert-media) function from the [`@remotion/webcodecs`](/docs/webcodecs) package.import {LicenseDisclaimer} from './LicenseDisclaimer';diff --git a/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdx b/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdxindex 7739e8e75a..7528f73d27 100644--- a/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdx+++ b/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/rotate-and-resize-video-framecrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+# rotateAndResizeVideoFrame()<AvailableFrom v="4.0.316"/>_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._diff --git a/packages/docs/docs/webcodecs/rotation.mdx b/packages/docs/docs/webcodecs/rotation.mdxindex 6257a79b67..40ec659a0c 100644--- a/packages/docs/docs/webcodecs/rotation.mdx+++ b/packages/docs/docs/webcodecs/rotation.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/rotate-a-videocrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+You can rotate a video in the browser using the [`@remotion/webcodecs`](/docs/webcodecs) package to fix a video that has a bad orientation.import {LicenseDisclaimer} from './LicenseDisclaimer';diff --git a/packages/docs/docs/webcodecs/telemetry.mdx b/packages/docs/docs/webcodecs/telemetry.mdxindex 7bf1ff4376..4b25837290 100644--- a/packages/docs/docs/webcodecs/telemetry.mdx+++ b/packages/docs/docs/webcodecs/telemetry.mdx@@ -7,6 +7,10 @@ slug: /webcodecs/telemetrycrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+Upon finishing a conversion with [`convertMedia()`](/docs/webcodecs/convert-media), a HTTP request is sent to an endpoint on [`remotion.pro`](https://remotion.pro), registering the domain and whether the conversion was successful.Telemetry will never cause any conversions to fail.diff --git a/packages/docs/docs/webcodecs/track-transformation.mdx b/packages/docs/docs/webcodecs/track-transformation.mdxindex f6cefe1f5d..9044b9ee00 100644--- a/packages/docs/docs/webcodecs/track-transformation.mdx+++ b/packages/docs/docs/webcodecs/track-transformation.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/track-transformationcrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+When transforming media, there are multiple thing that can be done for each audio or video track:- Copying the track without re-encodingdiff --git a/packages/docs/docs/webcodecs/web-fs-writer.mdx b/packages/docs/docs/webcodecs/web-fs-writer.mdxindex 380a827fc6..e0638ef0a4 100644--- a/packages/docs/docs/webcodecs/web-fs-writer.mdx+++ b/packages/docs/docs/webcodecs/web-fs-writer.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/web-fs-writercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+import {LicenseDisclaimer} from './LicenseDisclaimer';import {UnstableDisclaimer} from './UnstableDisclaimer';diff --git a/packages/docs/docs/webcodecs/webcodecs-controller.mdx b/packages/docs/docs/webcodecs/webcodecs-controller.mdxindex 916672c832..1f84d65ce9 100644--- a/packages/docs/docs/webcodecs/webcodecs-controller.mdx+++ b/packages/docs/docs/webcodecs/webcodecs-controller.mdx@@ -6,6 +6,10 @@ slug: /webcodecs/webcodecs-controllercrumb: '@remotion/webcodecs'---+:::warning+[We are phasing out Remotion WebCodecs and are moving to Mediabunny](/blog/mediabunny)!+:::+Pass `webcodecsController()` to [`controller`](/docs/webcodecs/convert-media#controller) to steer the `convertMedia()` function.```tsx twoslash title="Use webcodecsController()"