Skip to content

🎥 Make videos programmatically with React

Normalize docs according to new style rules for APIs

Igor Samokhovets833c0821ea16
diff --git a/packages/docs/docs/animation-utils/index.mdx b/packages/docs/docs/animation-utils/index.mdx
index 270d0f321c..f46c4ad9d0 100644
--- a/packages/docs/docs/animation-utils/index.mdx
+++ b/packages/docs/docs/animation-utils/index.mdx
@@ -1,9 +1,9 @@
---
image: /generated/articles-docs-animation-utils-index.png
-title: "@remotion/animation-utils"
+title: '@remotion/animation-utils'
---
-_Available from v4.0.92_
+<AvailableFrom v="4.0.92" />
Functions that support you in animating CSS styles.
@@ -46,7 +46,7 @@ yarn add @remotion/animation-utils
## Functions
-<TableOfContents/>
+<TableOfContents />
## License
diff --git a/packages/docs/docs/bundle.mdx b/packages/docs/docs/bundle.mdx
index dad37ab120..d90f0f3c48 100644
--- a/packages/docs/docs/bundle.mdx
+++ b/packages/docs/docs/bundle.mdx
@@ -45,8 +45,6 @@ const onProgress = (progress: number) => {
### `webpackOverride?`
-_optional_
-
A function to override the webpack config reducer-style. Takes a function which gives you the current webpack config which you can transform and return a modified version of it. For example:
```ts twoslash
@@ -62,26 +60,18 @@ const webpackOverride: WebpackOverrideFn = (webpackConfig) => {
### `outDir?`
-_optional_
-
Specify a desired output directory. If no passed, the webpack bundle will be created in a temp dir.
### `enableCaching?`
-_optional_
-
A `boolean` specifying whether Webpack caching should be enabled. Default `true`, it is recommended to leave caching enabled at all times since file changes should be recognized by Webpack nonetheless.
### `publicPath?`
-_optional_
-
<Options id="public-path" />
### `rootDir?`<AvailableFrom v="3.1.6" />
-_optional_
-
The directory in which the Remotion project is rooted in. This should be set to the directory that contains the `package.json` which installs Remotion. By default, it is the current working directory.
:::note
diff --git a/packages/docs/docs/captions/index.mdx b/packages/docs/docs/captions/index.mdx
index c19200a36b..b26d4e23f2 100644
--- a/packages/docs/docs/captions/index.mdx
+++ b/packages/docs/docs/captions/index.mdx
@@ -4,7 +4,7 @@ title: '@remotion/captions'
crumb: 'Subtitle videos'
---
-_Available from v4.0.216_
+<AvailableFrom v="4.0.216" />
The `@remotion/captions` package provides utilities for dealing with subtitles.
diff --git a/packages/docs/docs/cli/add.mdx b/packages/docs/docs/cli/add.mdx
index 023cbdbc15..8e9924b20b 100644
--- a/packages/docs/docs/cli/add.mdx
+++ b/packages/docs/docs/cli/add.mdx
@@ -34,9 +34,7 @@ This command will:
## Flags
-### `--package-manager`<AvailableFrom v="4.0.367"/>
-
-_optional_
+### `--package-manager?`<AvailableFrom v="4.0.367"/>
Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.
diff --git a/packages/docs/docs/cli/benchmark.mdx b/packages/docs/docs/cli/benchmark.mdx
index c5c96cc135..82ce5ea339 100644
--- a/packages/docs/docs/cli/benchmark.mdx
+++ b/packages/docs/docs/cli/benchmark.mdx
@@ -5,7 +5,7 @@ sidebar_label: benchmark
crumb: CLI Reference
---
-_available from v3.2.28_
+<AvailableFrom v="3.2.28" />
Measures render time by running a render multiple times, if desired with multiple compositions and concurrency values to compare against each other.
@@ -19,93 +19,63 @@ If `composition-ids` is not passed, Remotion will let you select compositions fr
## Flags
-### `--runs`
-
-_optional. Default is 3_
+### `--runs?`
Specify how many times video must be rendered. Default value is 3.
-### `--concurrencies`
-
-_optional_
+### `--concurrencies?`
You can specify which concurrency value should be used while rendering the video. Multiple concurrency values can be passed separated by comma. Learn more about [concurrency](/docs/terminology/concurrency)
-### `--codec`
-
-_optional_
+### `--codec?`
Inherited from [`npx remotion render`](/docs/cli/render#--codec)
-### `--audio-codec`<AvailableFrom v="3.3.42" />
-
-_optional_
+### `--audio-codec?`<AvailableFrom v="3.3.42" />
<Options id="audio-codec" />
-### `--crf`
-
-_optional_
+### `--crf?`
Inherited from [`npx remotion render`](/docs/cli/render#--crf)
-### `--frames`
-
-_optional_
+### `--frames?`
Inherited from [`npx remotion render`](/docs/cli/render#--frames)
-### `--image-format`
-
-_optional_
+### `--image-format?`
Inherited from [`npx remotion render`](/docs/cli/render#--image-format)
-### `--pixel-format`
-
-_optional_
+### `--pixel-format?`
Inherited from [`npx remotion render`](/docs/cli/render#--pixel-format)
-### `--props`
-
-_optional_
+### `--props?`
Inherited from [`npx remotion render`](/docs/cli/render#--props)
-### `--prores-profile`
-
-_optional_
+### `--prores-profile?`
Inherited from [`npx remotion render`](/docs/cli/render#--prores-profile)
-### `--jpeg-quality`
-
-_optional, available from v4.0.0_
+### `--jpeg-quality?`<AvailableFrom v="4.0.0" />
Inherited from [`npx remotion render`](/docs/cli/render#--jpeg-quality)
### ~~`--quality`~~
-_optional, removed in v4.0.0_
-
-Renamed to `--jpeg-quality`.
-
-### `--log`
+Removed in v4.0.0. Renamed to `--jpeg-quality`.
-_optional_
+### `--log?`
Inherited from [`npx remotion render`](/docs/cli/render#--log)
-### `--ignore-certificate-errors`
-
-_optional_
+### `--ignore-certificate-errors?`
Inherited from [`npx remotion render`](/docs/cli/render#--ignore-certificate-errors)
-### `--disable-web-security`
-
-_optional_
+### `--disable-web-security?`
Inherited from [`npx remotion render`](/docs/cli/render#--disable-web-security)
@@ -115,17 +85,13 @@ Inherited from [`npx remotion render`](/docs/cli/render#--disable-web-security)
### ~`--disable-headless?`~
-_optional_
-
<Options id="disable-headless" />
### `--enable-multiprocess-on-linux`<AvailableFrom v="4.0.42"/>
<Options cli id="enable-multiprocess-on-linux" />
-### `--gl`
-
-_optional_
+### `--gl?`
Inherited from [`npx remotion render`](/docs/cli/render#--gl)
@@ -133,93 +99,63 @@ Inherited from [`npx remotion render`](/docs/cli/render#--gl)
<Options id="chrome-mode" />
-### `--timeout`
-
-_optional_
+### `--timeout?`
Inherited from [`npx remotion render`](/docs/cli/render#--timeout)
-### `--scale`
-
-_optional_
+### `--scale?`
Inherited from [`npx remotion render`](/docs/cli/render#--scale)
-### `--port`
-
-_optional_
+### `--port?`
Inherited from [`npx remotion render`](/docs/cli/render#--port)
-### `--number-of-gif-loops`
-
-_optional_
+### `--number-of-gif-loops?`
<Options id="number-of-gif-loops" />
-### `--every-nth-frame`
-
-_optional_
+### `--every-nth-frame?`
Inherited from [`npx remotion render`](/docs/cli/render#--every-nth-frame)
-### `--log`
-
-_optional_
+### `--log?`
Inherited from [`npx remotion render`](/docs/cli/render#--log)
-### `--muted`
-
-_optional_
+### `--muted?`
Inherited from [`npx remotion render`](/docs/cli/render#--muted)
-### `--enforce-audio-track`
-
-_optional_
+### `--enforce-audio-track?`
Inherited from [`npx remotion render`](/docs/cli/render#--enforce-audio-track)
-### `--disallow-parallel-encoding`<AvailableFrom v="4.0.315" />
-
-_optional_
+### `--disallow-parallel-encoding?`<AvailableFrom v="4.0.315" />
Inherited from [`npx remotion render`](/docs/cli/render#--disallow-parallel-encoding)
-### `--browser-executable`
-
-_optional_
+### `--browser-executable?`
Inherited from [`npx remotion render`](/docs/cli/render#--browser-executable)
-### `--public-dir`
-
-_optional_
+### `--public-dir?`
Inherited from [`npx remotion render`](/docs/cli/render#--public-dir)
-### `--config`
-
-_optional_
+### `--config?`
Inherited from [`npx remotion render`](/docs/cli/render#--config)
-### `--bundle-cache`
-
-_optional_
+### `--bundle-cache?`
Inherited from [`npx remotion render`](/docs/cli/render#--bundle-cache)
-### `--video-bitrate`
-
-_optional_
+### `--video-bitrate?`
Inherited from [`npx remotion render`](/docs/cli/render#--video-bitrate)
-### `--audio-bitrate`
-
-_optional_
+### `--audio-bitrate?`
Inherited from [`npx remotion render`](/docs/cli/render#--audio-bitrate)
@@ -245,12 +181,8 @@ Inherited from [`npx remotion render`](/docs/cli/render#--audio-bitrate)
### ~~`--ffmpeg-executable`~~
-_optional, removed in v4.0_
-
-Inherited from [`npx remotion render`](/docs/cli/render#--ffmpeg-executable)
+Removed in v4.0. Inherited from [`npx remotion render`](/docs/cli/render#--ffmpeg-executable)
### ~~`--ffprobe-executable`~~
-_optional, removed in v4.0_
-
-Inherited from [`npx remotion render`](/docs/cli/render#--ffprobe-executable-)
+Removed in v4.0. Inherited from [`npx remotion render`](/docs/cli/render#--ffprobe-executable-)
diff --git a/packages/docs/docs/cli/compositions.mdx b/packages/docs/docs/cli/compositions.mdx
index 22b149becc..ba0d4710eb 100644
--- a/packages/docs/docs/cli/compositions.mdx
+++ b/packages/docs/docs/cli/compositions.mdx
@@ -5,7 +5,7 @@ sidebar_label: compositions
crumb: CLI Reference
---
-_Available from v2.6.12._
+<AvailableFrom v="2.6.12" />
Print list of composition IDs based on a path of an entry point.
diff --git a/packages/docs/docs/cli/gpu.mdx b/packages/docs/docs/cli/gpu.mdx
index 6c87dd387d..032792596d 100644
--- a/packages/docs/docs/cli/gpu.mdx
+++ b/packages/docs/docs/cli/gpu.mdx
@@ -5,7 +5,7 @@ sidebar_label: gpu
title: npx remotion gpu
---
-_Available from Remotion v4.0.52_
+<AvailableFrom v="4.0.52" />
Prints out how the Chrome browser uses the GPUs.
diff --git a/packages/docs/docs/cli/still.mdx b/packages/docs/docs/cli/still.mdx
index c7fcb06244..07f028928a 100644
--- a/packages/docs/docs/cli/still.mdx
+++ b/packages/docs/docs/cli/still.mdx
@@ -5,7 +5,7 @@ sidebar_label: still
crumb: CLI Reference
---
-_Available from v2.3._
+<AvailableFrom v="2.3" />
Render a still frame based on the entry point, the composition ID and save it to the output location.
diff --git a/packages/docs/docs/cli/upgrade.mdx b/packages/docs/docs/cli/upgrade.mdx
index 48cc56f3ae..1e01d20150 100644
--- a/packages/docs/docs/cli/upgrade.mdx
+++ b/packages/docs/docs/cli/upgrade.mdx
@@ -13,9 +13,7 @@ npx remotion upgrade
## Flags
-### `--package-manager`<AvailableFrom v="3.2.33"/>
-
-_optional_
+### `--package-manager?`<AvailableFrom v="3.2.33"/>
Forces a specific package manager to be used. This is useful if you are using Remotion in a monorepo and you want to upgrade all packages at once. By default, Remotion will auto-detect the package manager.
diff --git a/packages/docs/docs/cli/versions.mdx b/packages/docs/docs/cli/versions.mdx
index 7ca4d2992e..e058aad0b9 100644
--- a/packages/docs/docs/cli/versions.mdx
+++ b/packages/docs/docs/cli/versions.mdx
@@ -5,7 +5,7 @@ sidebar_label: versions
crumb: CLI Reference
---
-_Available from Remotion v2.6.2_
+<AvailableFrom v="2.6.2" />
Prints out which versions of Remotion packages are installed.
diff --git a/packages/docs/docs/cloudrun/deploysite.mdx b/packages/docs/docs/cloudrun/deploysite.mdx
index dac4804e4a..5ac0f78a72 100644
--- a/packages/docs/docs/cloudrun/deploysite.mdx
+++ b/packages/docs/docs/cloudrun/deploysite.mdx
@@ -54,14 +54,10 @@ The bucket to where the website will be deployed. The bucket must have been crea
### `siteName?`
-_optional_
-
Specify the subfolder in your Cloud Storage bucket that you want the site to deploy to. If you omit this property, a new subfolder with a random name will be created. If a site already exists with the name you passed, it will be overwritten. Can only contain the following characters: `0-9`, `a-z`, `A-Z`, `-`, `!`, `_`, `.`, `*`, `'`, `(`, `)`
### `options?`
-_optional_
-
An object with the following properties:
#### `onBundleProgress`
diff --git a/packages/docs/docs/cloudrun/getorcreatebucket.mdx b/packages/docs/docs/cloudrun/getorcreatebucket.mdx
index a9ad12e594..b0aa57434f 100644
--- a/packages/docs/docs/cloudrun/getorcreatebucket.mdx
+++ b/packages/docs/docs/cloudrun/getorcreatebucket.mdx
@@ -36,8 +36,6 @@ The [GCP region](/docs/cloudrun/region-selection) which you want to create a buc
### `updateBucketState?`
-_optional_
-
Callback function that returns a state (_string_) of operation. Used by the CLI to provide a progress update. State will be one of the following;
- Checking for existing bucket
diff --git a/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx
index 21624e6167..30953604e4 100644
--- a/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx
+++ b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx
@@ -46,15 +46,11 @@ An object with the following properties:
### `cloudRunUrl?`
-_optional. Required if serviceName not supplied_
-
-The url of the Cloud Run service which should be used to perform the render. You must set either cloudRunUrl or serviceName, but not both
+Required if `serviceName` not supplied. The url of the Cloud Run service which should be used to perform the render. You must set either `cloudRunUrl` or `serviceName`, but not both.
### `serviceName?`
-_optional. Required if cloudRunUrl not supplied_
-
-The name of the Cloud Run service which should be used to perform the render. This is used in conjunction with the region to determine the service endpoint, as the same service name can exist across multiple regions.
+Required if `cloudRunUrl` not supplied. The name of the Cloud Run service which should be used to perform the render. This is used in conjunction with the region to determine the service endpoint, as the same service name can exist across multiple regions.
### `region`
@@ -78,16 +74,12 @@ Audio codecs `mp3`, `aac` and `wav` are also supported.
See also [`renderMedia() -> codec`](/docs/renderer/render-media#codec).
-### `metadata`<AvailableFrom v="4.0.216" />
-
-_object - optional_
+### `metadata?`<AvailableFrom v="4.0.216" />
<Options id="metadata" />
### `inputProps?`
-_optional_
-
[Input Props to pass to the selected composition of your video.](/docs/passing-props#passing-input-props-in-the-cli).
Must be a JSON object.
From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).
@@ -95,8 +87,6 @@ You may transform input props using [`calculateMetadata()`](/docs/calculate-meta
### `privacy?`
-_optional_
-
One of:
- `"public"` (_default_): The rendered media is publicly accessible under the Cloud Storage URL.
@@ -104,14 +94,10 @@ One of:
### `forceBucketName?`
-_optional_
-
Specify a specific bucket name to be used for the output. The resulting Google Cloud Storage URL will be in the format `gs://{bucket-name}/renders/{render-id}/{file-name}`. If not set, Remotion will choose the right bucket to use based on the region.
### `updateRenderProgress?`
-_optional_
-
```tsx twoslash
import type {UpdateRenderProgress} from '@remotion/cloudrun/client';
@@ -126,8 +112,6 @@ const updateRenderProgress: UpdateRenderProgress = (progress: number, error: boo
### `renderStatusWebhook?`
-_optional_
-
Your webhook URL that will be called with the progress of the render. This will be sent using a POST request.
#### Arguments
@@ -162,9 +146,7 @@ Your webhook URL that will be called with the progress of the render. This will
}
```
-### `renderIdOverride`
-
-_optional_
+### `renderIdOverride?`
Provide a specific render ID for the render. Otherwise a random one will be generated.
@@ -174,8 +156,6 @@ You will be responsible for ensuring that the render ID is unique, otherwise it
### `audioCodec?`
-_optional_
-
Choose the encoding of your audio.
- Choose `pcm-16` if you need uncompressed audio.
@@ -186,20 +166,14 @@ Refer to the [Encoding guide](/docs/encoding/#audio-codec) to see defaults and s
### `jpegQuality?`
-_optional_
-
See [`renderMedia() -> jpegQuality`](/docs/renderer/render-media#jpegquality).
### `audioBitrate?`
-_optional_
-
<Options id="audio-bitrate" />
### `videoBitrate?`
-_optional_
-
<Options id="video-bitrate" />
### `bufferSize?`<AvailableFrom v="4.0.78" />
@@ -212,57 +186,36 @@ _optional_
### `proResProfile?`
-_optional_
-
See [`renderMedia() -> proResProfile`](/docs/renderer/render-media#proresprofile).
-_optional_
-
### `x264Preset?`
<Options id="x264-preset" />
### `crf?`
-_optional_
-
See [`renderMedia() -> crf`](/docs/renderer/render-media#crf).
### `pixelFormat?`
-_optional_
-
See [`renderMedia() -> pixelFormat`](/docs/renderer/render-media#pixelformat).
### `imageFormat?`
-_optional_
-
See [`renderMedia() -> imageFormat`](/docs/renderer/render-media#imageformat).
### `scale?`
-_optional_
-
<Options id="scale" />
### `everyNthFrame?`
-_optional_
-
Renders only every nth frame. For example only every second frame, every third frame and so on. Only works for rendering GIFs. [See here for more details.](/docs/render-as-gif)
### `numberOfGifLoops?`
-_optional_
-
<Options id="number-of-gif-loops" />
-_optional, available since v3.1.5_
-
-How the output file should behave when accessed through the S3 output link in the browser.
-Either:
-
### `downloadBehavior?`<AvailableFrom v="4.0.176"/>
How the output file should behave when accessed through the Cloud Storage output link in the browser.
@@ -272,20 +225,14 @@ How the output file should behave when accessed through the Cloud Storage output
### `frameRange?`
-_optional_
-
Specify a single frame (a number) or a range of frames (a tuple [number, number]) to be rendered.
### `envVariables?`
-_optional_
-
See [`renderMedia() -> envVariables`](/docs/renderer/render-media#envvariables).
### `chromiumOptions?`
-_optional_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
#### `disableWebSecurity`
@@ -306,20 +253,14 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.
### `muted?`
-_optional_
-
Disables audio output. See also [`renderMedia() -> muted`](/docs/renderer/render-media#muted).
### `forceWidth?`
-_optional_
-
Overrides default composition width.
### `forceHeight?`
-_optional_
-
Overrides default composition height.
### `logLevel?`
@@ -328,8 +269,6 @@ Overrides default composition height.
### `outName?`
-_optional_
-
The file name of the media output.
It can either be:
@@ -339,8 +278,6 @@ It can either be:
### `delayRenderTimeoutInMilliseconds?`
-_optional_
-
A number describing how long the render may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000`
### `concurrency?`
@@ -396,8 +333,6 @@ The resulting object contains the following:
### `publicUrl?`
-_optional_
-
The publicly accessible URL of the rendered file. Only available when the request had the [`privacy`](/docs/cloudrun/rendermediaoncloudrun#privacy) property set to 'public'.
### `renderId`
diff --git a/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx
index f36226899a..c450960f73 100644
--- a/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx
+++ b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx
@@ -46,19 +46,13 @@ An object with the following properties:
### `cloudRunUrl?`
-_optional. Required if serviceName not supplied_
-
-The url of the Cloud Run service which should be used to perform the render. You must set either cloudRunUrl or serviceName, but not both
+Required if `serviceName` not supplied. The url of the Cloud Run service which should be used to perform the render. You must set either `cloudRunUrl` or `serviceName`, but not both.
### `serviceName?`
-_optional. Required if cloudRunUrl not supplied_
-
-The name of the Cloud Run service which should be used to perform the render. This is used in conjunction with the region to determine the service endpoint, as the same service name can exist across multiple regions.
+Required if `cloudRunUrl` not supplied. The name of the Cloud Run service which should be used to perform the render. This is used in conjunction with the region to determine the service endpoint, as the same service name can exist across multiple regions.
-### `metadata`<AvailableFrom v="4.0.216" />
-
-_object - optional_
+### `metadata?`<AvailableFrom v="4.0.216" />
<Options id="metadata" />
@@ -76,8 +70,6 @@ The `id` of the [composition](/docs/composition) you want to render.
### `inputProps?`
-_optional_
-
[Input Props to pass to the selected composition of your video.](/docs/passing-props#passing-input-props-in-the-cli).
Must be a JSON object.
From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).
@@ -85,8 +77,6 @@ You may transform input props using [`calculateMetadata()`](/docs/calculate-meta
### `privacy?`
-_optional_
-
One of:
- `"public"` (_default_): The rendered still is publicly accessible under the Cloud Storage URL.
@@ -101,44 +91,30 @@ How the output file should behave when accessed through the Cloud Storage output
### `forceBucketName?`
-_optional_
-
Specify a specific bucket name to be used for the output. The resulting Google Cloud Storage URL will be in the format `gs://{bucket-name}/renders/{render-id}/{file-name}`. If not set, Remotion will choose the right bucket to use based on the region.
### `jpegQuality?`
-_optional_
-
See [`renderStill() -> jpegQuality`](/docs/renderer/render-still#jpegquality).
### `imageFormat?`
-_optional_
-
See [`renderStill() -> imageFormat`](/docs/renderer/render-still#imageformat).
### `scale?`
-_optional_
-
<Options id="scale" />
### `envVariables?`
-_optional_
-
See [`renderStill() -> envVariables`](/docs/renderer/render-still#envvariables).
### `frame?`
-_optional_
-
Which frame of the composition should be rendered. Frames are zero-indexed, and negative values are allowed, with -1 being the last frame.
### `chromiumOptions?`
-_optional_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
#### `disableWebSecurity`
@@ -159,14 +135,10 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.
### `forceWidth?`
-_optional_
-
Overrides default composition width.
### `forceHeight?`
-_optional_
-
Overrides default composition height.
### `logLevel?`
@@ -175,8 +147,6 @@ Overrides default composition height.
### `outName?`
-_optional_
-
The file name of the still output.
It can either be:
@@ -186,8 +156,6 @@ It can either be:
### `delayRenderTimeoutInMilliseconds?`
-_optional_
-
A number describing how long the render may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000`
### `mediaCacheSizeInBytes?`<AvailableFrom v="4.0.352"/>
diff --git a/packages/docs/docs/cloudrun/testpermissions.mdx b/packages/docs/docs/cloudrun/testpermissions.mdx
index 9c8f9f98a9..c873957a49 100644
--- a/packages/docs/docs/cloudrun/testpermissions.mdx
+++ b/packages/docs/docs/cloudrun/testpermissions.mdx
@@ -37,8 +37,6 @@ An object with the following property:
### `onTest?`
-_optional_
-
A callback function that gets called every time a new test has been executed. This allows you to react to new test results coming in much faster than waiting for the return value of the function. Example:
```ts twoslash
diff --git a/packages/docs/docs/composition.mdx b/packages/docs/docs/composition.mdx
index 7d6e2bec2b..9819ac1227 100644
--- a/packages/docs/docs/composition.mdx
+++ b/packages/docs/docs/composition.mdx
@@ -59,9 +59,7 @@ Pass the component in directly **or** pass a function that returns a dynamic imp
If you use `lazyComponent`, Remotion will use React Suspense to load the component. Components will be compiled by Webpack as they are needed, which will reduce startup time of Remotion. If you use `lazyComponent`, you need to use a default export for your component. This is a restriction of React Suspense.
:::
-### `defaultProps`
-
-_optional_
+### `defaultProps?`
Give your component default props. Default props can be overriden using the [Props editor](/docs/visual-editing) and with [Input Props](/docs/props-resolution).
@@ -148,7 +146,7 @@ export const Video = () => {
## Compatibility
-<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering={false} serverSideRendering player={false} studio hideServers />
+<CompatibilityTable chrome firefox safari nodejs="" bun="" serverlessFunctions="" clientSideRendering={false} serverSideRendering player={false} studio hideServers />
## See also
diff --git a/packages/docs/docs/env-variables.mdx b/packages/docs/docs/env-variables.mdx
index 8f3b75ead4..5a2e581f38 100644
--- a/packages/docs/docs/env-variables.mdx
+++ b/packages/docs/docs/env-variables.mdx
@@ -5,7 +5,7 @@ title: Environment variables
crumb: 'How To'
---
-_Available from v2.1.2._
+<AvailableFrom v="2.1.2" />
Remotion supports environment variables being passed directly from the CLI, using a `.env` file and from the [`renderMedia()`](/docs/renderer/render-media) function.
diff --git a/packages/docs/docs/folder.mdx b/packages/docs/docs/folder.mdx
index 950bf322a6..a1007aad55 100644
--- a/packages/docs/docs/folder.mdx
+++ b/packages/docs/docs/folder.mdx
@@ -5,7 +5,7 @@ id: folder
crumb: 'API'
---
-_Available from v3.0.1_
+<AvailableFrom v="3.0.1" />
By wrapping a [`<Composition />`](/docs/composition) inside a `<Folder />`, you can visually categorize it in your sidebar, should you have many compositions.
diff --git a/packages/docs/docs/freeze.mdx b/packages/docs/docs/freeze.mdx
index 8bb6ca4773..e99f5e4ea3 100644
--- a/packages/docs/docs/freeze.mdx
+++ b/packages/docs/docs/freeze.mdx
@@ -12,7 +12,7 @@ const BlueSquare: React.FC = () => <div></div>
// - BlueSquare
```
-_Available from v2.2.0._
+<AvailableFrom v="2.2.0" />
When using the `<Freeze/>` component, all of its children will freeze to the frame that you specify as a prop.
diff --git a/packages/docs/docs/get-input-props.mdx b/packages/docs/docs/get-input-props.mdx
index dee996eee0..6c3e80c130 100644
--- a/packages/docs/docs/get-input-props.mdx
+++ b/packages/docs/docs/get-input-props.mdx
@@ -5,7 +5,7 @@ id: get-input-props
crumb: 'API'
---
-_Available from v2.0_.
+<AvailableFrom v="2.0" />
Using this method, you can retrieve inputs that you pass in from the command line using [`--props`](/docs/cli), or the [`inputProps`](/docs/ssr) parameter if you are using the Node.JS APIs ([`renderMedia()`](/docs/renderer/render-media), [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda)).
@@ -69,7 +69,7 @@ In this example, the props also get passed to the component of the composition w
## Compatibility
-<CompatibilityTable chrome firefox safari nodejs={'No-op, returns {}'} bun={'No-op, returns {}'} serverlessFunctions={'No-op, returns {}'} clientSideRendering={'No-op, returns {}'} serverSideRendering player={'No-op, returns {}'} studio />
+<CompatibilityTable chrome firefox safari nodejs={'No-op, returns {}'} bun={'No-op, returns {}'} serverlessFunctions={'No-op, returns {}'} clientSideRendering={'No-op, returns {}'} serverSideRendering player={'No-op, returns {}'} studio />
## See also
diff --git a/packages/docs/docs/get-static-files.mdx b/packages/docs/docs/get-static-files.mdx
index c2fff3f031..4b98556756 100644
--- a/packages/docs/docs/get-static-files.mdx
+++ b/packages/docs/docs/get-static-files.mdx
@@ -5,7 +5,7 @@ title: getStaticFiles()
crumb: 'API'
---
-_Available from v3.3.26._
+<AvailableFrom v="3.3.26" />
:::note
This API is being moved to the `@remotion/studio` package. Prefer importing the API from [`@remotion/studio`](/docs/studio/get-static-files) instead of `remotion`.
diff --git a/packages/docs/docs/gif/get-gif-duration-in-seconds.mdx b/packages/docs/docs/gif/get-gif-duration-in-seconds.mdx
index 52c2868b5c..f21d6cfd26 100644
--- a/packages/docs/docs/gif/get-gif-duration-in-seconds.mdx
+++ b/packages/docs/docs/gif/get-gif-duration-in-seconds.mdx
@@ -7,7 +7,7 @@ crumb: '@remotion/gif'
_Part of the [`@remotion/gif`](/docs/gif) package_
-_Available from v3.2.22_
+<AvailableFrom v="3.2.22" />
Gets the duration in seconds of a GIF.
diff --git a/packages/docs/docs/gif/gif.mdx b/packages/docs/docs/gif/gif.mdx
index 69d4291878..6bae8da432 100644
--- a/packages/docs/docs/gif/gif.mdx
+++ b/packages/docs/docs/gif/gif.mdx
@@ -20,16 +20,7 @@ export const MyComponent: React.FC = () => {
const {width, height} = useVideoConfig();
const ref = useRef<HTMLCanvasElement>(null);
- return (
- <Gif
- ref={ref}
- src="https://media.giphy.com/media/3o72F7YT6s0EMFI0Za/giphy.gif"
- width={width}
- height={height}
- fit="fill"
- playbackRate={2}
- />
- );
+ return <Gif ref={ref} src="https://media.giphy.com/media/3o72F7YT6s0EMFI0Za/giphy.gif" width={width} height={height} fit="fill" playbackRate={2} />;
};
```
@@ -48,13 +39,10 @@ Remote GIFs need to support [CORS](https://developer.mozilla.org/en-US/docs/Web/
<summary>More info</summary>
<ul>
<li>
- Remotion's origin is usually <code>http://localhost:3000</code>, but it
- may be different if rendering on Lambda or the port is busy.
+ Remotion's origin is usually <code>http://localhost:3000</code>, but it may be different if rendering on Lambda or the port is busy.
</li>
<li>
- You can{' '}
- <a href="/docs/chromium-flags#--disable-web-security">disable CORS</a>{' '}
- during renders.
+ You can <a href="/docs/chromium-flags#--disable-web-security">disable CORS</a> during renders.
</li>
</ul>
</details>
@@ -112,9 +100,7 @@ Values:
- `< 1`: Slows down the GIF speed (e.g., 0.5 plays it at half speed).
- `> 1:` Speeds up the GIF speed (e.g., 2.0 plays it at double speed).
-### delayRenderTimeoutInMilliseconds<AvailableFrom v="4.0.403" />
-
-_optional_
+### `delayRenderTimeoutInMilliseconds?`<AvailableFrom v="4.0.403" />
Modifies the timeout of the internal [`delayRender()`](/docs/delay-render) call when loading the GIF. By default, Remotion will wait 30 seconds for the GIF to load before timing out. You can increase or decrease this timeout by passing a custom value.
diff --git a/packages/docs/docs/google-fonts/load-font.mdx b/packages/docs/docs/google-fonts/load-font.mdx
index 670dea315c..f889e011e7 100644
--- a/packages/docs/docs/google-fonts/load-font.mdx
+++ b/packages/docs/docs/google-fonts/load-font.mdx
@@ -84,27 +84,19 @@ The font style we want to load. While each font has a different set of styles, c
### options
-#### weights
-
-_optional_
+#### weights?
Array of weights that should be loaded. By default, all.
-#### subsets
-
-_optional_
+#### subsets?
Array of font subsets that should be loaded. By default, all.
-#### document
-
-_optional_
+#### document?
Allows you to specify a [`Document`](https://developer.mozilla.org/en-US/docs/Web/API/Document?retiredLocale=de). If you want to inject the fonts into an iframe, you want to give it a ref and pass `iframeRef.contentDocument` to this parameter. By default, the global `window.document` is used.
-#### ignoreTooManyRequestsWarning<AvailableFrom v="4.0.283" />
-
-_optional_
+#### ignoreTooManyRequestsWarning?<AvailableFrom v="4.0.283" />
If more than 20 network requests are made to load the font, then a warning will be printed to the console.
You can disable that warning by setting this option.
diff --git a/packages/docs/docs/html5-audio.mdx b/packages/docs/docs/html5-audio.mdx
index 9a277191df..6c01537f3d 100644
--- a/packages/docs/docs/html5-audio.mdx
+++ b/packages/docs/docs/html5-audio.mdx
@@ -141,8 +141,6 @@ export const MyVideo = () => {
### `name?`<AvailableFrom v="4.0.71"/>
-_optional_
-
A name and that will be shown as the label of the sequence in the timeline of the Remotion Studio. This property is purely for helping you keep track of items in the timeline.
### `loop?`<AvailableFrom v="3.2.29"/>
diff --git a/packages/docs/docs/img.mdx b/packages/docs/docs/img.mdx
index ac7ab20149..520434711e 100644
--- a/packages/docs/docs/img.mdx
+++ b/packages/docs/docs/img.mdx
@@ -71,17 +71,15 @@ From `v3.3.82`, the image load will first be retried before `onError` is thrown.
If an image fails to load, it will be retried from `v3.3.82`. The default value is `2`.
An exponential backoff is being used, with 1000ms delay between the first and second attempt, then 2000ms, then 4000ms and so on.
-### `pauseWhenLoading`<AvailableFrom v="4.0.111"/>
-
-_optional_
+### `pauseWhenLoading?`<AvailableFrom v="4.0.111"/>
If set to `true`, pause the Player when the image is loading. See: [Buffer state](/docs/player/buffer-state).
-### `delayRenderTimeoutInMilliseconds`<AvailableFrom v="4.0.140" />
+### `delayRenderTimeoutInMilliseconds?`<AvailableFrom v="4.0.140" />
Customize the [timeout](/docs/delay-render#modifying-the-timeout) of the [`delayRender()`](/docs/delay-render) call that this component makes.
-### `delayRenderRetries`<AvailableFrom v="4.0.140" />
+### `delayRenderRetries?`<AvailableFrom v="4.0.140" />
Customize the [number of retries](/docs/delay-render#retrying) of the [`delayRender()`](/docs/delay-render) call that this component makes.
Prefer the [`maxRetries`](#maxretries) prop over this.
diff --git a/packages/docs/docs/install-whisper-cpp/index.mdx b/packages/docs/docs/install-whisper-cpp/index.mdx
index 33599465f6..c2272c29e8 100644
--- a/packages/docs/docs/install-whisper-cpp/index.mdx
+++ b/packages/docs/docs/install-whisper-cpp/index.mdx
@@ -4,7 +4,7 @@ title: '@remotion/install-whisper-cpp'
crumb: 'Transcribe audio locally'
---
-_Available from v4.0.115_
+<AvailableFrom v="4.0.115" />
With [Whisper.cpp](https://github.com/ggerganov/whisper.cpp), you can transcribe audio locally on your machine.
This package provides easy to use cross-platform functions to install Whisper.cpp and a model.
diff --git a/packages/docs/docs/interpolate-colors.mdx b/packages/docs/docs/interpolate-colors.mdx
index 7ebc09652c..29c2ae5cc0 100644
--- a/packages/docs/docs/interpolate-colors.mdx
+++ b/packages/docs/docs/interpolate-colors.mdx
@@ -5,7 +5,7 @@ id: interpolate-colors
crumb: 'API'
---
-_Available from v2.0.3_
+<AvailableFrom v="2.0.3" />
Allows you to map a range of values to colors using a concise syntax.
diff --git a/packages/docs/docs/lambda/cli/compositions.mdx b/packages/docs/docs/lambda/cli/compositions.mdx
index 648d64fb86..78e52866a4 100644
--- a/packages/docs/docs/lambda/cli/compositions.mdx
+++ b/packages/docs/docs/lambda/cli/compositions.mdx
@@ -5,7 +5,7 @@ sidebar_label: compositions
crumb: 'Lambda CLI Reference'
---
-_Available from v3.3.2._
+<AvailableFrom v="3.3.2" />
Print list of composition IDs from a serve URL, fetched from inside a Lambda function.
diff --git a/packages/docs/docs/lambda/custom-destination.mdx b/packages/docs/docs/lambda/custom-destination.mdx
index 657f873e38..24ec40871e 100644
--- a/packages/docs/docs/lambda/custom-destination.mdx
+++ b/packages/docs/docs/lambda/custom-destination.mdx
@@ -53,20 +53,16 @@ If you like to use this feature:
This feature is not supported from the CLI.
-## Saving to another cloud
-
-_Available from v3.2.23_
+## Saving to another cloud<AvailableFrom v="3.2.23" />
You can upload the file to another S3-compatible provider.
- List of working providers (non-exhaustive):
-
- ✅ [Supabase](/docs/lambda/supabase)
- ✅ [Cloudflare](/docs/lambda/r2)
- ✅ DigitalOcean Spaces
- ✅ Google Cloud Storage
Notes about Google Cloud Storage:
-
- GCP does support allowing underscores for bucket names, but we validate against it. Do not use underscores in your bucket name.
- The bucket needs to have uniform access control and NOT fine-grained access.
- To get your `accessKeyId` and `secretAccessKey`, create a service account that has Cloud Storage read + write permissions. Then run the following command:
diff --git a/packages/docs/docs/lambda/deleterender.mdx b/packages/docs/docs/lambda/deleterender.mdx
index f4b912380d..6a13eef52d 100644
--- a/packages/docs/docs/lambda/deleterender.mdx
+++ b/packages/docs/docs/lambda/deleterender.mdx
@@ -36,9 +36,7 @@ The bucket name in which the render was stored. This should be the same variable
The ID of the render. You can retrieve this ID by calling [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) or [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda).
-### `customCredentials`
-
-_optional, available from v3.2.23_
+### `customCredentials?`<AvailableFrom v="3.2.23" />
If the render was saved to a [different cloud](/docs/lambda/custom-destination#saving-to-another-cloud), pass an object with the same `endpoint`, `accessKeyId` and `secretAccessKey` as you passed to [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda#outname) or [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda#outname).
diff --git a/packages/docs/docs/lambda/deploysite.mdx b/packages/docs/docs/lambda/deploysite.mdx
index 6fb6037447..062fe977d7 100644
--- a/packages/docs/docs/lambda/deploysite.mdx
+++ b/packages/docs/docs/lambda/deploysite.mdx
@@ -53,20 +53,14 @@ The AWS region in which the bucket resides.
### `siteName?`
-_optional_
-
Specify the subfolder in your S3 bucket that you want the site to deploy to. If you omit this property, a new subfolder with a random name will be created. If a site already exists with the name you passed, it will be overwritten. Can only contain the following characters: `0-9`, `a-z`, `A-Z`, `-`, `!`, `_`, `.`, `*`, `'`, `(`, `)`
### `logLevel?`<AvailableFrom v="4.0.140"/>
-_optional_
-
<Options id="log" />
### `options?`
-_optional_
-
An object with the following properties:
#### `onBundleProgress`
@@ -133,7 +127,6 @@ An object with the following values:
- `serveUrl` _(string)_: An URL such as `https://remotionlambda-12345.s3.eu-central-1.amazonaws.com/sites/abcdef/index.html`.
You can use this "Serve URL" to render a video on Remotion Lambda using:
-
- The [`npx remotion lambda render`](/docs/lambda/cli/render) and [`npx remotion lambda still`](/docs/lambda/cli/still) commands
- The [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda) functions.
- Locally using the [`renderMedia()`](/docs/renderer/render-media) and [`renderStill()`](/docs/renderer/render-still) functions.
diff --git a/packages/docs/docs/lambda/getcompositionsonlambda.mdx b/packages/docs/docs/lambda/getcompositionsonlambda.mdx
index 2cb3e902e5..6fa9eeeb3b 100644
--- a/packages/docs/docs/lambda/getcompositionsonlambda.mdx
+++ b/packages/docs/docs/lambda/getcompositionsonlambda.mdx
@@ -6,7 +6,7 @@ slug: /lambda/getcompositionsonlambda
crumb: 'Lambda API'
---
-_available from v3.3.2_
+<AvailableFrom v="3.3.2" />
Gets the compositions inside a Lambda function.
@@ -59,9 +59,7 @@ You may transform input props using [`calculateMetadata()`](/docs/calculate-meta
### `envVariables?`
-_optional - default `{}`_
-
-See [`renderMedia() -> envVariables`](/docs/renderer/render-media#envvariables).
+See [`renderMedia() -> envVariables`](/docs/renderer/render-media#envvariables). Default: `{}`.
### `timeoutInMilliseconds?`
@@ -91,9 +89,7 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.
Lets you set a custom user agent that the headless Chrome browser assumes.
-### `forceBucketName?`
-
-_available from v3.3.42_
+### `forceBucketName?`<AvailableFrom v="3.3.42" />
Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
@@ -117,9 +113,7 @@ Logs can be read through the CloudWatch URL that this function returns.
### ~~`dumpBrowserLogs?`~~
-_optional - default `false`, deprecated in v4.0_
-
-Deprecated in favor of [`logLevel`](#loglevel).
+Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
## Return value
diff --git a/packages/docs/docs/lambda/getsites.mdx b/packages/docs/docs/lambda/getsites.mdx
index 73cc429ce0..2775bb9d49 100644
--- a/packages/docs/docs/lambda/getsites.mdx
+++ b/packages/docs/docs/lambda/getsites.mdx
@@ -50,8 +50,6 @@ The [AWS region](/docs/lambda/region-selection) which you want to query.
### `forceBucketName?`<AvailableFrom v="3.3.102"/>
-_optional_
-
Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
## Return value
diff --git a/packages/docs/docs/lambda/proxy.mdx b/packages/docs/docs/lambda/proxy.mdx
index 6e9a082164..161e5ab782 100644
--- a/packages/docs/docs/lambda/proxy.mdx
+++ b/packages/docs/docs/lambda/proxy.mdx
@@ -6,7 +6,7 @@ sidebar_label: Using a proxy
crumb: 'Lambda'
---
-_Available from v4.0.315_
+<AvailableFrom v="4.0.315" />
Remotion Lambda supports using HTTP/HTTPS proxies for all AWS API calls by accepting a `requestHandler` option that allows you to pass a custom AWS SDK request handler.
diff --git a/packages/docs/docs/lambda/rendermediaonlambda.mdx b/packages/docs/docs/lambda/rendermediaonlambda.mdx
index c92054e8d2..4f67962faf 100644
--- a/packages/docs/docs/lambda/rendermediaonlambda.mdx
+++ b/packages/docs/docs/lambda/rendermediaonlambda.mdx
@@ -39,9 +39,9 @@ An object with the following properties:
In which region your Lambda function is deployed. It's highly recommended that your Remotion site is also in the same region.
-### `privacy`
+### `privacy?`
-_optional since v3.2.27_
+Optional since <AvailableFrom v="3.2.27" />.
One of:
@@ -56,8 +56,6 @@ Use [`deployFunction()`](/docs/lambda/deployfunction) to create a new function a
### `framesPerLambda?`
-_optional_
-
The video rendering process gets distributed across multiple Lambda functions. This setting controls how many frames are rendered per Lambda invocation. The lower the number you pass, the more Lambdas get spawned.
Default value: [Dependant on video length](/docs/lambda/concurrency)
@@ -69,8 +67,6 @@ The `framesPerLambda` parameter cannot result in more than 200 functions being s
### `concurrency?`<AvailableFrom v="4.0.322" />
-_optional_
-
Specify the number of Lambda functions to use for rendering. This is an alternative to `framesPerLambda` that allows you to set the concurrency directly without needing to know the video duration.
The concurrency is defined as `frameCount / framesPerLambda`. Remotion will automatically calculate the appropriate `framesPerLambda` value based on your concurrency setting.
@@ -84,8 +80,6 @@ Cannot be used together with `framesPerLambda`. Use only one of them.
### `frameRange?`
-_number | [number, number] - optional_
-
Specify a single frame (passing a `number`) or a range of frames (passing a tuple `[number, number]`) to render a subset of a video. Example: `[0, 9]` to select the first 10 frames. By passing `null` (default) all frames of a composition get rendered. To render a still, use [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda).
### `serveUrl`
@@ -96,15 +90,13 @@ A URL pointing to a Remotion project. Use [`deploySite()`](/docs/lambda/deploysi
The `id` of the [composition](/docs/composition) you want to render.
-### `metadata`<AvailableFrom v="4.0.216" />
-
-_object - optional_
+### `metadata?`<AvailableFrom v="4.0.216" />
<Options id="metadata" />
-### `inputProps`
+### `inputProps?`
-_optional since v3.2.27_
+Optional since <AvailableFrom v="3.2.27" />.
[Input Props to pass to the selected composition of your video.](/docs/passing-props#passing-input-props-in-the-cli).
Must be a JSON object.
@@ -123,10 +115,7 @@ The option `h264-mkv` has been renamed to just `h264` since `v3.3.34`. Use `h264
See also [`renderMedia() -> codec`](/docs/renderer/render-media#codec).
-### `audioCodec?`
-
-_optional_
-_"pcm-16" | "aac" | "mp3" | "opus", available from v3.3.41_
+### `audioCodec?`<AvailableFrom v="3.3.41" />
Choose the encoding of your audio.
@@ -138,61 +127,45 @@ Choose the encoding of your audio.
Refer to the [Encoding guide](/docs/encoding/#audio-codec) to see defaults and supported combinations.
-### `forceHeight?`
-
-_optional, available from v3.2.40_
+### `forceHeight?`<AvailableFrom v="3.2.40" />
Overrides default composition height.
-### `forceWidth?`
-
-_optional, available from v3.2.40_
+### `forceWidth?`<AvailableFrom v="3.2.40" />
Overrides default composition width.
### `muted?`
-_optional_
-
Disables audio output. See also [`renderMedia() -> muted`](/docs/renderer/render-media#muted).
-### `imageFormat`
+### `imageFormat?`
-_optional since v3.2.27_
+Optional since <AvailableFrom v="3.2.27" />.
See [`renderMedia() -> imageFormat`](/docs/renderer/render-media#imageformat).
### `crf?`
-_optional_
-
See [`renderMedia() -> crf`](/docs/renderer/render-media#crf).
### `envVariables?`
-_optional_
-
See [`renderMedia() -> envVariables`](/docs/renderer/render-media#envvariables).
### `pixelFormat?`
-_optional_
-
See [`renderMedia() -> pixelFormat`](/docs/renderer/render-media#pixelformat).
### `proResProfile?`
-_optional_
-
See [`renderMedia() -> proResProfile`](/docs/renderer/render-media#proresprofile).
### `x264Preset?`
-_optional_
-
<Options id="x264-preset" />
-### `jpegQuality`
+### `jpegQuality?`
See [`renderMedia() -> jpegQuality`](/docs/renderer/render-media#jpegquality).
@@ -202,14 +175,10 @@ Renamed to `jpegQuality` in v4.0.0.
### `audioBitrate?`
-_optional_
-
<Options id="audio-bitrate" />
### `videoBitrate?`
-_optional_
-
<Options id="video-bitrate" />
### `bufferSize?`<AvailableFrom v="4.0.78" />
@@ -220,9 +189,9 @@ _optional_
<Options id="max-rate" />
-### `maxRetries`
+### `maxRetries?`
-_optional since v3.2.27, default `1`_
+Optional since <AvailableFrom v="3.2.27" />. Default: `1`.
How often a chunk may be retried to render in case the render fails.
If a rendering of a chunk is failed, the error will be reported in the [`getRenderProgress()`](/docs/lambda/getrenderprogress) object and retried up to as many times as you specify using this option.
@@ -233,14 +202,10 @@ A retry only gets executed if a the error is in the [list of flaky errors](https
### `scale?`
-_optional_
-
<Options id="scale" />
### `outName?`
-_optional_
-
The file name of the media output.
It can either be:
@@ -251,31 +216,21 @@ It can either be:
### `timeoutInMilliseconds?`
-_optional_
-
A number describing how long the render may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000`
-### `concurrencyPerLambda?`
-
-_optional, available from v3.0.30_
+### `concurrencyPerLambda?`<AvailableFrom v="3.0.30" />
By default, each Lambda function renders with concurrency 1 (one open browser tab). You may use the option to customize this value.
-### `everyNthFrame?`
-
-_optional, available from v3.1_
+### `everyNthFrame?`<AvailableFrom v="3.1" />
Renders only every nth frame. For example only every second frame, every third frame and so on. Only works for rendering GIFs. [See here for more details.](/docs/render-as-gif)
-### `numberOfGifLoops?`
-
-_optional, available since v3.1_
+### `numberOfGifLoops?`<AvailableFrom v="3.1" />
<Options id="number-of-gif-loops" />
-### `downloadBehavior?`
-
-_optional, available since v3.1.5_
+### `downloadBehavior?`<AvailableFrom v="3.1.5" />
How the output file should behave when accessed through the S3 output link in the browser.
Either:
@@ -303,24 +258,18 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.
<Options id="gl" />
-### `overwrite?`
-
-_available from v3.2.25_
+### `overwrite?`<AvailableFrom v="3.2.25" />
If a custom out name is specified and a file already exists at this key in the S3 bucket, decide whether the file should be overwritten. Default `false`.
If the file exists and `overwrite` is `false`, an error will be thrown.
-### `rendererFunctionName?`
-
-_optional, available from v3.3.38_
+### `rendererFunctionName?`<AvailableFrom v="3.3.38" />
If specified, this function will be used for rendering the individual chunks. This is useful if you want to use a function with higher or lower power for rendering the chunks than the main orchestration function.
If you want to use this option, the function must be in the same region, the same account and have the same version as the main function.
-### `webhook?`
-
-_optional, available from v3.2.30_
+### `webhook?`<AvailableFrom v="3.2.30" />
If specified, Remotion will send a POST request to the provided endpoint to notify your application when the Lambda rendering process finishes, errors out or times out.
@@ -350,9 +299,7 @@ const webhook: RenderMediaOnLambdaInput['webhook'] = {
[See here for detailed instructions on how to set up your webhook](/docs/lambda/webhooks).
-### `forceBucketName?`
-
-_optional, available from v3.3.42_
+### `forceBucketName?`<AvailableFrom v="3.3.42" />
Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
@@ -400,9 +347,7 @@ An [identifier](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-cl
### ~~`dumpBrowserLogs?`~~
-_optional - default `false`, deprecated in v4.0_
-
-Deprecated in favor of [`logLevel`](#loglevel).
+Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
## Return value
diff --git a/packages/docs/docs/lambda/renderstillonlambda.mdx b/packages/docs/docs/lambda/renderstillonlambda.mdx
index e84e1aede0..8bf5ca68fc 100644
--- a/packages/docs/docs/lambda/renderstillonlambda.mdx
+++ b/packages/docs/docs/lambda/renderstillonlambda.mdx
@@ -75,17 +75,13 @@ One of:
### `frame?`
-_optional - default `0`_
-
-Which frame of the composition should be rendered. Frames are zero-indexed.
+Which frame of the composition should be rendered. Default: `0`. Frames are zero-indexed.
From v3.2.27, negative values are allowed, with `-1` being the last frame.
### `imageFormat?`
-_optional - default `"png"`_
-
-See [`renderStill() -> imageFormat`](/docs/renderer/render-still#imageformat).
+See [`renderStill() -> imageFormat`](/docs/renderer/render-still#imageformat). Default: `"png"`.
### `onInit?`<AvailableFrom v="4.0.6" />
@@ -129,8 +125,6 @@ await renderStillOnLambda({
### `jpegQuality?`
-_optional_
-
Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default is to leave it up to the browser, [current default is 80](https://github.com/chromium/chromium/blob/99314be8152e688bafbbf9a615536bdbb289ea87/headless/lib/browser/protocol/headless_handler.cc#L32).
Only applies if `imageFormat` is `"jpeg"`, otherwise this option is invalid.
@@ -141,9 +135,7 @@ Renamed to `jpegQuality` in `v4.0.0`.
### `maxRetries?`
-_optional - default `1`_
-
-How often a frame render may be retried until it fails.
+How often a frame render may be retried until it fails. Default: `1`.
:::note
A retry only gets executed if a the error is in the [list of flaky errors](https://github.com/remotion-dev/remotion/blob/main/packages/lambda-client/src/is-flaky-error.ts).
@@ -151,32 +143,22 @@ A retry only gets executed if a the error is in the [list of flaky errors](https
### `envVariables?`
-_optional - default `{}`_
+See [`renderStill() -> envVariables`](/docs/renderer/render-still#envvariables). Default: `{}`.
-See [`renderStill() -> envVariables`](/docs/renderer/render-still#envvariables).
-
-### `forceHeight?`
-
-_optional, available from v3.2.40_
+### `forceHeight?`<AvailableFrom v="3.2.40" />
Overrides the default composition height.
-### `forceWidth?`
-
-_optional, available from v3.2.40_
+### `forceWidth?`<AvailableFrom v="3.2.40" />
Overrides the default composition width.
### `scale?`
-_optional_
-
<Options id="scale" />
### `outName?`
-_optional_
-
It can either be:
- `undefined` - it will default to `out` plus the appropriate file extension, for example: `renders/${renderId}/out.mp4`.
@@ -185,13 +167,9 @@ It can either be:
### `timeoutInMilliseconds?`
-_optional_
-
A number describing how long the render may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000`
-### `downloadBehavior?`
-
-_optional, available since v3.1.5_
+### `downloadBehavior?`<AvailableFrom v="3.1.5" />
How the output file should behave when accessed through the S3 output link in the browser.
Either:
@@ -217,8 +195,6 @@ Either:
### `chromiumOptions?`
-_optional_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
#### `disableWebSecurity`
@@ -243,14 +219,10 @@ Lets you set a custom user agent that the headless Chrome browser assumes.
### `forceBucketName?`
-_optional_
-
Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.
### `logLevel?`
-_optional_
-
<Options id="log" />
Logs can be read through the CloudWatch URL that this function returns.
@@ -265,9 +237,7 @@ An [identifier](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-cl
### ~~`dumpBrowserLogs?`~~
-_optional - default `false`, deprecated in v4.0_
-
-Deprecated in favor of [`logLevel`](#loglevel).
+Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
## Return value
@@ -297,9 +267,7 @@ The size of the output image in bytes.
A unique alphanumeric identifier for this render. Useful for obtaining status and finding the relevant files in the S3 bucket.
-### `cloudWatchLogs`
-
-_Available from v3.2.10_
+### `cloudWatchLogs`<AvailableFrom v="3.2.10" />
A link to CloudWatch (if you haven't disabled it) that you can visit to see the logs for the render.
diff --git a/packages/docs/docs/lambda/simulatepermissions.mdx b/packages/docs/docs/lambda/simulatepermissions.mdx
index 765f95ee14..b266693bbd 100644
--- a/packages/docs/docs/lambda/simulatepermissions.mdx
+++ b/packages/docs/docs/lambda/simulatepermissions.mdx
@@ -37,9 +37,7 @@ An object with the following properties:
The [AWS region](/docs/lambda/region-selection) that you would like to query.
-### `onSimulation`
-
-_optional_
+### `onSimulation?`
A callback function that gets called every time a new simulation has been executed. This allows you to react to new simulation results coming in much faster than waiting for the return value of the function. Example:
diff --git a/packages/docs/docs/lambda/validatewebhooksignature.mdx b/packages/docs/docs/lambda/validatewebhooksignature.mdx
index e219c07ee2..48aea923e5 100644
--- a/packages/docs/docs/lambda/validatewebhooksignature.mdx
+++ b/packages/docs/docs/lambda/validatewebhooksignature.mdx
@@ -3,10 +3,10 @@ image: /generated/articles-docs-lambda-validatewebhooksignature.png
id: validatewebhooksignature
title: validateWebhookSignature()
slug: /lambda/validatewebhooksignature
-crumb: "Lambda API"
+crumb: 'Lambda API'
---
-_Available from v3.2.30_
+<AvailableFrom v="3.2.30" />
Validates that the signature that was received by a [webhook](/docs/lambda/webhooks) endpoint is authentic. If the validation fails, an error is thrown.
@@ -36,29 +36,23 @@ type NextApiRequest = {
headers: Record<string, string>;
};
type NextApiResponse = {
- status: (code: number) => { json: (body: object) => void };
+ status: (code: number) => {json: (body: object) => void};
};
// ---cut---
-import {
- validateWebhookSignature,
- WebhookPayload,
-} from "@remotion/lambda/client";
-
-export default async function handler(
- req: NextApiRequest,
- res: NextApiResponse,
-) {
+import {validateWebhookSignature, WebhookPayload} from '@remotion/lambda/client';
+
+export default async function handler(req: NextApiRequest, res: NextApiResponse) {
validateWebhookSignature({
secret: process.env.WEBHOOK_SECRET as string,
body: req.body,
- signatureHeader: req.headers["x-remotion-signature"] as string,
+ signatureHeader: req.headers['x-remotion-signature'] as string,
});
// If code reaches this path, the webhook is authentic.
const payload = req.body as WebhookPayload;
- if (payload.type === "success") {
+ if (payload.type === 'success') {
// ...
- } else if (payload.type === "timeout") {
+ } else if (payload.type === 'timeout') {
// ...
}
diff --git a/packages/docs/docs/layout-utils/index.mdx b/packages/docs/docs/layout-utils/index.mdx
index 79f2264f7b..22b692b2e4 100644
--- a/packages/docs/docs/layout-utils/index.mdx
+++ b/packages/docs/docs/layout-utils/index.mdx
@@ -1,9 +1,9 @@
---
image: /generated/articles-docs-layout-utils-index.png
-title: "@remotion/layout-utils"
+title: '@remotion/layout-utils'
---
-_Available from v4.0.50_
+<AvailableFrom v="4.0.50" />
Utility functions for creating dynamic layouts.
@@ -46,7 +46,7 @@ yarn add @remotion/layout-utils
## Functions
-<TableOfContents/>
+<TableOfContents />
## License
diff --git a/packages/docs/docs/loop.mdx b/packages/docs/docs/loop.mdx
index eb994dd9f3..2f2c648b9a 100644
--- a/packages/docs/docs/loop.mdx
+++ b/packages/docs/docs/loop.mdx
@@ -12,7 +12,7 @@ const BlueSquare: React.FC = () => <div></div>
// - BlueSquare
```
-_available from v2.5.0_
+<AvailableFrom v="2.5.0" />
The `<Loop />` component allows you to quickly lay out an animation so it repeats itself.
@@ -41,23 +41,17 @@ The Loop component is a high order component and accepts, besides it's children,
How many frames one iteration of the loop should be long.
-### `times`
+### `times?`
-_optional_
+How many times to loop the content. Default: `Infinity`.
-How many times to loop the content. By default it will be `Infinity`.
+### `layout?`
-### `layout`
-
-_optional_
-
-Either `"absolute-fill"` _(default)_ or `"none"`.
+Either `"absolute-fill"` or `"none"`. Default: `"absolute-fill"`.
By default, your content will be absolutely positioned.
If you would like to disable layout side effects, pass `layout="none"`.
-### `style`<AvailableFrom v="3.3.4"/>
-
-_optional_
+### `style?`<AvailableFrom v="3.3.4"/>
CSS styles to be applied to the container. If `layout` is set to `none`, there is no container and setting this style is not allowed.
diff --git a/packages/docs/docs/lottie/lottie-comp.mdx b/packages/docs/docs/lottie/lottie-comp.mdx
index 7f6755392b..619e705a39 100644
--- a/packages/docs/docs/lottie/lottie-comp.mdx
+++ b/packages/docs/docs/lottie/lottie-comp.mdx
@@ -1,10 +1,10 @@
---
image: /generated/articles-docs-lottie-lottie-comp.png
id: lottie-comp
-sidebar_label: "<Lottie>"
-title: "<Lottie>"
+sidebar_label: '<Lottie>'
+title: '<Lottie>'
slug: lottie
-crumb: "@remotion/lottie"
+crumb: '@remotion/lottie'
---
_Part of the [`@remotion/lottie`](/docs/lottie) package._
@@ -16,8 +16,8 @@ _Part of the [`@remotion/lottie`](/docs/lottie) package._
```
```tsx title="Animation.tsx"
-import { Lottie } from "@remotion/lottie";
-import animationData from "./animation.json";
+import {Lottie} from '@remotion/lottie';
+import animationData from './animation.json';
export const MyAnimation: React.FC = () => {
return <Lottie animationData={animationData} />;
@@ -69,21 +69,17 @@ _"svg"_ | _"canvas"_ | _"html"_
Set the renderer for the Lottie files. Default `svg`. See: [`renderer` option](https://github.com/airbnb/lottie-web/wiki/Usage#getting-started), [Supported Features](https://github.com/airbnb/lottie-web/wiki/Features)
-### `preserveAspectRatio`<AvailableFrom v="4.0.105" />
-
-_optional, string_
+### `preserveAspectRatio?`<AvailableFrom v="4.0.105" />
Set how aspect ratios should be handled in the Lottie file.
See [`preserveAspectRatio`](https://github.com/airbnb/lottie-web/wiki/Renderer-Settings#preserveaspectratio)
-### `onAnimationLoaded`<AvailableFrom v="3.2.29" />
-
-_optional_
+### `onAnimationLoaded?`<AvailableFrom v="3.2.29" />
Callback that gets invoked when the Lottie animation has been initialized. The Lottie [`AnimationItem`](https://airbnb.io/lottie/#/web?id=usage-1) gets passed as a parameter.
```tsx twoslash
-import type { LottieAnimationData } from "@remotion/lottie";
+import type {LottieAnimationData} from '@remotion/lottie';
const animationData: LottieAnimationData = {
fr: 0,
@@ -94,27 +90,20 @@ const animationData: LottieAnimationData = {
// ---cut---
-import { Lottie } from "@remotion/lottie";
-import { AnimationItem } from "lottie-web";
-import { useCallback } from "react";
+import {Lottie} from '@remotion/lottie';
+import {AnimationItem} from 'lottie-web';
+import {useCallback} from 'react';
const Comp: React.FC = () => {
const onAnimationLoaded = useCallback((item: AnimationItem) => {
console.log(item.renderer);
}, []);
- return (
- <Lottie
- animationData={animationData}
- onAnimationLoaded={onAnimationLoaded}
- />
- );
+ return <Lottie animationData={animationData} onAnimationLoaded={onAnimationLoaded} />;
};
```
-### `assetsPath`<AvailableFrom v="4.0.138" />
-
-_optional_
+### `assetsPath?`<AvailableFrom v="4.0.138" />
Set the Lottie [`assetsPath`](https://github.com/airbnb/lottie-web/wiki/loadAnimation-options#assetspath) option. Example: `staticFile('lottie')` will take assets from the `public/lottie` folder.
diff --git a/packages/docs/docs/measure-spring.mdx b/packages/docs/docs/measure-spring.mdx
index bbd851bd96..39ea9d8dc8 100644
--- a/packages/docs/docs/measure-spring.mdx
+++ b/packages/docs/docs/measure-spring.mdx
@@ -2,15 +2,15 @@
image: /generated/articles-docs-measure-spring.png
title: measureSpring()
id: measure-spring
-crumb: "API"
+crumb: 'API'
---
-_Available from v2.0.8_
+<AvailableFrom v="2.0.8" />
Based on a [spring()](/docs/spring) configuration and the frame rate, return how long it takes for a spring animation to settle.
```tsx twoslash
-import { measureSpring, SpringConfig } from "remotion";
+import {measureSpring, SpringConfig} from 'remotion';
const config: Partial<SpringConfig> = {
damping: 200,
@@ -36,31 +36,23 @@ An object with these keys:
The frame rate on which the spring animation is based on.
-### `threshold`
+### `threshold?`
-_optional - default: `0.005`_
-
-Defines when the animation should be considered finished. `0.01` means that the animation is finished when it always stays within 1% of the `to` value. For example an animation that goes from 0 to 1 is considered finished when the value never leaves the range [0.99, 1.01] after the end point.
+Defines when the animation should be considered finished. Default: `0.005`. `0.01` means that the animation is finished when it always stays within 1% of the `to` value. For example an animation that goes from 0 to 1 is considered finished when the value never leaves the range [0.99, 1.01] after the end point.
Lower values mean the spring duration is longer, higher values result in the spring duration being shorter.
### `config?`
-_optional_
-
The spring configuration that you pass to [spring()](/docs/spring#config).
### `from?`
-_optional - default: `0`_
-
-The initial value of the animation.
+The initial value of the animation. Default: `0`.
### `to?`
-_optional - default: `1`_
-
-The end value of the animation. Note that depending on the parameters, spring animations may overshoot the target a bit, before they bounce back to their final target.
+The end value of the animation. Default: `1`. Note that depending on the parameters, spring animations may overshoot the target a bit, before they bounce back to their final target.
## Compatibility
diff --git a/packages/docs/docs/motion-blur/camera-motion-blur.mdx b/packages/docs/docs/motion-blur/camera-motion-blur.mdx
index d142b64c72..50dc2b327e 100644
--- a/packages/docs/docs/motion-blur/camera-motion-blur.mdx
+++ b/packages/docs/docs/motion-blur/camera-motion-blur.mdx
@@ -12,7 +12,7 @@ const RainbowSquare: React.FC = () => <div></div>
// - RainbowSquare
```
-_available from v3.2.39_
+<AvailableFrom v="3.2.39" />
The `<CameraMotionBlur>` produces natural looking motion blur similar to what would be produced by
a film camera.
@@ -29,11 +29,9 @@ possible and carefully inspect that the output is of acceptable quality.
Wrap your content in `<CameraMotionBlur>` and optionally add the following props in addition.
-### `shutterAngle`
+### `shutterAngle?`
-_optional - default: `180`_
-
-Controls the amount of blur.
+Controls the amount of blur. Default: `180`.
A lower value will result in less blur and a higher value will result in more.
@@ -61,11 +59,9 @@ Read more here: [Rotary disc shutter on Wikipedia](https://en.wikipedia.org/wiki
</details>
-### `samples`
-
-_optional - default: `10`_
+### `samples?`
-The final image is an average of the samples. For a value of `10` the component will render ten
+The final image is an average of the samples. Default: `10`. For a value of `10` the component will render ten
frames with different time offsets and combine them into a final image.
:::caution
diff --git a/packages/docs/docs/motion-blur/index.mdx b/packages/docs/docs/motion-blur/index.mdx
index 43d1f1f92a..2894d6aa74 100644
--- a/packages/docs/docs/motion-blur/index.mdx
+++ b/packages/docs/docs/motion-blur/index.mdx
@@ -1,13 +1,13 @@
---
image: /generated/articles-docs-motion-blur-index.png
-title: "@remotion/motion-blur"
+title: '@remotion/motion-blur'
---
-_Available from v3.2.31_
+<AvailableFrom v="3.2.31" />
Higher order components that create a motion blur and trail effects.
-import { TableOfContents } from "./table-of-contents";
+import {TableOfContents} from './table-of-contents';
<Installation pkg="@remotion/motion-blur" />
diff --git a/packages/docs/docs/noise/index.mdx b/packages/docs/docs/noise/index.mdx
index 4654d9f3ad..8e5c332d3b 100644
--- a/packages/docs/docs/noise/index.mdx
+++ b/packages/docs/docs/noise/index.mdx
@@ -1,10 +1,9 @@
---
image: /generated/articles-docs-noise-index.png
-title: "@remotion/noise"
+title: '@remotion/noise'
---
-
-_Available from v3.2.32_
+<AvailableFrom v="3.2.32" />
Utility functions that create a noise effect.
@@ -47,7 +46,7 @@ yarn add @remotion/noise
## Functions
-<TableOfContents/>
+<TableOfContents />
## License
diff --git a/packages/docs/docs/offthreadvideo.mdx b/packages/docs/docs/offthreadvideo.mdx
index 11c9f42150..62991b0cf0 100644
--- a/packages/docs/docs/offthreadvideo.mdx
+++ b/packages/docs/docs/offthreadvideo.mdx
@@ -5,7 +5,7 @@ title: '<OffthreadVideo>'
crumb: 'API'
---
-_Available from Remotion 3.0.11_
+<AvailableFrom v="3.0.11" />
This component imports and displays a video, similar to [`<Html5Video/>`](/docs/html5-video), but during rendering, extracts the exact frame from the video and displays it in a [`<Img>`](/docs/img) tag. This extraction process happens outside the browser using FFmpeg.
diff --git a/packages/docs/docs/openai-whisper/index.mdx b/packages/docs/docs/openai-whisper/index.mdx
index e29630f629..6a022f5030 100644
--- a/packages/docs/docs/openai-whisper/index.mdx
+++ b/packages/docs/docs/openai-whisper/index.mdx
@@ -4,7 +4,7 @@ title: '@remotion/openai-whisper'
crumb: 'Subtitle videos'
---
-_Available from v4.0.217_
+<AvailableFrom v="4.0.217" />
The `@remotion/openai-whisper` package provides utilities for working with the OpenAI Whisper API.
diff --git a/packages/docs/docs/player/api.mdx b/packages/docs/docs/player/api.mdx
index 51e006d319..f9c229ef69 100644
--- a/packages/docs/docs/player/api.mdx
+++ b/packages/docs/docs/player/api.mdx
@@ -62,45 +62,31 @@ The height you would like the video to have when rendered as an MP4. Use `style=
Pass props to the component that you have specified using the `component` prop. The Typescript definition takes the shape of the props that you have given to your `component`.
-### `loop`
-
-_optional_
+### `loop?`
Whether the video should restart when it ends. Default `false`.
-### `autoPlay`
-
-_optional_
+### `autoPlay?`
Whether the video should start immediately after loaded. Default `false`.
-### `controls`
-
-_optional_
+### `controls?`
Whether the video should display a seek bar and a play/pause button. Default `false.`
-### `showVolumeControls`
-
-_optional_
+### `showVolumeControls?`
Whether the video should display a volume slider and a mute button. Only has an effect if `controls` is also set to true. Default `true`.
-### `allowFullscreen`
-
-_optional_
+### `allowFullscreen?`
Whether the video can go fullscreen. By default `true`.
-### `clickToPlay`
-
-_optional_
+### `clickToPlay?`
A boolean property defining whether you can play, pause or resume the video with a single click into the player. Default `true` if `controls` are true, otherwise `false`.
-### `doubleClickToFullscreen`
-
-_optional_
+### `doubleClickToFullscreen?`
A boolean property defining whether you can go fullscreen and exit fullscreen in the video with double click into the player. If enabled, clicking on the video once will delay pausing the video for 200ms to wait for a possible second click. Default `false`.
@@ -108,39 +94,27 @@ A boolean property defining whether you can go fullscreen and exit fullscreen in
This option is not supported on mobile. You do not double-tap on mobile to go to fullscreen.
:::
-### `spaceKeyToPlayOrPause`
-
-_optional_
+### `spaceKeyToPlayOrPause?`
A boolean property defining whether you can play or pause a video using space key. If enabled, playing the video and subsequently pressing the space key pauses and resumes the video. Only works if `controls` is true. Default `true`.
-### `moveToBeginningWhenEnded`<AvailableFrom v="3.1.3" />
-
-_optional_
+### `moveToBeginningWhenEnded?`<AvailableFrom v="3.1.3" />
A boolean property defining whether the video position should go back to zero once the video has ended. Only works if `loop` is disabled. Default `true`.
-### `style`
-
-_optional_
+### `style?`
A regular `style` prop for a HTMLDivElement. You can pass a different height and width if you would like different dimensions for the player than the original composition dimensions.
-### `className`<AvailableFrom v="3.1.3" />
-
-_optional_
+### `className?`<AvailableFrom v="3.1.3" />
A HTML class name to be applied to the container.
-### `initialFrame`<AvailableFrom v="3.1.14" />
-
-_optional_
+### `initialFrame?`<AvailableFrom v="3.1.14" />
Start the playback from a specific frame. Default `0`. Once the player is mounted, this property cannot be changed.
-### `numberOfSharedAudioTags`<AvailableFrom v="2.3.1" />
-
-_optional_
+### `numberOfSharedAudioTags?`<AvailableFrom v="2.3.1" />
If you use an [`<Html5Audio />`](/docs/html5-audio) tag, it might not play in some browsers (specifically iOS Safari) due to browser autoplay policies. This is why the Remotion Player pre-mounts a set of audio tags with silent audio that get played upon user interaction. These audio tags can then be used to play real audio later and will not be subject to the autoplay policy of the browser.
@@ -150,9 +124,7 @@ If you'd like to opt out of this behavior, you can pass `0` to mount native audi
Once you have set this prop, you cannot change it anymore or an error will be thrown.
-### `playbackRate`
-
-_optional_
+### `playbackRate?`
A number between -4 and 4 (excluding 0) for the speed that the Player will run the media.
@@ -160,15 +132,11 @@ A `playbackRate` of `2` means the video plays twice as fast. A playbackRate of `
Default `1`.
-### `errorFallback`
-
-_optional_
+### `errorFallback?`
A callback for rendering a custom error message. See [Handling errors](#handling-errors) section for an example.
-### `renderLoading`
-
-_optional_
+### `renderLoading?`
A callback function that allows you to return a custom UI that gets displayed while the player is loading.
@@ -201,9 +169,7 @@ const MyApp: React.FC = () => {
A player needs to be loaded if it contains elements that use React Suspense, or if the `lazyComponent` prop is being used.
:::
-### `renderPoster`<AvailableFrom v="3.2.14" />
-
-_optional_
+### `renderPoster?`<AvailableFrom v="3.2.14" />
A callback function that allows you to return a custom UI that gets overlayed over the Player.
@@ -244,63 +210,43 @@ const MyApp: React.FC = () => {
};
```
-### `showPosterWhenUnplayed`<AvailableFrom v="3.2.14" />
-
-_optional_
+### `showPosterWhenUnplayed?`<AvailableFrom v="3.2.14" />
Render the poster when the video is in its initial state and has not been played yet. Requires [`renderPoster()`](#renderposter) to be set. Default: `false`.
-### `showPosterWhenPaused`<AvailableFrom v="3.2.14" />
-
-_optional_
+### `showPosterWhenPaused?`<AvailableFrom v="3.2.14" />
Render the poster when the video is paused. Although considered a paused state, the poster will not render while the user is scrubbing through the video. Requires [`renderPoster()`](#renderposter) to be set. Default: `false`.
-### `showPosterWhenEnded`<AvailableFrom v="3.2.14" />
-
-_optional_
+### `showPosterWhenEnded?`<AvailableFrom v="3.2.14" />
Render the poster when the video has ended. Requires [`moveToBeginning`](#movetobeginningwhenended) to be set to `false`. [`renderPoster()`](#renderposter) to be set. Default: `false`.
-### `showPosterWhenBuffering`<AvailableFrom v="4.0.111" />
-
-_optional_
+### `showPosterWhenBuffering?`<AvailableFrom v="4.0.111" />
Render a poster when the `<Player>` is in the [buffering state](/docs/player/buffer-state) and [playing](/docs/player/buffer-state#possible-states). You may for example show a spinner in the center of the video.
-### `showPosterWhenBufferingAndPaused`<AvailableFrom v="4.0.290" />
-
-_optional_
+### `showPosterWhenBufferingAndPaused?`<AvailableFrom v="4.0.290" />
Render a poster when the `<Player>` is in the [buffering state](/docs/player/buffer-state) and [paused](/docs/player/buffer-state#possible-states). You may for example show a spinner in the center of the video.
-### `inFrame`<AvailableFrom v="3.2.15" />
-
-_optional_
+### `inFrame?`<AvailableFrom v="3.2.15" />
Limit playback to only play after a certain frame. The video will start from this frame and move to this position once it has ended. Must be an integer, not smaller than `0`, not bigger than [`outFrame`](#outframe) and not bigger than `durationInFrames - 1`. Default `null`, which means the beginning of the video.
-### `outFrame`<AvailableFrom v="3.2.15" />
-
-_optional_
+### `outFrame?`<AvailableFrom v="3.2.15" />
Limit playback to only play before a certain frame. The video will end at this frame and move to the beginning once it has ended. Must be an integer, not smaller than `1`, not smaller than [`inFrame`](#inframe) and not bigger than `durationInFrames - 1`. Default `null`, which means the end of the video.
-### `initiallyShowControls`<AvailableFrom v="3.2.24" />
-
-_optional_
+### `initiallyShowControls?`<AvailableFrom v="3.2.24" />
If true, the controls flash when the player enters the scene. After 2 seconds without hover, the controls fade out. This is similar to how YouTube does it, and signals to the user that the player is in fact controllable. You can also pass a `number`, with which you can customize the duration in milliseconds. Default `true` since `v3.2.24`, before that unsupported.
-### `initiallyMuted`<AvailableFrom v="3.3.81" />
-
-_optional_
+### `initiallyMuted?`<AvailableFrom v="3.3.81" />
If true, the player is muted in its initial state. This is useful if the video must autoplay regardless of the [autoplay](/docs/player/autoplay) policy of the browser.
-### `renderPlayPauseButton`<AvailableFrom v="3.2.32" />
-
-_optional_
+### `renderPlayPauseButton?`<AvailableFrom v="3.2.32" />
Allows you to customize the Play/Pause button of the controls.
Must be a callback function that returns a valid React element.
@@ -336,9 +282,7 @@ Since v4.0.111, a `isBuffering` parameter is being passed in the callback which
Since v4.0.111, You can return `null` in the callback to fall back to the default UI.
-### `renderFullscreenButton`<AvailableFrom v="3.2.32" />
-
-_optional_
+### `renderFullscreenButton?`<AvailableFrom v="3.2.32" />
Allows you to customise the fullscreen button of the player controls, must return a valid React element. If fullscreen is disabled or not available in a browser, it will not be rendered.
@@ -363,9 +307,7 @@ export const App: React.FC = () => {
};
```
-### `renderMuteButton`<AvailableFrom v="4.0.188" />
-
-_optional_
+### `renderMuteButton?`<AvailableFrom v="4.0.188" />
Allows you to customize the Mute button of the controls, must return a valid React element.
Action is disabled, you must attach click handlers yourself using the [`PlayerRef`](#playerref).
@@ -416,23 +358,17 @@ export const App: React.FC = () => {
};
```
-### `alwaysShowControls`<AvailableFrom v="3.3.55" />
-
-_optional_
+### `alwaysShowControls?`<AvailableFrom v="3.3.55" />
If true, displays the player controls at all times even if the mouse is outside the player area. This settings override the default behavior, which automatically hides the controls after a period of mouse inactivity over the player area. Default `false`.
-### `hideControlsWhenPointerDoesntMove`<AvailableFrom v="4.0.124" />
-
-_optional_
+### `hideControlsWhenPointerDoesntMove?`<AvailableFrom v="4.0.124" />
Hides the player controls after 3 seconds of mouse inactivity while the mouse is over the player. By default, this behavior is enabled (`true`). The [`alwaysShowControls`](#alwaysshowcontrols) prop is respected, meaning, if it is set to `true`, then the controls will never hide.
You may also pass in a number to customize the hide delay in milliseconds, by default `3000`.
-### `showPlaybackRateControl`<AvailableFrom v="3.3.98" />
-
-_optional_
+### `showPlaybackRateControl?`<AvailableFrom v="3.3.98" />
If `true`, displays a gear icon allowing the user to change the playback rate.
@@ -468,9 +404,7 @@ Makes the Player render things outside of the canvas. Useful if you have interac
Controls what happens when the user presses the Play/Pause button on their keyboard or uses other controls such as Chromes built-in controls.
See [Media Keys Behavior](/docs/player/media-keys) for more information.
-### `overrideInternalClassName`<AvailableFrom v="4.0.233" />
-
-_optional_
+### `overrideInternalClassName?`<AvailableFrom v="4.0.233" />
A HTML class name to be used in place of the default `__remotion-player`.
diff --git a/packages/docs/docs/player/thumbnail.mdx b/packages/docs/docs/player/thumbnail.mdx
index 93155539e3..d17fdc79b3 100644
--- a/packages/docs/docs/player/thumbnail.mdx
+++ b/packages/docs/docs/player/thumbnail.mdx
@@ -5,7 +5,7 @@ title: '<Thumbnail>'
crumb: '@remotion/player'
---
-_available from v3.2.41_
+<AvailableFrom v="3.2.41" />
A component which can be rendered in a regular React App (for example: for example: [Next.JS](https://nextjs.org), [Vite.js](https://vitejs.dev), [Create React App](https://create-react-app.dev/)) to display a single frame of a video.
@@ -83,15 +83,11 @@ The frame rate of the video. Must be a number.
This prop is required for the Thumbnail component because your component may render differently based on what `useVideoConfig()` returns.
:::
-### `errorFallback`
-
-_optional_
+### `errorFallback?`
A callback for rendering a custom error message. See [Handling errors](#handling-errors) section for an example.
-### `renderLoading`
-
-_optional_
+### `renderLoading?`
A callback function that allows you to return a custom UI that gets displayed while the thumbnail is loading.
@@ -124,21 +120,15 @@ const MyApp: React.FC = () => {
A thumbnail needs to be loaded if it contains elements that use React Suspense, or if the `lazyComponent` prop is being used.
:::
-### `inputProps`
-
-_optional_
+### `inputProps?`
Pass props to the component that you have specified using the `component` prop. The Typescript definition takes the shape of the props that you have given to your `component`. Default `undefined`.
-### `style`
-
-_optional_
+### `style?`
A regular `style` prop for a HTMLDivElement. You can pass a different height and width if you would like different dimensions for the thumbnail than the original composition dimensions.
-### `className`<AvailableFrom v="3.1.3" />
-
-_optional_
+### `className?`<AvailableFrom v="3.1.3" />
A HTML class name to be applied to the container.
diff --git a/packages/docs/docs/recorder/setup.mdx b/packages/docs/docs/recorder/setup.mdx
index f5999c536e..428818c5c8 100644
--- a/packages/docs/docs/recorder/setup.mdx
+++ b/packages/docs/docs/recorder/setup.mdx
@@ -77,9 +77,7 @@ bun i
to install all the neccessary dependencies.
-## 4. Install Whisper.cpp
-
-_optional_
+## 4. Install Whisper.cpp (optional)
This is a good time to initialize Whisper.cpp for captioning.
This will install Whisper.cpp and download the model (the default being 1.5GB).
diff --git a/packages/docs/docs/renderer/ensure-ffmpeg.mdx b/packages/docs/docs/renderer/ensure-ffmpeg.mdx
index 2ca741e884..d30e6376ef 100644
--- a/packages/docs/docs/renderer/ensure-ffmpeg.mdx
+++ b/packages/docs/docs/renderer/ensure-ffmpeg.mdx
@@ -2,10 +2,12 @@
image: /generated/articles-docs-renderer-ensure-ffmpeg.png
id: ensure-ffmpeg
title: ensureFfmpeg()
-crumb: "@remotion/renderer"
+crumb: '@remotion/renderer'
---
-_Available from v3.3, removed from v4.0_
+<AvailableFrom v="3.3" />
+
+_Removed from v4.0_
:::warning
This API has been removed in v4.0 and is not necessary to call anymore. This page remains for archival purposes.
@@ -14,7 +16,7 @@ This API has been removed in v4.0 and is not necessary to call anymore. This pag
Checks if the `ffmpeg` binary is installed and if it is not, [downloads it and puts it into your `node_modules` folder](/docs/ffmpeg).
```ts title="ensure.mjs"
-import { ensureFfmpeg } from "@remotion/renderer";
+import {ensureFfmpeg} from '@remotion/renderer';
await ensureFfmpeg();
```
diff --git a/packages/docs/docs/renderer/ensure-ffprobe.mdx b/packages/docs/docs/renderer/ensure-ffprobe.mdx
index 0a9fbd6dbd..38d7cad31c 100644
--- a/packages/docs/docs/renderer/ensure-ffprobe.mdx
+++ b/packages/docs/docs/renderer/ensure-ffprobe.mdx
@@ -2,10 +2,12 @@
image: /generated/articles-docs-renderer-ensure-ffprobe.png
id: ensure-ffprobe
title: ensureFfprobe()
-crumb: "@remotion/renderer"
+crumb: '@remotion/renderer'
---
-_Available from v3.3, removed from v4.0_
+<AvailableFrom v="3.3" />
+
+_Removed from v4.0_
:::warning
This API has been removed in v4.0 and is not necessary to call anymore. This page remains for archival purposes.
@@ -14,7 +16,7 @@ This API has been removed in v4.0 and is not necessary to call anymore. This pag
Checks if the `ffprobe` binary is installed and if it is not, [downloads it and puts it into your `node_modules` folder](/docs/ffmpeg).
```ts title="ensure.mjs"
-import { ensureFfprobe } from "@remotion/renderer";
+import {ensureFfprobe} from '@remotion/renderer';
await ensureFfprobe();
```
diff --git a/packages/docs/docs/renderer/get-compositions.mdx b/packages/docs/docs/renderer/get-compositions.mdx
index 72528ebce6..0aa1a8410c 100644
--- a/packages/docs/docs/renderer/get-compositions.mdx
+++ b/packages/docs/docs/renderer/get-compositions.mdx
@@ -23,13 +23,11 @@ A string pointing to a [Remotion Bundle](/docs/terminology/bundle) generated by
### `options?`
-_optional_
-
An object containing one or more of the following options:
#### `inputProps`
-_optional in &lt;5.0, required from 5.0_
+Optional in v4.x, required from v5.0.
[Input Props to pass to the selected composition of your video.](/docs/passing-props#passing-input-props-in-the-cli).
Must be a JSON object.
@@ -38,8 +36,6 @@ You may transform input props using [`calculateMetadata()`](/docs/calculate-meta
#### `puppeteerInstance?`<AvailableFrom v="3.0.0" />
-_optional_
-
An already open [`Browser`](/docs/renderer/open-browser) instance. Use [`openBrowser()`](/docs/renderer/open-browser) to create a new instance. Reusing a browser across multiple function calls can speed up the rendering process. You are responsible for opening and closing the browser yourself. If you don't specify this option, a new browser will be opened and closed at the end.
:::note
@@ -52,8 +48,6 @@ A string defining the absolute path on disk of the browser executable that shoul
#### `onBrowserLog?`<AvailableFrom v="3.0.0" />
-_optional_
-
Gets called when your project calls `console.log` or another method from console. A browser log has three properties:
- `text`: The message being printed
@@ -116,8 +110,6 @@ Prefer a specific port that will be used to serve the Remotion project. If not s
#### `chromiumOptions?`<AvailableFrom v="2.6.5" />
-_optional_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
### `offthreadVideoCacheSizeInBytes?`<AvailableFrom v="4.0.23"/>
diff --git a/packages/docs/docs/renderer/make-cancel-signal.mdx b/packages/docs/docs/renderer/make-cancel-signal.mdx
index 434c891d3f..758591bb29 100644
--- a/packages/docs/docs/renderer/make-cancel-signal.mdx
+++ b/packages/docs/docs/renderer/make-cancel-signal.mdx
@@ -5,7 +5,7 @@ title: makeCancelSignal()
crumb: '@remotion/renderer'
---
-_Available from v3.0.15_
+<AvailableFrom v="3.0.15" />
This function returns a signal and a cancel function that allows to you cancel a render triggered using [`renderMedia()`](/docs/renderer/render-media), [`renderStill()`](/docs/renderer/render-still), [`renderFrames()`](/docs/renderer/render-frames) or [`stitchFramesToVideo()`](/docs/renderer/stitch-frames-to-video)
.
diff --git a/packages/docs/docs/renderer/open-browser.mdx b/packages/docs/docs/renderer/open-browser.mdx
index c996957349..6e135b04ea 100644
--- a/packages/docs/docs/renderer/open-browser.mdx
+++ b/packages/docs/docs/renderer/open-browser.mdx
@@ -28,33 +28,25 @@ Currently the only valid option is `"chrome"`. This field is reserved for future
### `options?`
-_optional_
-
An object containing one or more of the following options:
#### ~`shouldDumpIo?`~
-_optional, deprecated since v4.0.189, scheduled for removal in v5.0_
+Deprecated since v4.0.189, scheduled for removal in v5.0.
If set to `true`, logs and other browser diagnostics are being printed to standard output. This setting is useful for debugging.
**Will be removed in 5.0:** Use `logLevel` instead.
#### `logLevel?`<AvailableFrom v="4.0.189"/>
-_optional_
-
<Options id="log" />
#### `browserExecutable?`
-_optional_
-
A string defining the absolute path on disk of the browser executable that should be used. By default Remotion will try to detect it automatically and download one if none is available. If `puppeteerInstance` is defined, it will take precedence over `browserExecutable`.
#### `chromiumOptions?`
-_optional_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
:::note
diff --git a/packages/docs/docs/renderer/render-frames.mdx b/packages/docs/docs/renderer/render-frames.mdx
index 0df49fd3cf..82433f0ea5 100644
--- a/packages/docs/docs/renderer/render-frames.mdx
+++ b/packages/docs/docs/renderer/render-frames.mdx
@@ -87,11 +87,10 @@ You may transform input props using [`calculateMetadata()`](/docs/calculate-meta
Either a Webpack bundle or a URL pointing to a bundled Remotion project. Call [`bundle()`](/docs/bundle) to generate a bundle. You can either pass the file location or deploy it as a website and pass the URL.
-### `imageFormat`
+### `imageFormat?`
-_optional since v4.0 - default "jpeg"_
+Default: `"jpeg"`. Choose `jpeg` by default because it is the fastest.
-- Choose `jpeg` by default because it is the fastest.
- Choose `png` if you want your image sequence to have an alpha channel (for transparency).
- Choose `none` if you only want to render audio.
@@ -116,8 +115,6 @@ renderFrames({
### `concurrency?`
-_optional_
-
A `number` specifying how many render processes should be started in parallel, a `string` specifying the percentage of the CPU threads to use, or `null` to let Remotion decide based on the CPU of the host machine. Default is half of the CPU threads available.
### `scale?`<AvailableFrom v="2.6.7" />
@@ -128,8 +125,6 @@ _number - default: 1_
### `jpegQuality?`
-_optional_
-
Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default is to leave it up to the browser, [current default is 80](https://github.com/chromium/chromium/blob/99314be8152e688bafbbf9a615536bdbb289ea87/headless/lib/browser/protocol/headless_handler.cc#L32).
Only applies if `imageFormat` is `'jpeg'`, otherwise this option is invalid.
@@ -140,13 +135,9 @@ Prefer a specific port that will be used to serve the Remotion project. If not s
### `frameRange?`
-_optional_
-
Specify a single frame (passing a `number`) or a range of frames (passing a tuple `[number, number]`) to be rendered. By passing `null` (default) all frames of a composition get rendered.
-### `muted`<AvailableFrom v="3.2.1" />
-
-_optional_
+### `muted?`<AvailableFrom v="3.2.1" />
Disables audio output. This option may only be set in combination with a video codec and should also be passed to [`stitchFramesToVideo()`](/docs/renderer/stitch-frames-to-video).
@@ -160,8 +151,6 @@ Disables audio output. This option may only be set in combination with a video c
### `puppeteerInstance?`
-_optional_
-
An already open [`Browser`](/docs/renderer/open-browser) instance. Use [`openBrowser()`](/docs/renderer/open-browser) to create a new instance. Reusing a browser across multiple function calls can speed up the rendering process. You are responsible for opening and closing the browser yourself. If you don't specify this option, a new browser will be opened and closed at the end.
:::note
@@ -170,14 +159,10 @@ Despite the name, not actually compatible with `puppeteer`, only with [`openBrow
### `envVariables?`<AvailableFrom v="2.2.0" />
-_optional_
-
An object containing key-value pairs of environment variables which will be injected into your Remotion projected and which can be accessed by reading the global `process.env` object.
### `onBrowserLog?`<AvailableFrom v="3.0.0" />
-_optional_
-
Gets called when your project calls `console.log` or another method from console. A browser log has three properties:
- `text`: The message being printed
@@ -227,38 +212,26 @@ renderFrames({
### `browserExecutable?`<AvailableFrom v="3.0.11" />
-_optional_
-
A string defining the absolute path on disk of the browser executable that should be used. By default Remotion will try to detect it automatically and download one if none is available. If `puppeteerInstance` is defined, it will take precedence over `browserExecutable`.
### `cancelSignal?`<AvailableFrom v="3.0.15" />
-_optional_
-
A token that allows the render to be cancelled. See: [`makeCancelSignal()`](/docs/renderer/make-cancel-signal)
### `onFrameBuffer?`<AvailableFrom v="3.0.0" />
-_optional_
-
If you passed `null` to `outputDir`, this method will be called passing a buffer of the current frame. This is mostly used internally by Remotion to implement [`renderMedia()`](/docs/renderer/render-media) and might have limited usefulness for end users.
### `timeoutInMilliseconds?`<AvailableFrom v="2.6.3" />
-_optional_
-
-A number describing how long one frame may take to resolve all [`delayRender()`](/docs/delay-render) calls before the [render times out and fails(/docs/timeout). Default: `30000`
+A number describing how long one frame may take to resolve all [`delayRender()`](/docs/delay-render) calls before the [render times out and fails](/docs/timeout). Default: `30000`
-### `everyNthFrame`<AvailableFrom v="3.1.0" />
-
-_optional_
+### `everyNthFrame?`<AvailableFrom v="3.1.0" />
Renders only every nth frame. For example only every second frame, every third frame and so on. Only meant for rendering GIFs. [See here for more details.](/docs/render-as-gif)
### `chromiumOptions?`<AvailableFrom v="2.6.5" />
-_optional_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
:::note
@@ -327,9 +300,7 @@ Renamed to `jpegQuality` in `v4.0.0`.
### ~~`dumpBrowserLogs?`~~
-_optional - default `false`, deprecated in v4.0_
-
-Deprecated in favor of [`logLevel`](#loglevel).
+Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
### ~~`parallelism?`~~
diff --git a/packages/docs/docs/renderer/render-media.mdx b/packages/docs/docs/renderer/render-media.mdx
index 67e0f768ae..6156de29db 100644
--- a/packages/docs/docs/renderer/render-media.mdx
+++ b/packages/docs/docs/renderer/render-media.mdx
@@ -5,7 +5,9 @@ title: renderMedia()
crumb: '@remotion/renderer'
---
-_Available since v3.0 - Part of the `@remotion/renderer` package._
+_Part of the `@remotion/renderer` package._
+
+<AvailableFrom v="3.0" />
Render a video or an audio programmatically.
diff --git a/packages/docs/docs/renderer/render-still.mdx b/packages/docs/docs/renderer/render-still.mdx
index 16feb76d1d..4813950eed 100644
--- a/packages/docs/docs/renderer/render-still.mdx
+++ b/packages/docs/docs/renderer/render-still.mdx
@@ -5,7 +5,9 @@ title: renderStill()
crumb: '@remotion/renderer'
---
-_Part of the `@remotion/renderer` package. Available from v2.3._
+_Part of the `@remotion/renderer` package._
+
+<AvailableFrom v="2.3" />
Renders a single frame to an image and writes it to the specified output location.
@@ -74,8 +76,6 @@ An absolute path to where the frame should be rendered to.
### `inputProps?`
-_optional_
-
[Input Props to pass to the selected composition of your video.](/docs/passing-props#passing-input-props-in-the-cli).
Must be a JSON object.
From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).
@@ -83,34 +83,24 @@ You may transform input props using [`calculateMetadata()`](/docs/calculate-meta
### `frame?`
-_optional - default: 0_
-
-Which frame should be rendered based on its number. Frames are zero-indexed.
+Which frame should be rendered based on its number. Default: `0`. Frames are zero-indexed.
From v3.2.27, negative values are allowed, with `-1` being the last frame.
### `imageFormat?`
-_optional - default: "png"_
-
-Which output format the image should have, either `png`, `jpeg`, `webp` or `pdf`.
+Which output format the image should have, either `png`, `jpeg`, `webp` or `pdf`. Default: `"png"`.
### `scale?`
-_optional_
-
<Options id="scale" />
### `jpegQuality?`
-_optional - default: `undefined`_
-
Sets the JPEG quality - must be an integer between 0 and 100 and can only be passed if `imageFormat` is set to `jpeg`.
### `puppeteerInstance?`
-_optional - default `null`_
-
An already open [`Browser`](/docs/renderer/open-browser) instance. Use [`openBrowser()`](/docs/renderer/open-browser) to create a new instance. Reusing a browser across multiple function calls can speed up the rendering process. You are responsible for opening and closing the browser yourself. If you don't specify this option, a new browser will be opened and closed at the end.
:::note
@@ -119,9 +109,7 @@ Despite the name, not actually compatible with `puppeteer`, only with [`openBrow
### `envVariables?`
-_optional - default `{}`_
-
-An object containing key-value pairs of environment variables which will be injected into your Remotion project and which can be accessed by reading the global `process.env` object.
+An object containing key-value pairs of environment variables which will be injected into your Remotion project and which can be accessed by reading the global `process.env` object. Default: `{}`.
### `logLevel?`<AvailableFrom v="4.0.115"/>
@@ -133,38 +121,26 @@ An object containing key-value pairs of environment variables which will be inje
### `overwrite?`
-_optional - default `true`_
-
-Whether the file should be overwritten if the output already exists.
+Whether the file should be overwritten if the output already exists. Default: `true`.
### `browserExecutable?`<AvailableFrom v="2.3.1" />
-_optional_
-
A string defining the absolute path on disk of the browser executable that should be used. By default Remotion will try to detect it automatically and download one if none is available.
### `onBrowserLog?`<AvailableFrom v="3.3.93" />
-_optional_
-
Gets called when your project calls `console.log` or another method from console. See the documentation for [`renderFrames`](/docs/renderer/render-frames#onbrowserlog) for more information.
### `timeoutInMilliseconds?`<AvailableFrom v="2.6.3" />
-_optional_
-
A number describing how long the render may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000`
### `cancelSignal?`<AvailableFrom v="3.0.15" />
-_optional_
-
A token that allows the render to be cancelled. See: [`makeCancelSignal()`](/docs/renderer/make-cancel-signal)
### `chromiumOptions?`<AvailableFrom v="2.6.5" />
-_optional_
-
Allows you to set certain Chromium / Google Chrome flags. See: [Chromium flags](/docs/chromium-flags).
:::note
@@ -229,9 +205,7 @@ Lets you set a custom user agent that the headless Chrome browser assumes.
### ~~`dumpBrowserLogs?`~~
-_optional - default `false`, deprecated in v4.0_
-
-Deprecated in favor of [`logLevel`](#loglevel).
+Deprecated in v4.0 in favor of [`logLevel`](#loglevel).
### ~~`quality?`~~
diff --git a/packages/docs/docs/renderer/select-composition.mdx b/packages/docs/docs/renderer/select-composition.mdx
index 6f5edcdc29..643c7d0144 100644
--- a/packages/docs/docs/renderer/select-composition.mdx
+++ b/packages/docs/docs/renderer/select-composition.mdx
@@ -44,7 +44,7 @@ The [ID](/docs/terminology/composition#composition-id) of the composition you wa
### `inputProps`
-_optional in &lt;5.0, required from 5.0_
+Optional in v4.x, required from v5.0.
[Input Props to pass to the selected composition of your video.](/docs/passing-props#passing-input-props-in-the-cli).
Must be a JSON object.
diff --git a/packages/docs/docs/rounded-text-box/index.mdx b/packages/docs/docs/rounded-text-box/index.mdx
index df6f57e0d4..4672144461 100644
--- a/packages/docs/docs/rounded-text-box/index.mdx
+++ b/packages/docs/docs/rounded-text-box/index.mdx
@@ -3,7 +3,7 @@ image: /generated/articles-docs-rounded-text-box-index.png
title: '@remotion/rounded-text-box'
---
-_Available from v4.0.360_
+<AvailableFrom v="4.0.360" />
Create a TikTok-like multiline text box SVG path with rounded corners.
diff --git a/packages/docs/docs/scaling.mdx b/packages/docs/docs/scaling.mdx
index 10083412cf..b2fd88fe13 100644
--- a/packages/docs/docs/scaling.mdx
+++ b/packages/docs/docs/scaling.mdx
@@ -5,7 +5,7 @@ title: Output scaling
crumb: 'How To'
---
-_Available from v2.6.7._
+<AvailableFrom v="2.6.7" />
Output scaling is useful if you would like to render the video in multiple resolutions in the same aspect ratio.
diff --git a/packages/docs/docs/series.mdx b/packages/docs/docs/series.mdx
index 1146b3a07f..1b575deedb 100644
--- a/packages/docs/docs/series.mdx
+++ b/packages/docs/docs/series.mdx
@@ -5,7 +5,7 @@ title: <Series>
crumb: 'API'
---
-_Available from v.2.3.1_
+<AvailableFrom v="2.3.1" />
import {SeriesExample} from '../components/SeriesExamples/SeriesExample';
diff --git a/packages/docs/docs/staticfile.mdx b/packages/docs/docs/staticfile.mdx
index 571ffcbbc1..e92e5a3a3a 100644
--- a/packages/docs/docs/staticfile.mdx
+++ b/packages/docs/docs/staticfile.mdx
@@ -5,7 +5,7 @@ title: staticFile()
crumb: 'API'
---
-_Available from v2.5.7._
+<AvailableFrom v="2.5.7" />
Turns a file in your `public/` folder into an URL which you can then load into your project.
diff --git a/packages/docs/docs/stills.mdx b/packages/docs/docs/stills.mdx
index ef8699e10f..fcfa8bc738 100644
--- a/packages/docs/docs/stills.mdx
+++ b/packages/docs/docs/stills.mdx
@@ -5,7 +5,7 @@ title: Still images
crumb: 'How to generate'
---
-_Available from v2.3_
+<AvailableFrom v="2.3" />
Remotion is a great solution for rendering thumbnails of videos or dynamic still images too. See our [Still template](https://github.com/remotion-dev/template-still) for an easy way to get started.
diff --git a/packages/docs/docs/transitions/timings/lineartiming.mdx b/packages/docs/docs/transitions/timings/lineartiming.mdx
index 94d95d86af..4d81f7c842 100644
--- a/packages/docs/docs/transitions/timings/lineartiming.mdx
+++ b/packages/docs/docs/transitions/timings/lineartiming.mdx
@@ -1,27 +1,27 @@
---
image: /generated/articles-docs-transitions-timings-lineartiming.png
-crumb: "@remotion/transitions - Timings"
-title: "linearTiming()"
+crumb: '@remotion/transitions - Timings'
+title: 'linearTiming()'
---
A timing function for [`<TransitionSeries>`](/docs/transitions/transitionseries) based on [`interpolate()`](/docs/interpolate).
```tsx twoslash title="SlideTransition.tsx"
-import { AbsoluteFill } from "remotion";
+import {AbsoluteFill} from 'remotion';
const Letter: React.FC<{
children: React.ReactNode;
color: string;
-}> = ({ children, color }) => {
+}> = ({children, color}) => {
return (
<AbsoluteFill
style={{
backgroundColor: color,
opacity: 0.9,
- justifyContent: "center",
- alignItems: "center",
+ justifyContent: 'center',
+ alignItems: 'center',
fontSize: 200,
- color: "white",
+ color: 'white',
}}
>
{children}
@@ -29,9 +29,9 @@ const Letter: React.FC<{
);
};
// ---cut---
-import { linearTiming, TransitionSeries } from "@remotion/transitions";
-import { slide } from "@remotion/transitions/slide";
-import { Easing } from "remotion";
+import {linearTiming, TransitionSeries} from '@remotion/transitions';
+import {slide} from '@remotion/transitions/slide';
+import {Easing} from 'remotion';
const BasicTransition = () => {
return (
@@ -64,8 +64,6 @@ The duration of the transition in frames.
### `easing?`
-_optional_
-
An easing function, see [`Easing`](/docs/easing).
## See also
diff --git a/packages/docs/docs/transitions/timings/springtiming.mdx b/packages/docs/docs/transitions/timings/springtiming.mdx
index 9155db542c..ac64ab7182 100644
--- a/packages/docs/docs/transitions/timings/springtiming.mdx
+++ b/packages/docs/docs/transitions/timings/springtiming.mdx
@@ -1,27 +1,27 @@
---
image: /generated/articles-docs-transitions-timings-springtiming.png
-crumb: "@remotion/transitions - Timings"
-title: "springTiming()"
+crumb: '@remotion/transitions - Timings'
+title: 'springTiming()'
---
A timing function for [`<TransitionSeries>`](/docs/transitions/transitionseries) based on [`spring()`](/docs/spring).
```tsx twoslash title="SlideTransition.tsx"
-import { AbsoluteFill } from "remotion";
+import {AbsoluteFill} from 'remotion';
const Letter: React.FC<{
children: React.ReactNode;
color: string;
-}> = ({ children, color }) => {
+}> = ({children, color}) => {
return (
<AbsoluteFill
style={{
backgroundColor: color,
opacity: 0.9,
- justifyContent: "center",
- alignItems: "center",
+ justifyContent: 'center',
+ alignItems: 'center',
fontSize: 200,
- color: "white",
+ color: 'white',
}}
>
{children}
@@ -29,8 +29,8 @@ const Letter: React.FC<{
);
};
// ---cut---
-import { springTiming, TransitionSeries } from "@remotion/transitions";
-import { slide } from "@remotion/transitions/slide";
+import {springTiming, TransitionSeries} from '@remotion/transitions';
+import {slide} from '@remotion/transitions/slide';
const BasicTransition = () => {
return (
@@ -60,28 +60,20 @@ const BasicTransition = () => {
An object with the following properties:
-### `config`
-
-_optional_
+### `config?`
A spring `config`, see [`spring()`](/docs/spring).
-### `durationInFrames`
-
-_optional_
+### `durationInFrames?`
Stretch the timing curve of the animation to a fixed duration.
### `durationRestThreshold?`
-_optional_
-
-At which point the animation is considered to be finished. Defaults: `0.005`
+At which point the animation is considered to be finished. Default: `0.005`.
### `reverse?`<AvailableFrom v="4.0.144" />
-_optional_
-
Reverse the timing curve.
## Recommendation: Set a low duration rest threshold
diff --git a/packages/docs/docs/use-offthread-video-texture.mdx b/packages/docs/docs/use-offthread-video-texture.mdx
index 6549033550..82ab1a09a8 100644
--- a/packages/docs/docs/use-offthread-video-texture.mdx
+++ b/packages/docs/docs/use-offthread-video-texture.mdx
@@ -5,9 +5,7 @@ crumb: '@remotion/three'
sidebar_label: useOffthreadVideoTexture()
---
-# ~useOffthreadVideoTexture()~
-
-_available from v4.0.83_
+# ~useOffthreadVideoTexture()~<AvailableFrom v="4.0.83"/>
:::warning
Deprecated - we recommend using [`@remotion/media`](/docs/videos/as-threejs-texture) instead.
@@ -95,9 +93,7 @@ The playback rate of the video. Defaults to `1`.
Playing a video in reverse is not supported.
:::
-### `transparent`
-
-_optional, boolean_
+### `transparent?`
If set to `true`, frames will be extracted as PNG, enabling transparency but also slowing down your render.
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 18cda25068..be942e9de0 100644
--- a/packages/docs/docs/web-renderer/render-media-on-web.mdx
+++ b/packages/docs/docs/web-renderer/render-media-on-web.mdx
@@ -10,7 +10,9 @@ Very experimental feature - expect bugs and breaking changes at any time.
[Track progress on GitHub](https://github.com/remotion-dev/remotion/issues/5913) and discuss in the [`#web-renderer`](https://remotion.dev/discord) channel on Discord.
:::
-_Available from v4.397 - Part of the `@remotion/web-renderer` package._
+_Part of the `@remotion/web-renderer` package._
+
+<AvailableFrom v="4.0.397" />
Renders a video or audio in the browser.
If you want to render a single frame to an image, use [`renderStillOnWeb()`](/docs/web-renderer/render-still-on-web).
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 609d7479ae..cba5fd827c 100644
--- a/packages/docs/docs/web-renderer/render-still-on-web.mdx
+++ b/packages/docs/docs/web-renderer/render-still-on-web.mdx
@@ -10,7 +10,9 @@ Very experimental feature - expect bugs and breaking changes at any time.
[Track progress on GitHub](https://github.com/remotion-dev/remotion/issues/5913) and discuss in the [`#web-renderer`](https://remotion.dev/discord) channel on Discord.
:::
-_Available from v4.397 - Part of the `@remotion/web-renderer` package._
+_Part of the `@remotion/web-renderer` package._
+
+<AvailableFrom v="4.0.397" />
Renders a single frame to an image in the browser.
If you want to render a video instead, use [`renderMediaOnWeb()`](/docs/web-renderer/render-media-on-web).
diff --git a/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdx b/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdx
index 7528f73d27..d2934f5726 100644
--- a/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdx
+++ b/packages/docs/docs/webcodecs/rotate-and-resize-video-frame.mdx
@@ -92,9 +92,7 @@ See: [Resize modes](/docs/webcodecs/resize-a-video#resize-modes) for available o
### `needsToBeMultipleOfTwo?`
-_optional, default: `false`_
-
-Whether the resulting dimensions should be multiples of 2.
+Whether the resulting dimensions should be multiples of 2. Default: `false`.
This is often required if encoding to a codec like H.264.
If `true`, the dimensions will be rounded down to the nearest even number.