🎥 Make videos programmatically with React
fix docs links
Jonny Burger425c2f60bdb7
diff --git a/packages/docs/docs/chromium-flags.md b/packages/docs/docs/chromium-flags.mdindex b3c8354b7c..392ef5aa0d 100644--- a/packages/docs/docs/chromium-flags.md+++ b/packages/docs/docs/chromium-flags.md@@ -21,7 +21,7 @@ In [`getCompositions()`](/docs/renderer/get-compositions#disablewebsecurity), [`### Via CLI flag-Pass [`--disable-web-security`](/docs/cli#--disable-web-security) in one of the following commands: `remotion render`, `remotion still`, `remotion lambda render`, `remotion lambda still`.+Pass [`--disable-web-security`](/docs/cli/render#--disable-web-security) in one of the following commands: `remotion render`, `remotion still`, `remotion lambda render`, `remotion lambda still`.### Via config file@@ -45,7 +45,7 @@ In [`getCompositions()`](/docs/renderer/get-compositions#ignorecertificateerrors### Via CLI flag-Pass [`--ignore-certificate-errors`](/docs/cli#--ignore-certificate-errors) in one of the following commands: `remotion render`, `remotion still`, `remotion lambda render`, `remotion lambda still`.+Pass [`--ignore-certificate-errors`](/docs/cli/render#--ignore-certificate-errors) in one of the following commands: `remotion render`, `remotion still`, `remotion lambda render`, `remotion lambda still`.### Via config file@@ -69,7 +69,7 @@ In [`getCompositions()`](/docs/renderer/get-compositions#headless), [`renderStil### Via CLI flag-Pass [`--disable-headless`](/docs/cli#--disable-headless) in one of the following commands: `remotion render`, `remotion still`.+Pass [`--disable-headless`](/docs/cli/render#--disable-headless) in one of the following commands: `remotion render`, `remotion still`.### Via config filediff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex f50f5d541e..8f06e7b098 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -53,7 +53,7 @@ import { Config } from "remotion";Config.Bundling.setCachingEnabled(false);```-The [command line flag](/docs/cli#--bundle-cache) `--bundle-cache` will take precedence over this option.+The [command line flag](/docs/cli/render#--bundle-cache) `--bundle-cache` will take precedence over this option.### setPort()@@ -67,7 +67,7 @@ import { Config } from "remotion";Config.Bundling.setPort(3003);```-The [command line flag](/docs/cli#--port) `--port` will take precedence over this option.+The [command line flag](/docs/cli/render#--port) `--port` will take precedence over this option.## Log@@ -89,7 +89,7 @@ import { Config } from "remotion";Config.Log.setLevel("verbose");```-The [command line flag](/docs/cli#--log) `--log` will take precedence over this option.+The [command line flag](/docs/cli/render#--log) `--log` will take precedence over this option.## Preview@@ -119,7 +119,7 @@ import { Config } from "remotion";Config.Puppeteer.setBrowserExecutable("/usr/bin/google-chrome-stable");```-The [command line flag](/docs/cli#--browser-executable) `--browser-executable` will take precedence over this option.+The [command line flag](/docs/cli/render#--browser-executable) `--browser-executable` will take precedence over this option.### setTimeoutInMilliseconds()@@ -133,7 +133,7 @@ import { Config } from "remotion";Config.Puppeteer.setTimeoutInMilliseconds(60000);```-The [command line flag](/docs/cli#--timeout) `--timeout` will take precedence over this option.+The [command line flag](/docs/cli/render#--timeout) `--timeout` will take precedence over this option.### setChromiumDisableWebSecurity()@@ -149,7 +149,7 @@ import { Config } from "remotion";Config.Puppeteer.setChromiumDisableWebSecurity(true);```-The [command line flag](/docs/cli#--disable-web-security) `--disable-web-security` will take precedence over this option.+The [command line flag](/docs/cli/render#--disable-web-security) `--disable-web-security` will take precedence over this option.### setChromiumIgnoreCertificateErrors()@@ -165,7 +165,7 @@ import { Config } from "remotion";Config.Puppeteer.setChromiumIgnoreCertificateErrors(true);```-The [command line flag](/docs/cli#--ignore-certificate-errors) `--ignore-certificate-errors` will take precedence over this option.+The [command line flag](/docs/cli/render#--ignore-certificate-errors) `--ignore-certificate-errors` will take precedence over this option.### setChromiumHeadlessMode()@@ -181,7 +181,7 @@ import { Config } from "remotion";Config.Puppeteer.setChromiumHeadlessMode(false);```-The [command line flag](/docs/cli#--disable-headless) `--disable-headless` will take precedence over this option.+The [command line flag](/docs/cli/render#--disable-headless) `--disable-headless` will take precedence over this option.## Rendering@@ -196,7 +196,7 @@ import { Config } from "remotion";Config.Rendering.setConcurrency(8);```-The [command line flag](/docs/cli#--concurrency) `--concurrency` will take precedence over this option.+The [command line flag](/docs/cli/render#--concurrency) `--concurrency` will take precedence over this option.:::tipTry to set your concurrency to `os.cpus().length` to all the threads available on your CPU for faster rendering. The drawback is that other parts of your system might slow down.@@ -218,7 +218,7 @@ import { Config } from "remotion";Config.Rendering.setImageFormat("png");```-The [command line flag](/docs/cli#--image-format) `--image-format` will take precedence over this option.+The [command line flag](/docs/cli/render#--image-format) `--image-format` will take precedence over this option.### setScale()@@ -232,7 +232,7 @@ import { Config } from "remotion";Config.Rendering.setScale(2);```-The [command line flag](/docs/cli#--scale) `--scale` will take precedence over this option.+The [command line flag](/docs/cli/render#--scale) `--scale` will take precedence over this option.### setFrameRange()@@ -254,7 +254,7 @@ import { Config } from "remotion";Config.Rendering.setFrameRange([0, 20]); // Render a video only containing the first 21 frames```-The [command line flag](/docs/cli#--frames) `--frames` will take precedence over this option.+The [command line flag](/docs/cli/render#--frames) `--frames` will take precedence over this option.### setQuality()@@ -266,7 +266,7 @@ import { Config } from "remotion";Config.Rendering.setQuality(90);```-The [command line flag](/docs/cli#--quality) `--quality` will take precedence over this option.+The [command line flag](/docs/cli/render#--quality) `--quality` will take precedence over this option.### setDotEnvLocation()@@ -278,7 +278,7 @@ import { Config } from "remotion";Config.Rendering.setDotEnvLocation(".my-env");```-The [command line flag](/docs/cli#--env-file) `--env-file` will take precedence over this option.+The [command line flag](/docs/cli/render#--env-file) `--env-file` will take precedence over this option.### setFfmpegExecutable()@@ -290,6 +290,8 @@ import { Config } from "remotion";Config.Rendering.setFfmpegExecutable("/path/to/custom/ffmpeg");```+The [command line flag](/docs/cli/render#--ffmpeg-executable) `--ffmpeg-executable` will take precedence over this option.+### setFfprobeExecutable()Allows you to use a custom `ffprobe` binary. Must be an absolute path. By default, this is null and the `ffprobe` in `PATH` will be used.@@ -300,7 +302,21 @@ import { Config } from "remotion";Config.Rendering.setFfprobeExecutable("/path/to/custom/ffprobe");```-The [command line flag](/docs/cli#--ffmpeg-executable) `--ffmpeg-executable` will take precedence over this option.+The [command line flag](/docs/cli/render#--ffprobe-executable) `--ffprobe-executable` will take precedence over this option.++### setEveryNthFrame()++This option may only be set when rendering GIFs. It determines how many frames are rendered, while the other ones gets skipped in order to lower the FPS of the GIF.++For example, if the `fps` is 30, and `everyNthFrame` is 2, the FPS of the GIF is `15`.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Rendering.setEveryNthFrame(2);+```++The [command line flag](/docs/cli/render#--every-nth-frame) `--every-nth-frame` will take precedence over this option.## Output@@ -329,7 +345,7 @@ import { Config } from "remotion";Config.Output.setPixelFormat("yuv420p");```-The [command line flag](/docs/cli#--pixel-format) `--pixel-format` will take precedence over this option.+The [command line flag](/docs/cli/render#--pixel-format) `--pixel-format` will take precedence over this option.### setCodec()@@ -353,7 +369,7 @@ import { Config } from "remotion";Config.Output.setCodec("h265");```-The [command line flag](/docs/cli#--codec) `--codec` will take precedence over this option.+The [command line flag](/docs/cli/render#--codec) `--codec` will take precedence over this option.**See also**: [Encoding guide](/docs/encoding)@@ -372,7 +388,7 @@ import { Config } from "remotion";Config.Output.setProResProfile("4444");```-The [command line flag](/docs/cli#--prores-profile) `--prores-profile` will take precedence over this option.+The [command line flag](/docs/cli/render#--prores-profile) `--prores-profile` will take precedence over this option.**See also**: [Encoding guide](/docs/encoding), [Transparent videos](/docs/transparent-videos)@@ -388,7 +404,7 @@ import { Config } from "remotion";Config.Output.setImageSequence(true);```-The [command line flag](/docs/cli#--sequence) `--sequence` will take precedence over this option.+The [command line flag](/docs/cli/render#--sequence) `--sequence` will take precedence over this option.### ~~setOutputFormat()~~@@ -431,7 +447,7 @@ import { Config } from "remotion";Config.Output.setCrf(16);```-The [command line flag](/docs/cli#--crf) `--crf` will take precedence over this option.+The [command line flag](/docs/cli/render#--crf) `--crf` will take precedence over this option.## See alsodiff --git a/packages/docs/docs/enametoolong.md b/packages/docs/docs/enametoolong.mdindex 0f275b0033..273a67995b 100644--- a/packages/docs/docs/enametoolong.md+++ b/packages/docs/docs/enametoolong.md@@ -21,4 +21,4 @@ macOS and Linux have a much longer maximum command length. Render the same video## Render the video partially-Render only a portion of a video using the [`--frames`](/docs/cli#--frames) property, and add portions together using an [FFMPEG concat command](https://stackoverflow.com/a/11175851)+Render only a portion of a video using the [`--frames`](/docs/cli/render#--frames) property, and add portions together using an [FFMPEG concat command](https://stackoverflow.com/a/11175851)diff --git a/packages/docs/docs/encoding.md b/packages/docs/docs/encoding.mdindex 38ed5714c9..62993f9ba4 100644--- a/packages/docs/docs/encoding.md+++ b/packages/docs/docs/encoding.md@@ -154,7 +154,7 @@ You can [set a CRF in the config file using the `Config.Output.setCrf()`](/docs/_Applies only to `prores` codec_.-For ProRes, there is no CRF option, but there are profiles which you can set using the [`--prores-profile` flag](/docs/cli#--prores-profile) or the [`setProResProfile`](/docs/config#setproresprofile) config file option.+For ProRes, there is no CRF option, but there are profiles which you can set using the [`--prores-profile` flag](/docs/cli/render#--prores-profile) or the [`setProResProfile`](/docs/config#setproresprofile) config file option.<table><tr>diff --git a/packages/docs/docs/flickering.md b/packages/docs/docs/flickering.mdindex f9bfae69d4..f26c6f6b32 100644--- a/packages/docs/docs/flickering.md+++ b/packages/docs/docs/flickering.md@@ -28,7 +28,7 @@ Head over to [**the list of integrations**](/docs/third-party) to see if there i## Bypass multithreading-If your animation will not break if the frames are rendered in order, users often use the [`--concurrency=1`](/docs/cli#--concurrency) flag. This will fix flickering / choppyness in many cases and is a viable path if the effort of refactoring is too big. The drawback of this technique is that it is way slower and that the correct timing of the animations is still not guaranteed.+If your animation will not break if the frames are rendered in order, users often use the [`--concurrency=1`](/docs/cli/render#--concurrency) flag. This will fix flickering / choppyness in many cases and is a viable path if the effort of refactoring is too big. The drawback of this technique is that it is way slower and that the correct timing of the animations is still not guaranteed.## Why Remotion works this waydiff --git a/packages/docs/docs/render.md b/packages/docs/docs/render.mdindex 8ce36d451a..a51594d27a 100644--- a/packages/docs/docs/render.md+++ b/packages/docs/docs/render.md@@ -38,7 +38,7 @@ Instead of rendering a video, [you can also just export the audio.](/docs/encodi### Image Sequence-Instead of encoding as a video, you can use the [`--sequence`](/docs/cli#--sequence) command to output a series of image.+Instead of encoding as a video, you can use the [`--sequence`](/docs/cli/render#--sequence) command to output a series of image.### Still imagesdiff --git a/packages/docs/docs/scaling.md b/packages/docs/docs/scaling.mdindex 585f9834b9..243d5b4e66 100644--- a/packages/docs/docs/scaling.md+++ b/packages/docs/docs/scaling.md@@ -13,7 +13,7 @@ Remotion can support this higher resolution by setting the [`deviceScaleFactor`]## How to scale-- In the CLI, during a render of a video or a still, pass the [`--scale`](/docs/cli#--scale) flag. For example: `--scale=2`+- In the CLI, during a render of a video or a still, pass the [`--scale`](/docs/cli/render#--scale) flag. For example: `--scale=2`- In the Node.JS functions [`renderStill()`](/docs/render-still#scale), [`renderFrames()`](/docs/render-frames#scale), [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda) and [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda), you can pass a `scale` option.diff --git a/packages/docs/docs/target-closed.md b/packages/docs/docs/target-closed.mdindex 1e66538304..3fab56fdb3 100644--- a/packages/docs/docs/target-closed.md+++ b/packages/docs/docs/target-closed.md@@ -14,7 +14,7 @@ Make sure that you [installed the necessary dependencies](/docs/#additional-stepA Chrome tab can crash if the process runs out of memory, or if the website stops responding because it uses the CPU too heavily.-- [Decrease the concurrency so each tab has more resources](/docs/cli#--concurrency)+- [Decrease the concurrency so each tab has more resources](/docs/cli/render#--concurrency)- In Remotion Lambda, increase the memory size.## Corrupt Google Chrome binarydiff --git a/packages/docs/docs/timeout.md b/packages/docs/docs/timeout.mdindex 5961cdbeea..a8294fa197 100644--- a/packages/docs/docs/timeout.md+++ b/packages/docs/docs/timeout.md@@ -63,7 +63,7 @@ Sometimes, you cannot avoid a render taking longer than 30 seconds. For example:You can increase the default timeout from v2.6.3 on:-- Using the [`--timeout`](/docs/cli#--timeout) CLI flag+- Using the [`--timeout`](/docs/cli/render#--timeout) CLI flag- Using the `timeoutInMilliseconds` option in [`renderStill()`](/docs/render-still#timeoutinmilliseconds), [`renderFrames()`](/docs/render-frames#timeoutinmilliseconds), [`getCompositions()`](/docs/get-compositions#timeoutinmilliseconds), [`renderMedia()`](/docs/renderer/render-media#timeoutinmilliseconds), [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda#timeoutinmilliseconds) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda#timeoutinmilliseconds)- Using the [`Config.Puppeteer.setTimeoutInMilliseconds()`](/docs/config#settimeoutinmilliseconds) option in the config file