Skip to content

🎥 Make videos programmatically with React

Fix broken anchor tags across documentation

copilot-swe-agent[bot]9a717fcd0b1e
diff --git a/packages/docs/docs/artifacts.mdx b/packages/docs/docs/artifacts.mdx
index 37c84da487..dd49ee07d5 100644
--- a/packages/docs/docs/artifacts.mdx
+++ b/packages/docs/docs/artifacts.mdx
@@ -61,7 +61,7 @@ export const MyComp: React.FC = () => {
};
```
-<Step>1</Step> The [`content`](/docs/artifact#content) prop should be set to [`Artifact.Thumbnail`](/docs/artifact#thumbnail). <br />
+<Step>1</Step> The [`content`](/docs/artifact#content) prop should be set to [`Artifact.Thumbnail`](/docs/artifact#artifactthumbnail). <br />
<Step>2</Step> The [`imageFormat`](/docs/renderer/render-media#imageformat) setting determines the format of the image. The extension you pass is meaningless. <br />
diff --git a/packages/docs/docs/audiobuffertodataurl.mdx b/packages/docs/docs/audiobuffertodataurl.mdx
index 863d63b0b5..ee77f064dc 100644
--- a/packages/docs/docs/audiobuffertodataurl.mdx
+++ b/packages/docs/docs/audiobuffertodataurl.mdx
@@ -92,4 +92,4 @@ export const OfflineAudioBufferExample: React.FC = () => {
## See also
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/media-utils/src/audio-buffer/audio-url-helpers.ts)
-- [Rendering audio only](/docs/using-audio/#rendering-audio-only)
+- [Rendering audio only](/docs/audio/exporting#audio-only)
diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdx
index 53df6fc350..b29da065bc 100644
--- a/packages/docs/docs/config.mdx
+++ b/packages/docs/docs/config.mdx
@@ -698,7 +698,7 @@ import {Config} from '@remotion/cli/config';
Config.setAudioLatencyHint('interactive');
```
-The [command line flag](/docs/cli/render#--audio-latency-hint) `--audio-latency-hint` will take precedence over this option.
+The `--audio-latency-hint` command line flag will take precedence over this option.
## `setEnableFolderExpiry()`<AvailableFrom v="4.0.32" />
diff --git a/packages/docs/docs/distributed-rendering.mdx b/packages/docs/docs/distributed-rendering.mdx
index 52d80ac0ee..6a553fa63f 100644
--- a/packages/docs/docs/distributed-rendering.mdx
+++ b/packages/docs/docs/distributed-rendering.mdx
@@ -69,10 +69,10 @@ We're calling the machine which orchestrates the render the "main routine".
- NOT with audio codec `aac` (which would be default and recommended),
- Then:
- set the [`audioCodec`](/docs/renderer/render-media#audiocodec) to `pcm-16` instead of the audio codec.
- - set the [`forSeamlessAacConcatenation`](/docs/renderer/render-media#forseamlessaaconcatenation) option to `false`.
+ - set the [`forSeamlessAacConcatenation`](/docs/renderer/render-media#forseamlessaacconcatenation) option to `false`.
- Else:
- Set the [`audioCodec`](/docs/renderer/render-media#audiocodec) to the same value you would pass to a regular [`renderMedia()`](/docs/renderer/render-media) call, which might be `null`.
- - set the [`forSeamlessAacConcatenation`](/docs/renderer/render-media#forseamlessaaconcatenation) option to `true`.
+ - set the [`forSeamlessAacConcatenation`](/docs/renderer/render-media#forseamlessaacconcatenation) option to `true`.
- If you are rendering audio, use the [`separateAudioTo`](/docs/renderer/render-media#separateaudioto) option to render the audio to a separate file.
- Handle [artifacts](/docs/artifacts) if desired and store them somewhere, or send them to the main routine.
- The parameters [`concurrency`](/docs/renderer/render-media#concurrency) and [`offthreadVideoThreads`](/docs/renderer/render-media#offthreadvideothreads) may be adjusted if desired, but leaving the defaults is also fine.
@@ -92,7 +92,7 @@ Collect all the audio and video chunks. Once you have all of them, you can call
- [`codec`](/docs/renderer/combine-chunks#codec): The final codec of the media. If you want to render `h264`, you should now pass `h264`, not `h264-ts`.
- [`framesPerChunk`](/docs/renderer/combine-chunks#framesperchunk): The amount of frames that were rendered per chunk. The `everyNthFrame` option will be applied only afterwards, so don't calculate it in.
- [`fps`](/docs/renderer/combine-chunks#fps): Must be the value of `fps` that you got from [`selectComposition`](/docs/renderer/select-composition).
-- [`preferLossless`](/docs/renderer/combine-chunks#preferlossless): Pass it here as well if you passed it to [`renderMedia()`](/docs/renderer/render-media#preferlossless).
+- [`preferLossless`](/docs/renderer/combine-chunks#preferlossless): Pass it here as well if you passed it to `renderMedia()`.
- [`compositionDurationInFrames`](/docs/renderer/combine-chunks#compositiondurationinframes): The total duration of the composition, taken from [`selectComposition()`](/docs/renderer/select-composition). Pass the full duration even if you are only rendering a portion of it.
- [`frameRange`](/docs/renderer/combine-chunks#framerange): If you only rendered a portion of a composition, then you must pass that exact frame range here as well. Remember that frame ranges start at `0`, and end at `durationInFrames - 1`. Passing values too small or too big will cause an error to be thrown.
diff --git a/packages/docs/docs/lambda/multiple-buckets.mdx b/packages/docs/docs/lambda/multiple-buckets.mdx
index 6b92786455..b13a99422d 100644
--- a/packages/docs/docs/lambda/multiple-buckets.mdx
+++ b/packages/docs/docs/lambda/multiple-buckets.mdx
@@ -42,11 +42,11 @@ Also you must pass a `--force-bucket-name=your-bucket-name` option to the follow
- [`npx remotion lambda compositions`](/docs/lambda/cli/compositions)
- [`npx remotion lambda sites create`](/docs/lambda/cli/sites/create)
- [`npx remotion lambda sites rm`](/docs/lambda/cli/sites/rm)
-- [`npx remotion lambda sites rmall`](/docs/lambda/cli/sites#rmall)
+- [`npx remotion lambda sites rmall`](/docs/lambda/cli/sites/rmall)
Also you are unable to use the following APIs:
-- [`npx remotion lambda sites ls`](/docs/lambda/cli/sites#ls)
+- [`npx remotion lambda sites ls`](/docs/lambda/cli/sites/ls)
- [`getSites()`](/docs/lambda/getsites)
- [`getOrCreateBucket()`](/docs/lambda/getorcreatebucket)
diff --git a/packages/docs/docs/media-parser/fast-and-slow.mdx b/packages/docs/docs/media-parser/fast-and-slow.mdx
index 66610ea934..dcdeb908b6 100644
--- a/packages/docs/docs/media-parser/fast-and-slow.mdx
+++ b/packages/docs/docs/media-parser/fast-and-slow.mdx
@@ -19,7 +19,7 @@ Obviously, processing less of the file is faster and you should aim to read only
## Full parsing operations
-The following [`fields`](/docs/media-parser#fields) require the full file to be read:
+The following [`fields`](/docs/media-parser/fields) require the full file to be read:
- [`slowStructure`](/docs/media-parser/fields#slowstructure)
- [`slowKeyframes`](/docs/media-parser/fields#slowkeyframes)
@@ -58,12 +58,12 @@ Also, if an [`onVideoTrack`](/docs/media-parser/parse-media#onvideotrack) or [`o
## Header-only operations
-The following [`fields`](/docs/media-parser/parse-media#fields) require only the first few bytes of the media to be parsed:
+The following [`fields`](/docs/media-parser/fields) require only the first few bytes of the media to be parsed:
-- [`name`](/docs/media-parser/parse-media#name)
-- [`size`](/docs/media-parser/parse-media#size)
-- [`container`](/docs/media-parser/parse-media#container)
-- [`mimeType`](/docs/media-parser/parse-media#mimetype)
+- [`name`](/docs/media-parser/fields#name)
+- [`size`](/docs/media-parser/fields#size)
+- [`container`](/docs/media-parser/fields#container)
+- [`mimeType`](/docs/media-parser/fields#mimetype)
## Seeking required
diff --git a/packages/docs/docs/media-parser/media-parser-controller.mdx b/packages/docs/docs/media-parser/media-parser-controller.mdx
index c110138bbc..ef312b0d07 100644
--- a/packages/docs/docs/media-parser/media-parser-controller.mdx
+++ b/packages/docs/docs/media-parser/media-parser-controller.mdx
@@ -32,7 +32,7 @@ controller.abort();
## API
-This function returns an object that can be passed to [`parseMedia({controller})`](/docs/media-parser/parse-media#controller) and [`downloadAndParseMedia({controller})`](/docs/media-parser/download-and-parse-media#controller).
+This function returns an object that can be passed to [`parseMedia({controller})`](/docs/media-parser/parse-media#controller).
It has the following methods:
diff --git a/packages/docs/docs/media-parser/tags.mdx b/packages/docs/docs/media-parser/tags.mdx
index 3e125d6e4f..da320c9c16 100644
--- a/packages/docs/docs/media-parser/tags.mdx
+++ b/packages/docs/docs/media-parser/tags.mdx
@@ -38,12 +38,12 @@ console.log(metadata);
```
Some metadata refers to a certain track, such as the 'encoder' field.
-In this case, the `trackId` field will contain a non-null value. You can get a list of tracks by setting the [`tracks`](/docs/media-parser/parse-media#tracks) field to `true`.
+In this case, the `trackId` field will contain a non-null value. You can get a list of tracks by setting the [`tracks`](/docs/media-parser/fields#tracks) field to `true`.
## Common metadata fields
Here is a non-exhaustive list of commonly seen metadata that you may want to parse and display.
-Use the [`container`](/docs/media-parser/parse-media#container) field to get the container format of the video.
+Use the [`container`](/docs/media-parser/fields#container) field to get the container format of the video.
### ISO Base Media (.mp4, .mov)
@@ -98,7 +98,7 @@ Use the [`container`](/docs/media-parser/parse-media#container) field to get the
### MP3
See [here](https://exiftool.org/TagNames/ID3.html) for a list of tags that can be returned.
-The `APIC` tag will not be returned as part of the `metadata` field, but separately as elements in the [`images`](/docs/media-parser/parse-media#images) array.
+The `APIC` tag will not be returned as part of the `metadata` field, but separately as elements in the [`images`](/docs/media-parser/fields#images) array.
### WAV
diff --git a/packages/docs/docs/media-parser/workers.mdx b/packages/docs/docs/media-parser/workers.mdx
index 28ce4b57bf..c8d1970647 100644
--- a/packages/docs/docs/media-parser/workers.mdx
+++ b/packages/docs/docs/media-parser/workers.mdx
@@ -54,7 +54,7 @@ The difference to [`parseMediaOnWebWorker()`](/docs/media-parser/parse-media-on-
## API Differences
-The [`parseMediaOnWebWorker`](/docs/media-parser/parse-media-on-web-worker) and [`parseMediaOnServerWorker()`](/docs/media-parser/parse-media-on-server-worker) APIs don't accept the [`reader`](/docs/media-parser#reader) field.
+The [`parseMediaOnWebWorker`](/docs/media-parser/parse-media-on-web-worker) and [`parseMediaOnServerWorker()`](/docs/media-parser/parse-media-on-server-worker) APIs don't accept the [`reader`](/docs/media-parser/parse-media#reader) field.
It is hardcoded to [`webReader`](/docs/media-parser/web-reader) and [`universalReader`](/docs/media-parser/universal-reader) respectively.
diff --git a/packages/docs/docs/use-offthread-video-texture.mdx b/packages/docs/docs/use-offthread-video-texture.mdx
index 8155baa11c..a5289e990e 100644
--- a/packages/docs/docs/use-offthread-video-texture.mdx
+++ b/packages/docs/docs/use-offthread-video-texture.mdx
@@ -110,7 +110,7 @@ Customize the [number of retries](/docs/delay-render#retrying) of the [`delayRen
## Looping a texture
-Like `<OffthreadVideo>`, looping a video [is not supported out of the box](/docs/offthreadvideo#looping-a-video) but can be achieved with the `<Loop>` component.
+Like `<OffthreadVideo>`, looping a video [is not supported out of the box](/docs/offthreadvideo#looping-a-offthreadvideo) but can be achieved with the `<Loop>` component.
## See also
diff --git a/packages/docs/docs/video.mdx b/packages/docs/docs/video.mdx
index 8511ec8ade..aa2ea57726 100644
--- a/packages/docs/docs/video.mdx
+++ b/packages/docs/docs/video.mdx
@@ -98,7 +98,7 @@ export const MyComposition = () => {
### `volume?`
-Allows you to control the volume for the whole track or change it on a per-frame basis. Refer to the [using audio](/docs/using-audio#controlling-volume) guide to learn how to use it.
+Allows you to control the volume for the whole track or change it on a per-frame basis. Refer to the [using audio](/docs/audio/volume) guide to learn how to use it.
```tsx twoslash title="Example using static volume"
import {AbsoluteFill, staticFile, Video} from 'remotion';
diff --git a/packages/docs/docs/videos/index.mdx b/packages/docs/docs/videos/index.mdx
index 833fbfbb4c..5b9e28582d 100644
--- a/packages/docs/docs/videos/index.mdx
+++ b/packages/docs/docs/videos/index.mdx
@@ -125,7 +125,7 @@ export const MyComp: React.FC = () => {
};
```
-See [Using Audio](/docs/using-audio#controlling-volume) for more ways you can control volume.
+See [Using Audio](/docs/audio/volume) for more ways you can control volume.
## Speed
@@ -144,7 +144,7 @@ This only works if the speed is constant. See also: [Changing the speed of a vid
## Looping
-See: [Looping an `<OffthreadVideo>`](/docs/offthreadvideo#looping-a-video)
+See: [Looping an `<OffthreadVideo>`](/docs/offthreadvideo#looping-a-offthreadvideo)
## GIFs
diff --git a/packages/docs/docs/webcodecs/create-audio-decoder.mdx b/packages/docs/docs/webcodecs/create-audio-decoder.mdx
index 8edfbb258e..ce58547015 100644
--- a/packages/docs/docs/webcodecs/create-audio-decoder.mdx
+++ b/packages/docs/docs/webcodecs/create-audio-decoder.mdx
@@ -36,11 +36,11 @@ const decoder = createAudioDecoder({
## Differences to `AudioDecoder`
- Samples with a `codec` of `pcm-s16` are accepted and passed through, even if the `AudioDecoder` object does not exist or support it.
-- Two new methods are added: [`.waitForQueueToBeLessThan()`](#waitforqueuetobelessthan) and [`.waitForFinish()`](#waitforfinish).
+- Two new methods are added: [`.waitForQueueToBeLessThan()`](#waitforqueuetobelessthan) and `.waitForFinish()`.
- The [`dequeue`](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/dequeue_event) event is not supported as it is not reliable across browsers.
-- In addition to [`EncodedAudioChunk`](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk), [`EncodedAudioChunkInit`](https://www.w3.org/TR/webcodecs/#dictdef-encodedaudiochunkinit) objects are also accepted for [`.decode()`](#decode).
+- In addition to [`EncodedAudioChunk`](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk), [`EncodedAudioChunkInit`](https://www.w3.org/TR/webcodecs/#dictdef-encodedaudiochunkinit) objects are also accepted for `.decode()`.
- A [`webcodecsController()`](/docs/webcodecs/webcodecs-controller) instance can be passed in to the function, allowing for decoding to be paused, resumed and aborted.
-- [`.decode()`](#decode) is async, and returns a promise, allowing for a halt if the decoder is paused.
+- `.decode()` is async, and returns a promise, allowing for a halt if the decoder is paused.
- Only samples with a size of 16 bytes or more are actually being input, [to avoid a bug in Chrome](https://github.com/remotion-dev/remotion/blob/c7f18a85bcb1bc58d3811efcd9e68c96ff38ccae/packages/webcodecs/src/create-audio-decoder.ts#L121-L129).
- A [`logLevel`](#loglevel) can be passed in to the function, allowing the queue to be debugged.
- The [`onFrame`](#onframe) callback is being awaited. When rejected, the error lands in the [`onError`](#onerror) callback. When resolved, only then the queue size counter will be decreased.
diff --git a/packages/docs/docs/webcodecs/create-video-decoder.mdx b/packages/docs/docs/webcodecs/create-video-decoder.mdx
index add828437b..ddc80ed628 100644
--- a/packages/docs/docs/webcodecs/create-video-decoder.mdx
+++ b/packages/docs/docs/webcodecs/create-video-decoder.mdx
@@ -35,11 +35,11 @@ const decoder = createVideoDecoder({
## Differences to `VideoDecoder`
-- Two new methods are added: [`.waitForQueueToBeLessThan()`](#waitforqueuetobelessthan) and [`.waitForFinish()`](#waitforfinish).
+- Two new methods are added: [`.waitForQueueToBeLessThan()`](#waitforqueuetobelessthan) and `.waitForFinish()`.
- The [`dequeue`](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/dequeue_event) event is not supported as it is not reliable across browsers.
-- In addition to [`EncodedVideoChunk`](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk), [`EncodedVideoChunkInit`](https://www.w3.org/TR/webcodecs/#dictdef-encodedvideochunkinit) objects are also accepted for [`.decode()`](#decode).
+- In addition to [`EncodedVideoChunk`](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk), [`EncodedVideoChunkInit`](https://www.w3.org/TR/webcodecs/#dictdef-encodedvideochunkinit) objects are also accepted for `.decode()`.
- A [`webcodecsController()`](/docs/webcodecs/webcodecs-controller) instance can be passed in to the function, allowing for decoding to be paused, resumed and aborted.
-- [`.decode()`](#decode) is async, and returns a promise, allowing for a halt if the decoder is paused.
+- `.decode()` is async, and returns a promise, allowing for a halt if the decoder is paused.
- A [`logLevel`](#loglevel) can be passed in to the function, allowing the queue to be debugged.
- The [`onFrame`](#onframe) callback is being awaited. When rejected, the error lands in the [`onError`](#onerror) callback. When resolved, only then the queue size counter will be decreased.