Skip to content

🎥 Make videos programmatically with React

more docs

Jonny Burger017c18c51cf1
diff --git a/packages/docs/docs/cli/render.md b/packages/docs/docs/cli/render.md
index ffbffdcecc..38b5e17dad 100644
--- a/packages/docs/docs/cli/render.md
+++ b/packages/docs/docs/cli/render.md
@@ -106,6 +106,14 @@ FFMPEG may encode the video in a way that will not result in the exact video bit
This option cannot be set if `--crf` is set.
Example values: `512K` for 512 kbps, `1M` for 1 Mbps.
+### `--buffer-size`<AvailableFrom v="4.0.78" />
+
+<Options id="buffer-size"/>
+
+### `--max-rate`<AvailableFrom v="4.0.78" />
+
+<Options id="max-rate"/>
+
### `--prores-profile`<AvailableFrom v="2.1.6" />
[Set the ProRes profile](/docs/config#setproresprofile). This option is only valid if the [`codec`](#--codec) has been set to `prores`. Possible values: `4444-xq`, `4444`, `hq`, `standard`, `light`, `proxy`. See [here](https://video.stackexchange.com/a/14715) for explanation of possible values. Default: `hq`.
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index 6feeae71dc..ac3966eaeb 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -675,6 +675,30 @@ Config.setVideoBitrate("1M");
The [command line flag](/docs/cli/render#--video-bitrate) `--video-bitrate` will take precedence over this option.
+## `setEncodingBufferSize`<AvailableFrom v="4.0.78" />
+
+<Options id="buffer-size" />
+
+```ts twoslash title="remotion.config.ts"
+import { Config } from "@remotion/cli/config";
+// ---cut---
+Config.setEncodingBufferSize("10000k");
+```
+
+The [command line flag](/docs/cli/render#--buffer-size) `--buffer-size` will take precedence over this option.
+
+## `setEncodingMaxRate`<AvailableFrom v="4.0.78" />
+
+<Options id="max-rate" />
+
+```ts twoslash title="remotion.config.ts"
+import { Config } from "@remotion/cli/config";
+// ---cut---
+Config.setEncodingMaxRate("5000k");
+```
+
+The [command line flag](/docs/cli/render#--max-rate) `--max-rate` will take precedence over this option.
+
## `setAudioBitrate`<AvailableFrom v="3.2.32" />
Specify the target bitrate for the generated audio.
diff --git a/packages/docs/src/components/Options.tsx b/packages/docs/src/components/Options.tsx
index 4c7087b689..85a4f936d8 100644
--- a/packages/docs/src/components/Options.tsx
+++ b/packages/docs/src/components/Options.tsx
@@ -8,7 +8,11 @@ const getOption = (id: string): AnyRemotionOption => {
const option = options.find((o) => o.cliFlag === id);
if (!option) {
- throw new Error('Unknown option "' + id + '"');
+ throw new Error(
+ `Unknown option "${id}". Available: ${options
+ .map((o) => o.cliFlag)
+ .join(", ")}`,
+ );
}
return option;