🎥 Make videos programmatically with React
fix links
Jonny Burger247d4e1d16ab
diff --git a/packages/docs/docs/audio.md b/packages/docs/docs/audio.mdindex 807238ae8c..4069b33675 100644--- a/packages/docs/docs/audio.md+++ b/packages/docs/docs/audio.md@@ -30,4 +30,4 @@ export const MyVideo = () => {## See also-- [`<Video />`](video)+- [`<Video />`](/docs/video)diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.mdindex 89b1b38083..733208f93f 100644--- a/packages/docs/docs/cli.md+++ b/packages/docs/docs/cli.md@@ -14,19 +14,19 @@ npx remotion render <entry-file> <composition-id> <output-location>Besides choosing a video and output location with the command line arguments, the following flags are supported:- `--props`: React Props to pass to the root component of your video. Must be a serialized JSON string.-- `--concurrency`: [How many CPU threads to use.](config#setconcurrency) Minimum 1. The maximum is the amount of threads you have.-- `--pixel-format`: [Set a custom pixel format. See here for available values.](config#setpixelformat)-- `--image-format`: [`jpeg` or `png` - JPEG is faster, but supports transparency.](config#setimageformat) The default image format is `jpeg` since v1.1. Flag available since v1.4.+- `--concurrency`: [How many CPU threads to use.](/docs/config#setconcurrency) Minimum 1. The maximum is the amount of threads you have.+- `--pixel-format`: [Set a custom pixel format. See here for available values.](/docs/config#setpixelformat)+- `--image-format`: [`jpeg` or `png` - JPEG is faster, but supports transparency.](/docs/config#setimageformat) The default image format is `jpeg` since v1.1. Flag available since v1.4.- `--config`: Specify a location for the Remotion config file. Available in v1.2 and later.-- `--quality`: [Value between 0 and 100 for JPEG rendering quality](config#setquality). Doesn't work when PNG frames are rendered. Available since v1.4.-- `--overwrite`: [Write to output even if file already exists.](config#setoverwriteoutput)-- `--sequence`: [Pass this flag if you want an image sequence as the output instead of a video.](config#setimagesequence) Available since v1.4.-- `--codec`: [`h264` or `h265` or `png` or `vp8` or `vp9`](config#setoutputformat). If you don't supply `--codec`, it will use the H.264 encoder. Available since v1.4.-- `--crf`: [To set Constant Rate Factor (CRF) of the output](config#setcrf). Minimum 0. Use this rate control mode if you want to keep the best quality and care less about the file size. Available since v1.4.-- `--browser-executable`: [Path to a Chrome executable](config#setbrowserexecutable). If not specified and Remotion cannot find one, it will download one during rendering. Available since v1.5.+- `--quality`: [Value between 0 and 100 for JPEG rendering quality](/docs/config#setquality). Doesn't work when PNG frames are rendered. Available since v1.4.+- `--overwrite`: [Write to output even if file already exists.](/docs/config#setoverwriteoutput)+- `--sequence`: [Pass this flag if you want an image sequence as the output instead of a video.](/docs/config#setimagesequence) Available since v1.4.+- `--codec`: [`h264` or `h265` or `png` or `vp8` or `vp9`](/docs/config#setoutputformat). If you don't supply `--codec`, it will use the H.264 encoder. Available since v1.4.+- `--crf`: [To set Constant Rate Factor (CRF) of the output](/docs/config#setcrf). Minimum 0. Use this rate control mode if you want to keep the best quality and care less about the file size. Available since v1.4.+- `--browser-executable`: [Path to a Chrome executable](/docs/config#setbrowserexecutable). If not specified and Remotion cannot find one, it will download one during rendering. Available since v1.5.:::info-If you don't feel like passing command line flags every time, consider creating a `remotion.config.ts` [config file](config).+If you don't feel like passing command line flags every time, consider creating a `remotion.config.ts` [config file](/docs/config).:::## Example command@@ -37,5 +37,5 @@ npx remotion render --overwrite --codec=vp8 src/index.tsx HelloWorld video.mp4## See also-- [Render your video](render)-- [Configuration file](config)+- [Render your video](/docs/render)+- [Configuration file](/docs/config)diff --git a/packages/docs/docs/composition.md b/packages/docs/docs/composition.mdindex 61e3828b57..6ff0287b0c 100644--- a/packages/docs/docs/composition.md+++ b/packages/docs/docs/composition.md@@ -7,7 +7,7 @@ This is the component to use to register a video to make it renderable and make## API-A `<Composition />` should be placed within a fragment of the root component (which is registered using [`registerRoot()`](register-root)).+A `<Composition />` should be placed within a fragment of the root component (which is registered using [`registerRoot()`](/docs/register-root)).The component takes the following props:@@ -79,6 +79,6 @@ export const MyVideo = () => {## See also-- [registerRoot()](register-root)-- [The fundamentals](the-fundamentals)-- [CLI options](cli)+- [registerRoot()](/docs/register-root)+- [The fundamentals](/docs/the-fundamentals)+- [CLI options](/docs/cli)diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 54beef6a0e..eb8cbf9463 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -19,7 +19,7 @@ Config.Output.setCodec('h265');### overrideWebpackConfig()-Allows you to insert your custom Webpack config. [See the page about custom Webpack configs](webpack) for more information.+Allows you to insert your custom Webpack config. [See the page about custom Webpack configs](/docs/webpack) for more information.```tsxConfig.Bundling.overrideWebpackConfig((currentConfiguration) => {@@ -39,7 +39,7 @@ Set a custom Chrome or Chromium executable path. By default Remotion will try toConfig.Puppeteer.setBrowserExecutable('/usr/bin/google-chrome-stable')```-The [command line flag](cli) `--browser-executable` will take precedence over this option.+The [command line flag](/docs/cli) `--browser-executable` will take precedence over this option.## Rendering@@ -52,7 +52,7 @@ Default: `null`, meaning **half of the threads** available on your CPU.Config.Rendering.setConcurrency(8)```-The [command line flag](cli) `--concurrency` will take precedence over this option.+The [command line flag](/docs/cli) `--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.@@ -68,7 +68,7 @@ Determines which in which image format to render the frames. Either `jpeg` _(defConfig.Rendering.setImageFormat('png')```-The [command line flag](cli) `--image-format` will take precedence over this option.+The [command line flag](/docs/cli) `--image-format` will take precedence over this option.### setQuality()@@ -88,7 +88,7 @@ Set this to `true` to always overwrite Remotion outputs without asking.Config.Output.setOverwriteOutput(true)```-The [command line flag](cli) `--overwrite` will take precedence over this option.+The [command line flag](/docs/cli) `--overwrite` will take precedence over this option.### setPixelFormat()@@ -99,7 +99,7 @@ Default value: `yuv420p`Config.Output.setPixelFormat('yuv420p')```-The [command line flag](cli) `--pixel-format` will take precedence over this option.+The [command line flag](/docs/cli) `--pixel-format` will take precedence over this option.### setCodec()@@ -138,9 +138,9 @@ Either `'mp4'` or `'png-sequence'`.Config.Output.setOutputFormat('mp4');```-The [command line flags](cli) `--sequence` and `--codec` will take precedence over this option.+The [command line flags](/docs/cli) `--sequence` and `--codec` will take precedence over this option.-The [command line flag](cli) `--quality` will take precedence over this option.+The [command line flag](/docs/cli) `--quality` will take precedence over this option.### setCrf()@@ -165,8 +165,8 @@ Choose the highest CRF value that still provides an acceptable quality. If the oConfig.Output.setCrf(16);```-The [command line flag](cli) `--crf` will take precedence over this option.+The [command line flag](/docs/cli) `--crf` will take precedence over this option.## See also-- [Encoding guide](encoding)+- [Encoding guide](/docs/encoding)diff --git a/packages/docs/docs/continue-render.md b/packages/docs/docs/continue-render.mdindex b4e4ed9178..0b350f0483 100644--- a/packages/docs/docs/continue-render.md+++ b/packages/docs/docs/continue-render.md@@ -5,8 +5,8 @@ title: continueRender()import {Redirect} from '@docusaurus/router';-Using `continueRender`, you can unblock a rendering that has been deferred using [`delayRender()`](delay-render). To learn how to use the function, read the documentation of [`delayRender()`](delay-render).+Using `continueRender`, you can unblock a rendering that has been deferred using [`delayRender()`](/docs/delay-render). To learn how to use the function, read the documentation of [`delayRender()`](/docs/delay-render).## See also-- [Data fetching](data-fetching)+- [Data fetching](/docs/data-fetching)diff --git a/packages/docs/docs/data-fetching.md b/packages/docs/docs/data-fetching.mdindex afd731ec89..e899de0a51 100644--- a/packages/docs/docs/data-fetching.md+++ b/packages/docs/docs/data-fetching.md@@ -7,7 +7,7 @@ One of the most groundbreaking things about Remotion is that you can fetch data## Telling Remotion to wait until the data is loaded-There are two functions, [`delayRender`](delay-render) and [`continueRender`](continue-render), which you can use to tell Remotion to not yet render the frame. If you want to asynchronously render a frame, you should call `delayRender()` as soon as possible, before the window `onload` event is fired. The function returns a handle that you need to give Remotion the green light to render later using `continueRender()`.+There are two functions, [`delayRender`](/docs/delay-render) and [`continueRender`](/docs/continue-render), which you can use to tell Remotion to not yet render the frame. If you want to asynchronously render a frame, you should call `delayRender()` as soon as possible, before the window `onload` event is fired. The function returns a handle that you need to give Remotion the green light to render later using `continueRender()`.```tsximport {useEffect, useState} from 'react';@@ -55,4 +55,4 @@ You need to clear all handles created by `delayRender` within 30 seconds after t## See also-- [delayRender()](delay-render)+- [delayRender()](/docs/delay-render)diff --git a/packages/docs/docs/delay-render.md b/packages/docs/docs/delay-render.mdindex df1d3c680d..d4d721f245 100644--- a/packages/docs/docs/delay-render.md+++ b/packages/docs/docs/delay-render.md@@ -54,4 +54,4 @@ export const MyVideo = () => {## See also-- [Data fetching](data-fetching)+- [Data fetching](/docs/data-fetching)diff --git a/packages/docs/docs/easing.md b/packages/docs/docs/easing.mdindex 7c2792b4fe..d61436ef63 100644--- a/packages/docs/docs/easing.md+++ b/packages/docs/docs/easing.md@@ -7,7 +7,7 @@ title: EasingThe Easing API is the exact same as the one from [React Native](https://reactnative.dev/docs/easing) and the documentation has been copied over. Credit goes to them for this excellent API.:::-The `Easing` module implements common easing functions. You can use it with the [`interpolate()`](interpolate) API.+The `Easing` module implements common easing functions. You can use it with the [`interpolate()`](/docs/interpolate) API.You can find a visualization of some common easing functions at http://easings.net/@@ -15,35 +15,35 @@ You can find a visualization of some common easing functions at http://easings.nThe `Easing` module provides several predefined animations through the following methods:-- [`back`](easing#back) provides a basic animation where the object goes slightly back before moving forward-- [`bounce`](easing#bounce) provides a bouncing animation-- [`ease`](easing#ease) provides a basic inertial animation-- [`elastic`](easing#elastic) provides a basic spring interaction+- [`back`](/docs/easing#back) provides a basic animation where the object goes slightly back before moving forward+- [`bounce`](/docs/easing#bounce) provides a bouncing animation+- [`ease`](/docs/easing#ease) provides a basic inertial animation+- [`elastic`](/docs/easing#elastic) provides a basic spring interaction### Standard functionsThree standard easing functions are provided:-- [`linear`](easing#linear)-- [`quad`](easing#quad)-- [`cubic`](easing#cubic)+- [`linear`](/docs/easing#linear)+- [`quad`](/docs/easing#quad)+- [`cubic`](/docs/easing#cubic)-The [`poly`](easing#poly) function can be used to implement quartic, quintic, and other higher power functions.+The [`poly`](/docs/easing#poly) function can be used to implement quartic, quintic, and other higher power functions.### Additional functionsAdditional mathematical functions are provided by the following methods:-- [`bezier`](easing#bezier) provides a cubic bezier curve-- [`circle`](easing#circle) provides a circular function-- [`sin`](easing#sin) provides a sinusoidal function-- [`exp`](easing#exp) provides an exponential function+- [`bezier`](/docs/easing#bezier) provides a cubic bezier curve+- [`circle`](/docs/easing#circle) provides a circular function+- [`sin`](/docs/easing#sin) provides a sinusoidal function+- [`exp`](/docs/easing#exp) provides an exponential functionThe following helpers are used to modify other easing functions.-- [`in`](easing#in) runs an easing function forwards-- [`inOut`](easing#inout) makes any easing function symmetrical-- [`out`](easing#out) runs an easing function backwards+- [`in`](/docs/easing#in) runs an easing function forwards+- [`inOut`](/docs/easing#inout) makes any easing function symmetrical+- [`out`](/docs/easing#out) runs an easing function backwards## Examplediff --git a/packages/docs/docs/encoding.md b/packages/docs/docs/encoding.mdindex d0506b4920..f01752efe5 100644--- a/packages/docs/docs/encoding.md+++ b/packages/docs/docs/encoding.md@@ -51,7 +51,7 @@ Remotion supports 4 codecs: `h264` (_default_), `h265`, `vp8` and `vp9`. The firClick on a browser compatibility link to see exactly which browsers are supported on caniuse.com.:::-You can set a config using [`Config.Output.setCodec()` in the config file](config#setcodec) or the [`--codec`](cli) CLI flag.+You can set a config using [`Config.Output.setCodec()` in the config file](/docs/config#setcodec) or the [`--codec`](/docs/cli) CLI flag.## Controlling quality using the CRF setting@@ -128,7 +128,7 @@ VP9</tr></table>-You can [set a CRF in the config file using the `Config.Output.setCrf()`](config#setcrf) function or use the [`--crf`](cli#flags) command line flag.+You can [set a CRF in the config file using the `Config.Output.setCrf()`](config#setcrf) function or use the [`--crf`](/docs/cli#flags) command line flag.## What other settings do you need?diff --git a/packages/docs/docs/iframe.md b/packages/docs/docs/iframe.mdindex c6857b965b..c5ccaedbb2 100644--- a/packages/docs/docs/iframe.md+++ b/packages/docs/docs/iframe.md@@ -21,4 +21,4 @@ export const MyComp: React.FC = () => {## See also-- [Use `<Img>` and `<IFrame>` tags](use-img-and-iframe)+- [Use `<Img>` and `<IFrame>` tags](/docs/use-img-and-iframe)diff --git a/packages/docs/docs/img.md b/packages/docs/docs/img.mdindex 2207d7f122..fbf309041a 100644--- a/packages/docs/docs/img.md+++ b/packages/docs/docs/img.md@@ -22,4 +22,4 @@ export const MyComp: React.FC = () => {## See also-- [Use `<Img>` and `<IFrame>` tags](use-img-and-iframe)+- [Use `<Img>` and `<IFrame>` tags](/docs/use-img-and-iframe)diff --git a/packages/docs/docs/importing-assets.md b/packages/docs/docs/importing-assets.mdindex ab66f85a56..c2f5de3330 100644--- a/packages/docs/docs/importing-assets.md+++ b/packages/docs/docs/importing-assets.md@@ -8,7 +8,7 @@ Remotion allows you to include several types of files in your project:- Images (`.png`, `.svg`, `.jpg`, `.jpeg`, `.webp`, `.gif`, `.bmp`)- Videos (`.webm`, `.mp4`)- Audio (`.mp3`, `.wav`, `.aac`), preview only-- [Fonts (`.woff` and `.woff2`) - read the separate page for fonts](fonts)+- [Fonts (`.woff` and `.woff2`) - read the separate page for fonts](/docs/fonts)## Using images@@ -56,7 +56,7 @@ Avoid writing a require statement that requires a file that doesn't exist. If yo## Using videos-Import your files using an import statement. Use the [`<Video />`](video) component to keep the timeline and your video in sync.+Import your files using an import statement. Use the [`<Video />`/docs/video) component to keep the timeline and your video in sync.```tsximport {Video} from 'remotion';@@ -73,7 +73,7 @@ Be aware that if you are rendering using Chromium (as opposed to Chrome), the co## Using Audio-Import your audio using an `@import` statement and pass it to the [`<Audio/ >`](audio) component.+Import your audio using an `@import` statement and pass it to the [`<Audio/ >`](/docs/audio) component.```tsximport {Audio} from 'remotion';@@ -92,4 +92,4 @@ Audio is experimental and is currently only playing in the preview, not in the f## Using fonts-See the [dedicated page about fonts](fonts).+See the [dedicated page about fonts](/docs/fonts).diff --git a/packages/docs/docs/interpolate.md b/packages/docs/docs/interpolate.mdindex 72a0e5bfb0..edfd168adc 100644--- a/packages/docs/docs/interpolate.md+++ b/packages/docs/docs/interpolate.md@@ -52,7 +52,7 @@ interpolate(1.5, [0, 1], [0, 2], {extrapolateRight: 'identity'}) // 1.5_Default_: `(x) => x`Function which allows you to customize the input, for example to apply a certain easing function.-By default, the input is left unmodified, resulting in a pure linear interpolation. [Read the documentation for the built-in easing functions](easing).+By default, the input is left unmodified, resulting in a pure linear interpolation. [Read the documentation for the built-in easing functions](/docs/easing).```tsximport {interpolate, Easing} from 'remotion';diff --git a/packages/docs/docs/jsx-support.md b/packages/docs/docs/jsx-support.mdindex 4c0fc0ed88..51893d9209 100644--- a/packages/docs/docs/jsx-support.md+++ b/packages/docs/docs/jsx-support.md@@ -20,4 +20,4 @@ If you upgrade from Remotion 1.2 or older, consider changing the `npm test` comm## See also-- [Custom Webpack config](webpack) for more advanced tweaking+- [Custom Webpack config](/docs/webpack) for more advanced tweakingdiff --git a/packages/docs/docs/overwriting-webpack-config.md b/packages/docs/docs/overwriting-webpack-config.mdindex 3ceb3edac8..e1733b924f 100644--- a/packages/docs/docs/overwriting-webpack-config.md+++ b/packages/docs/docs/overwriting-webpack-config.md@@ -86,4 +86,4 @@ You can pass a `--config` option to the command line to specify a custom locatio## See also-- [Configuration file](config)+- [Configuration file](/docs/config)diff --git a/packages/docs/docs/parametrized-rendering.md b/packages/docs/docs/parametrized-rendering.mdindex 541aa08610..8ce4bf318b 100644--- a/packages/docs/docs/parametrized-rendering.md+++ b/packages/docs/docs/parametrized-rendering.md@@ -55,7 +55,7 @@ When rendering (for example using the `npm run build` script defined in `packagenpx remotion render src/index.tsx HelloWorld helloworld.mp4 --props='{"propOne": "Hi", "propTwo": 10}'```-[See also: CLI flags](cli)+[See also: CLI flags](/docs/cli)## Passing props when server rendering@@ -79,7 +79,7 @@ await renderFrames({## Passing props in GitHub Actions-[See: Render using GitHub Actions](ssr#render-using-github-actions)+[See: Render using GitHub Actions](/docs/ssr#render-using-github-actions)When using GitHub Actions, you need to adjust the file at `.github/workflows/render-video.yml` to make the inputs in the `workflow_dispatch` section manually match the shape of the props your root component accepts.diff --git a/packages/docs/docs/random.md b/packages/docs/docs/random.mdindex 0a33c1c31b..0d2eb518e7 100644--- a/packages/docs/docs/random.md+++ b/packages/docs/docs/random.md@@ -35,4 +35,4 @@ random(null) === random(null) // false## See also-- [Using randomness](using-randomness)+- [Using randomness](/docs/using-randomness)diff --git a/packages/docs/docs/register-root.md b/packages/docs/docs/register-root.mdindex 85ef23d01c..f3f921c9da 100644--- a/packages/docs/docs/register-root.md+++ b/packages/docs/docs/register-root.md@@ -50,5 +50,5 @@ export const RemotionVideo = () => {## See also-- [`<Composition />` component](composition)-- [The fundamentals](the-fundamentals)+- [`<Composition />` component](/docs/composition)+- [The fundamentals](/docs/the-fundamentals)diff --git a/packages/docs/docs/render.md b/packages/docs/docs/render.mdindex 63dc99dba3..cf339095e3 100644--- a/packages/docs/docs/render.md+++ b/packages/docs/docs/render.md@@ -16,8 +16,8 @@ npx remotion render src/index.tsx HelloWorld out.mp4```Modify it to select a different video to render, or change its output location.-Learn about all the options on the [CLI reference page](cli).+Learn about all the options on the [CLI reference page](/docs/cli).## See also-- [CLI options](cli)+- [/docs/CLI options](/docs/cli)diff --git a/packages/docs/docs/sequence.md b/packages/docs/docs/sequence.mdindex 41a34f60be..b4504743f4 100644--- a/packages/docs/docs/sequence.md+++ b/packages/docs/docs/sequence.md@@ -52,4 +52,4 @@ const MyVideo = () => {## See also-- [Reuse components using Sequences](reusability)+- [Reuse components using Sequences](/docs/reusability)diff --git a/packages/docs/docs/sequences.md b/packages/docs/docs/sequences.mdindex a567147856..7eea0a7f82 100644--- a/packages/docs/docs/sequences.md+++ b/packages/docs/docs/sequences.md@@ -62,4 +62,4 @@ This is why the layout did not shift (as it does in HTML) when you added a secon## See also-- [`<Sequence>` component](sequence)+- [`<Sequence>` component](/docs/sequence)diff --git a/packages/docs/docs/spring.md b/packages/docs/docs/spring.mdindex 28936dd44e..c5a6d3b7ce 100644--- a/packages/docs/docs/spring.md+++ b/packages/docs/docs/spring.md@@ -80,4 +80,4 @@ This function was taken from [Reanimated 2](https://github.com/software-mansion/## See also-- [interpolate](interpolate)+- [interpolate](/docs/interpolate)diff --git a/packages/docs/docs/ssr.md b/packages/docs/docs/ssr.mdindex afab781739..a04247d058 100644--- a/packages/docs/docs/ssr.md+++ b/packages/docs/docs/ssr.md@@ -97,7 +97,7 @@ const start = async () => {start();```-[See also: Passing props in GitHub Actions](parametrized-rendering#passing-props-in-github-actions)+[See also: Passing props in GitHub Actions](/docs/parametrized-rendering#passing-props-in-github-actions)## Render using a HTTP server@@ -134,4 +134,4 @@ under `.github/workflows/render-video.yml`. All you have to do is to adjust theNote that running the workflow may incur costs. However, the workflow will only run if you actively trigger it.-[See also: Passing props in GitHub Actions](parametrized-rendering#passing-props-in-github-actions)+[See also: Passing props in GitHub Actions](/docs/parametrized-rendering#passing-props-in-github-actions)diff --git a/packages/docs/docs/use-current-frame.md b/packages/docs/docs/use-current-frame.mdindex db4049530a..159955ff6d 100644--- a/packages/docs/docs/use-current-frame.md+++ b/packages/docs/docs/use-current-frame.md@@ -3,7 +3,7 @@ title: useCurrentFrame()id: use-current-frame----With this hook, you can retrieve the current frame of the video. Frames are 0-indexed, meaning the first frame is `0`, the last frame is the duration of the composition in frames minus one. To learn more about how Remotion works with time, read the page about [the fundamentals](the-fundamentals).+With this hook, you can retrieve the current frame of the video. Frames are 0-indexed, meaning the first frame is `0`, the last frame is the duration of the composition in frames minus one. To learn more about how Remotion works with time, read the page about [the fundamentals](/docs/the-fundamentals).If the component you are writing is wrapped in a `<Sequence>`, `useCurrentFrame` will return the frame relative to when the Sequence starts.@@ -42,4 +42,4 @@ const MyVideo = () => {## See also-- [useVideoConfig()](use-video-config)+- [useVideoConfig()](/docs/use-video-config)diff --git a/packages/docs/docs/use-img-and-iframe.md b/packages/docs/docs/use-img-and-iframe.mdindex ff864bb656..90b7780531 100644--- a/packages/docs/docs/use-img-and-iframe.md+++ b/packages/docs/docs/use-img-and-iframe.md@@ -3,4 +3,4 @@ id: use-img-and-iframetitle: Use <Img> and <IFrame> tags----Prefer Remotions [`<Img />`](img) and [`<IFrame />`](iframe) Tags over the native HTML elements. This will ensure that rendering is paused until all resources are actually loaded. The last you would want is your video to have a flickering frame!+Prefer Remotions [`<Img />`](/docs/img) and [`<IFrame />`](/docs/iframe) Tags over the native HTML elements. This will ensure that rendering is paused until all resources are actually loaded. The last you would want is your video to have a flickering frame!diff --git a/packages/docs/docs/use-video-config.md b/packages/docs/docs/use-video-config.mdindex 039f98c069..b01c217269 100644--- a/packages/docs/docs/use-video-config.md+++ b/packages/docs/docs/use-video-config.md@@ -11,8 +11,8 @@ Namely, `useVideoConfig` will return an object with the following properties:- `fps`: The frame rate of the composition in pixels, in frames per seconds.- `durationInFrames` The duration of the composition in frames.-Remember that you control these properties by passing them as props to `<Composition>`. Read the page about [the fundamentals](the-fundamentals) to learn how to define a composition.+Remember that you control these properties by passing them as props to `<Composition>`. Read the page about [the fundamentals](/docs/the-fundamentals) to learn how to define a composition.## See also-- [useCurrentFrame()](use-current-frame)+- [useCurrentFrame()](/docs/use-current-frame)diff --git a/packages/docs/docs/using-randomness.md b/packages/docs/docs/using-randomness.mdindex 6010880d44..2a033e3778 100644--- a/packages/docs/docs/using-randomness.md+++ b/packages/docs/docs/using-randomness.md@@ -23,7 +23,7 @@ While this will work during preview, it will break while rendering. The reason i## Fixing the problem-Use the [`random()`](random) API from Remotion to get deterministic pseudorandom values. Pass in a seed (number or string) and as long as the seed is the same, the return value will be the same.+Use the [`random()`](/docs/random) API from Remotion to get deterministic pseudorandom values. Pass in a seed (number or string) and as long as the seed is the same, the return value will be the same.```tsx {7,8}import {random} from 'remotion';@@ -47,4 +47,4 @@ Did you get an ESLint warning when using `Math.random()`, but you are fully awar## See also-- [random()](random)+- [random()](/docs/random)diff --git a/packages/docs/docs/video.md b/packages/docs/docs/video.mdindex 658228a11c..67d6bcaecc 100644--- a/packages/docs/docs/video.md+++ b/packages/docs/docs/video.md@@ -34,7 +34,7 @@ export const MyVideo = () => {Pay attention to the codec of the video that you are importing. During the render process, Chrome needs to support playing the video that you are embedding. If Remotion cannot find a preinstalled version of Chrome, it will download a Chromium executable which does not support the playback of H264 (common codec for MP4 videos). To work around this problem, you have multiple options:-- Tell Remotion which path for Chrome to use by using the command line flag `--browser-executable` or [configure](config#setbrowserexecutable) `Config.Puppeteer.setBrowserExecutable()` in a config file.+- Tell Remotion which path for Chrome to use by using the command line flag `--browser-executable` or [configure](/docs/config#setbrowserexecutable) `Config.Puppeteer.setBrowserExecutable()` in a config file.- Convert your videos to WebM before embedding them.Prior to Remotion 1.5, Remotion will always use an internal Puppeteer binary and MP4 videos are therefore not supported.@@ -43,4 +43,4 @@ If you would like Remotion to warn you when you import an MP4 video, you can tur## See also-- [`<Audio />`](audio)+- [`<Audio />`](/docs/audio)