Skip to content

🎥 Make videos programmatically with React

remove more

Jonny Burger8882b193333a
diff --git a/packages/docs/docs/animation-utils/interpolate-styles.mdx b/packages/docs/docs/animation-utils/interpolate-styles.mdx
index 685050e70b..ac163de5ad 100644
--- a/packages/docs/docs/animation-utils/interpolate-styles.mdx
+++ b/packages/docs/docs/animation-utils/interpolate-styles.mdx
@@ -41,7 +41,7 @@ A function that takes 3-4 arguments:
1. The input value.
2. The range of values that you expect the input to assume.
3. The range of output styles that you want the input to map to.
-4. Options object, same as the options of [`interpolate()`](/docs/interpolate#options) (_optional_)
+4. Options object, same as the options of [`interpolate()`](/docs/interpolate#options). Optional.
## Return value
diff --git a/packages/docs/docs/calculate-metadata.mdx b/packages/docs/docs/calculate-metadata.mdx
index 0fe957ab25..8157e5f718 100644
--- a/packages/docs/docs/calculate-metadata.mdx
+++ b/packages/docs/docs/calculate-metadata.mdx
@@ -99,16 +99,16 @@ As argument, you get an object with the following properties:
The function must return an pure JSON-serializable object, which can contain the following properties:
-- `props` _optional_: The [final props](/docs/props-resolution) the component receives. It must have the [same shape](/docs/data-fetching#usage) as the `props` received by this function. The props must be a plain object and must not contain any non-JSON-serializable values, except `Date`, `Map`, `Set` and [`staticFile()`](/docs/staticfile).
-- `durationInFrames` _optional_: The duration of the composition in frames
-- `width` _optional_: The width of the composition in pixels
-- `height` _optional_: The height of the composition in pixels
-- `fps` _optional_: The frames per second of the composition
-- `defaultCodec` _optional_: The default codec to use for the composition.
-- `defaultOutName` _optional_: The default output name when rendering (without file extension) <AvailableFrom v="4.0.268" />
-- `defaultVideoImageFormat` _optional_: The default video image format (`'png'`, `'jpeg'`, or `'none'`) <AvailableFrom v="4.0.316" />
-- `defaultPixelFormat` _optional_: The default pixel format (`'yuv420p'`, `'yuva420p'`, `'yuv422p'`, `'yuv444p'`, `'yuv420p10le'`, `'yuv422p10le'`, `'yuv444p10le'`, or `'yuva444p10le'`) <AvailableFrom v="4.0.316" />
-- `defaultProResProfile` _optional_: The default ProRes profile (`'4444-xq'`, `'4444'`, `'hq'`, `'standard'`, `'light'`, or `'proxy'`) <AvailableFrom v="4.0.367" />
+- `props`: The [final props](/docs/props-resolution) the component receives. It must have the [same shape](/docs/data-fetching#usage) as the `props` received by this function. The props must be a plain object and must not contain any non-JSON-serializable values, except `Date`, `Map`, `Set` and [`staticFile()`](/docs/staticfile). Optional.
+- `durationInFrames`: The duration of the composition in frames. Optional.
+- `width`: The width of the composition in pixels. Optional.
+- `height`: The height of the composition in pixels. Optional.
+- `fps`: The frames per second of the composition. Optional.
+- `defaultCodec`: The default codec to use for the composition. Optional.
+- `defaultOutName`: The default output name when rendering (without file extension). Optional. <AvailableFrom v="4.0.268" />
+- `defaultVideoImageFormat`: The default video image format (`'png'`, `'jpeg'`, or `'none'`). Optional. <AvailableFrom v="4.0.316" />
+- `defaultPixelFormat`: The default pixel format (`'yuv420p'`, `'yuva420p'`, `'yuv422p'`, `'yuv444p'`, `'yuv420p10le'`, `'yuv422p10le'`, `'yuv444p10le'`, or `'yuva444p10le'`). Optional. <AvailableFrom v="4.0.316" />
+- `defaultProResProfile`: The default ProRes profile (`'4444-xq'`, `'4444'`, `'hq'`, `'standard'`, `'light'`, or `'proxy'`). Optional. <AvailableFrom v="4.0.367" />
If you return a field, it will take precendence over the props directly passed to the composition. The defaultCodec returned will have a higher priority than the config file, but less priority than explicitly passing the option to renderMedia() i.e. the composition will be rendered with this codec if nothing with higher priority was specified.
diff --git a/packages/docs/docs/lambda/getorcreatebucket.mdx b/packages/docs/docs/lambda/getorcreatebucket.mdx
index f6bc83e134..d5ccd87cf3 100644
--- a/packages/docs/docs/lambda/getorcreatebucket.mdx
+++ b/packages/docs/docs/lambda/getorcreatebucket.mdx
@@ -30,9 +30,9 @@ The [AWS region](/docs/lambda/region-selection) which you want to create a bucke
<Options id="enable-folder-expiry" />
-### ~~`onBucketEnsured?`~~
+### ~~`onBucketEnsured`~~
-_removed in v4.0, optional_
+_removed in v4.0_
Allows to pass a callback after the bucket was created and before the S3 website option was enabled. This option exists so the CLI can better visualize the progress.
Removed in v4.0 since we don't use the website option anymore.
diff --git a/packages/docs/docs/layout-utils/fill-text-box.mdx b/packages/docs/docs/layout-utils/fill-text-box.mdx
index 6dbfc08a25..6b384facdd 100644
--- a/packages/docs/docs/layout-utils/fill-text-box.mdx
+++ b/packages/docs/docs/layout-utils/fill-text-box.mdx
@@ -92,9 +92,9 @@ _boolean_
If set to `true`, will take a second measurement with the fallback font and if it produces the same measurements, it assumes the fallback font was used and will throw an error.
-#### `additionalStyles`<AvailableFrom v="4.0.140"/>
+#### `additionalStyles?`<AvailableFrom v="4.0.140"/>
-_object, optional_
+_object_
Additional CSS properties that affect the layout of the text.
diff --git a/packages/docs/docs/layout-utils/fit-text-on-n-lines.mdx b/packages/docs/docs/layout-utils/fit-text-on-n-lines.mdx
index 5bd7718d8f..5b4dcb3be8 100644
--- a/packages/docs/docs/layout-utils/fit-text-on-n-lines.mdx
+++ b/packages/docs/docs/layout-utils/fit-text-on-n-lines.mdx
@@ -79,21 +79,21 @@ The font needs to be loaded before this API is being called.
If you use [`@remotion/google-fonts`](/docs/google-fonts), wait until [`waitUntilDone()`](/docs/google-fonts/load-font#waituntildone) resolves first.
:::
-### `fontWeight`
+### `fontWeight?`
-_string | number, optional_
+_string | number_
Pass this option if you are going to assign a `font-weight` CSS property to the text.
-### `letterSpacing`
+### `letterSpacing?`
-_string, optional_
+_string_
Pass this option if you are going to assign a `letter-spacing` CSS property to the text.
-### `fontVariantNumeric`
+### `fontVariantNumeric?`
-_string, optional_
+_string_
Pass this option if you are going to assign a `font-variant-numeric` CSS property to the text.
@@ -109,15 +109,15 @@ _boolean_
If set to `true`, will take a second measurement with the fallback font and if it produces the same measurements, it assumes the fallback font was used and will throw an error.
-### `additionalStyles`
+### `additionalStyles?`
-_object, optional_
+_object_
Additional CSS properties that affect the layout of the text.
-### `maxFontSize`
+### `maxFontSize?`
-_number, optional_
+_number_
The maximum font size (in pixels) that the text is allowed to reach. If not specified, defaults to 2000.
diff --git a/packages/docs/docs/layout-utils/fit-text.mdx b/packages/docs/docs/layout-utils/fit-text.mdx
index 53a75d0084..17d8950587 100644
--- a/packages/docs/docs/layout-utils/fit-text.mdx
+++ b/packages/docs/docs/layout-utils/fit-text.mdx
@@ -70,21 +70,21 @@ The font needs to be loaded before this API is being called.
If you use [`@remotion/google-fonts`](/docs/google-fonts), wait until [`waitUntilDone()`](/docs/google-fonts/load-font#waituntildone) resolves first.
:::
-### `fontWeight`
+### `fontWeight?`
-_string | number, optional_
+_string | number_
Pass this option if you are going to assign a `font-weight` CSS property to the text.
-### `letterSpacing`
+### `letterSpacing?`
-_string, optional_
+_string_
Pass this option if you are going to assign a `letter-spacing` CSS property to the text.
-### `fontVariantNumeric`
+### `fontVariantNumeric?`
-_string, optional_
+_string_
Pass this option if you are going to assign a `font-variant-numeric` CSS property to the text.
@@ -100,9 +100,9 @@ _boolean_
If set to `true`, will take a second measurement with the fallback font and if it produces the same measurements, it assumes the fallback font was used and will throw an error.
-### `additionalStyles`<AvailableFrom v="4.0.140"/>
+### `additionalStyles?`<AvailableFrom v="4.0.140"/>
-_object, optional_
+_object_
Additional CSS properties that affect the layout of the text.
diff --git a/packages/docs/docs/renderer/combine-chunks.mdx b/packages/docs/docs/renderer/combine-chunks.mdx
index 7cf25ebd55..bf740ed152 100644
--- a/packages/docs/docs/renderer/combine-chunks.mdx
+++ b/packages/docs/docs/renderer/combine-chunks.mdx
@@ -79,9 +79,9 @@ _number_
The number of frames in each chunk. All chunks must have the same number of frames, except the last one.
-### `audioCodec`
+### `audioCodec?`
-_"pcm-16" | "aac" | "mp3" | "opus" | null - optional_
+_"pcm-16" | "aac" | "mp3" | "opus" | null_
Audio codec to use for the output file. If not specified, it will be determined based on the video codec.
@@ -100,13 +100,13 @@ Do not change the value, even if you use the `frameRange` or `everyNthFrame` opt
### `frameRange?`
-_number | [number, number] | null - optional_
+_number | [number, number] | null_
Like [`frameRange`](/docs/renderer/render-media#framerange) that you would pass to [`renderMedia()`](/docs/renderer/render-media) or [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda). The range of frames of which the video exists once all chunks are combined.
### `everyNthFrame?`
-_number - optional_
+_number_
Like [`everyNthFrame`](/docs/renderer/render-media#everynthframe) that you would pass to [`renderMedia()`](/docs/renderer/render-media) or [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda).
@@ -114,7 +114,7 @@ Must be the same value that you passed to each [`renderMedia()`](/docs/renderer/
### `onProgress?`
-_function - optional_
+_function_
Callback function to track the progress of the combining operation.
@@ -129,31 +129,31 @@ const onProgress: CombineChunksOnProgress = ({totalProgress, frames}) => {
### `audioBitrate?`
-_string | null - optional_
+_string | null_
Must be the same value that you passed to each [`renderMedia()`](/docs/renderer/render-media) call.
### `numberOfGifLoops?`
-_number | null - optional_
+_number | null_
Must be the same value that you passed to each [`renderMedia()`](/docs/renderer/render-media) call.
### `logLevel?`
-_"verbose" | "info" | "warn" | "error" - optional_
+_"verbose" | "info" | "warn" | "error"_
Controls the verbosity of logging. Default is `"info"`.
### `binariesDirectory?`
-_string | null - optional_
+_string | null_
A directory containing FFmpeg binaries to use instead of the bundled or system-installed ones.
### `cancelSignal?`
-_CancelSignal - optional_
+_CancelSignal_
A token that allows the combining process to be cancelled. See: [`makeCancelSignal()`](/docs/renderer/make-cancel-signal)
diff --git a/packages/docs/docs/renderer/get-can-extract-frames-fast.mdx b/packages/docs/docs/renderer/get-can-extract-frames-fast.mdx
index fb59aeb91a..6e6327d023 100644
--- a/packages/docs/docs/renderer/get-can-extract-frames-fast.mdx
+++ b/packages/docs/docs/renderer/get-can-extract-frames-fast.mdx
@@ -56,17 +56,15 @@ An object containing one or more of the following options:
Pointing to a video file. Must be an absolute file path.
-### ~~`ffmpegExecutable?`~~
+### ~~`ffmpegExecutable`~~
_removed in v4.0_
-_string - optional_
-
An absolute path overriding the `ffmpeg` executable to use.
-### ~~`ffprobeExecutable?`~~
+### ~~`ffprobeExecutable`~~
-_removed in v4.0, \_string, optional_
+_removed in v4.0_
An absolute path overriding the `ffprobe` executable to use.
diff --git a/packages/docs/docs/renderer/get-compositions.mdx b/packages/docs/docs/renderer/get-compositions.mdx
index 0aa1a8410c..01c56fea60 100644
--- a/packages/docs/docs/renderer/get-compositions.mdx
+++ b/packages/docs/docs/renderer/get-compositions.mdx
@@ -138,7 +138,7 @@ Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](
### ~~`ffmpegExecutable`~~
-_removed in v4.0, optional_
+_removed in v4.0_
An absolute path overriding the `ffmpeg` executable to use.
diff --git a/packages/docs/docs/renderer/get-silent-parts.mdx b/packages/docs/docs/renderer/get-silent-parts.mdx
index bbea5fde3b..f24f14b8c2 100644
--- a/packages/docs/docs/renderer/get-silent-parts.mdx
+++ b/packages/docs/docs/renderer/get-silent-parts.mdx
@@ -43,15 +43,15 @@ _string_
A local video or audio file path.
-### `noiseThresholdInDecibels`
+### `noiseThresholdInDecibels?`
-_number, optional_
+_number_
The threshold in decibels. If the audio is below this threshold, it is considered silent. The default is `-20`. Must be less than `30`.
-### `minDurationInSeconds`
+### `minDurationInSeconds?`
-_number, optional_
+_number_
The minimum duration of a silent part in seconds. The default is `1`.
diff --git a/packages/docs/docs/renderer/render-frames.mdx b/packages/docs/docs/renderer/render-frames.mdx
index 82433f0ea5..0b9015bd04 100644
--- a/packages/docs/docs/renderer/render-frames.mdx
+++ b/packages/docs/docs/renderer/render-frames.mdx
@@ -309,13 +309,13 @@ Removed in `v4.0.0`.
### ~~`ffmpegExecutable`~~
-_removed in v4.0, optional_
+_removed in v4.0_
An absolute path overriding the `ffmpeg` executable to use.
-### ~~`ffprobeExecutable?`~~ <AvailableFrom v="3.0.17" />
+### ~~`ffprobeExecutable`~~ <AvailableFrom v="3.0.17" />
-_removed in v4.0, optional_
+_removed in v4.0_
An absolute path overriding the `ffprobe` executable to use.
diff --git a/packages/docs/docs/web-renderer/render-media-on-web.mdx b/packages/docs/docs/web-renderer/render-media-on-web.mdx
index be942e9de0..ec61b7ba78 100644
--- a/packages/docs/docs/web-renderer/render-media-on-web.mdx
+++ b/packages/docs/docs/web-renderer/render-media-on-web.mdx
@@ -58,7 +58,7 @@ An object describing a composition. The object should have the following propert
### `inputProps?`
-_object - optional_
+_object_
[Input Props to pass to the component.](/docs/passing-props#passing-input-props-in-the-cli)
You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).
diff --git a/packages/docs/docs/web-renderer/render-still-on-web.mdx b/packages/docs/docs/web-renderer/render-still-on-web.mdx
index cba5fd827c..0d4bb2a185 100644
--- a/packages/docs/docs/web-renderer/render-still-on-web.mdx
+++ b/packages/docs/docs/web-renderer/render-still-on-web.mdx
@@ -101,7 +101,7 @@ Default is `"info"`.
### `signal?`
-_AbortSignal - optional_
+_AbortSignal_
An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) that allows the render to be cancelled.
@@ -137,13 +137,13 @@ See [Cancelling renders](/docs/client-side-rendering/cancellation) for more deta
### `mediaCacheSizeInBytes?`
-_number | null - optional_
+_number | null_
<Options id="media-cache-size-in-bytes" />
### `onArtifact?`
-_function - optional_
+_function_
[Handle an artifact](/docs/artifacts#using-rendermedia-renderstill-or-renderframes) that was emitted by the [`<Artifact>`](/docs/artifact) component.