🎥 Make videos programmatically with React
New terminology section in the docs
Jonny Burger68bb1aacdeb1
diff --git a/packages/bundler/package.json b/packages/bundler/package.jsonindex 60176674a0..5512a8b38b 100644--- a/packages/bundler/package.json+++ b/packages/bundler/package.json@@ -52,6 +52,7 @@"prettier": "3.1.1","prettier-plugin-organize-imports": "3.2.4","react": "18.2.0",+ "source-map": "0.7.3","react-dom": "18.2.0","vitest": "0.31.1"},diff --git a/packages/cli/src/bundle.ts b/packages/cli/src/bundle.tsindex 3a0d640333..50e966236d 100644--- a/packages/cli/src/bundle.ts+++ b/packages/cli/src/bundle.ts@@ -40,7 +40,7 @@ export const bundleCommand = async (Log.error('Pass another argument to the command specifying the entry point.',);- Log.error('See: https://www.remotion.dev/docs/terminology#entry-point');+ Log.error('See: https://www.remotion.dev/docs/terminology/entry-point');process.exit(1);}diff --git a/packages/docs/components/TableOfContents/cli.tsx b/packages/docs/components/TableOfContents/cli.tsxindex ea06d4faf9..97d7567902 100644--- a/packages/docs/components/TableOfContents/cli.tsx+++ b/packages/docs/components/TableOfContents/cli.tsx@@ -26,6 +26,14 @@ export const TableOfContents: React.FC = () => {<strong>lambda</strong><div>Control Remotion Lambda</div></TOCItem>+ <TOCItem link="/docs/cli/bundle">+ <strong>bundle</strong>+ <div>Create a Remotion Bundle</div>+ </TOCItem>+ <TOCItem link="/docs/cloudrun/cli">+ <strong>cloudrun</strong>+ <div>Control Remotion Cloud Run</div>+ </TOCItem><TOCItem link="/docs/cli/benchmark"><strong>benchmark</strong><div>Measure and optimize render time</div>@@ -38,6 +46,22 @@ export const TableOfContents: React.FC = () => {<strong>upgrade</strong><div>Upgrade to a newer version</div></TOCItem>+ <TOCItem link="/docs/cli/gpu">+ <strong>gpu</strong>+ <div>Print information about {"Chrome's"} usage of the GPU</div>+ </TOCItem>+ <TOCItem link="/docs/cli/ffmpeg">+ <strong>ffmpeg</strong>+ <div>+ Execute an <code>ffmpeg</code> command+ </div>+ </TOCItem>+ <TOCItem link="/docs/cli/ffprobe">+ <strong>ffprobe</strong>+ <div>+ Execute an <code>ffprobe</code> command+ </div>+ </TOCItem><TOCItem link="/docs/cli/help"><strong>help</strong><div>Show CLI commands</div>diff --git a/packages/docs/docs/audio.md b/packages/docs/docs/audio.mdindex d3d6da050b..8b85f856c9 100644--- a/packages/docs/docs/audio.md+++ b/packages/docs/docs/audio.md@@ -141,7 +141,7 @@ A `toneFrequency` of 0.5 would lower the pitch by half, and a `toneFrequency` of### `acceptableTimeShiftInSeconds`<AvailableFrom v="3.2.42"/>-In the [Remotion Studio](/docs/terminology#remotion-studio) or in the [Remotion Player](/docs/player), Remotion will seek the audio if it gets too much out of sync with Remotion's internal time - be it due to the audio loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.+In the [Remotion Studio](/docs/terminology/studio) or in the [Remotion Player](/docs/player), Remotion will seek the audio if it gets too much out of sync with Remotion's internal time - be it due to the audio loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.### `allowAmplificationDuringRender`<AvailableFrom v="3.3.17"/>diff --git a/packages/docs/docs/bundle.md b/packages/docs/docs/bundle.mdindex 9449f18b73..63e005efdb 100644--- a/packages/docs/docs/bundle.md+++ b/packages/docs/docs/bundle.md@@ -33,7 +33,7 @@ const bundle: (options?: {### `entryPoint`-A `string` containing an absolute path of the entry point of a Remotion project. [In most Remotion project created with the template, the entry point is located at `src/index.ts`](/docs/terminology#entry-point).+A `string` containing an absolute path of the entry point of a Remotion project. [In most Remotion project created with the template, the entry point is located at `src/index.ts`](/docs/terminology/entry-point).### `onProgress?`@@ -92,7 +92,7 @@ The current working directory is the directory from which your program gets exec### `publicDir?`<AvailableFrom v="3.2.13" />-Set the directory in which the files that can be loaded using [`staticFile()`](/docs/staticfile) are located. By default it is the folder `public/` located in the [Remotion Root](/docs/terminology#remotion-root). If you pass a relative path, it will be resolved against the [Remotion Root](/docs/terminology#remotion-root).+Set the directory in which the files that can be loaded using [`staticFile()`](/docs/staticfile) are located. By default it is the folder `public/` located in the [Remotion Root](/docs/terminology/remotion-root). If you pass a relative path, it will be resolved against the [Remotion Root](/docs/terminology/remotion-root).### `onPublicDirCopyProgress?`<AvailableFrom v="3.3.3" />diff --git a/packages/docs/docs/cli/benchmark.md b/packages/docs/docs/cli/benchmark.mdindex d9917d690d..142011d920 100644--- a/packages/docs/docs/cli/benchmark.md+++ b/packages/docs/docs/cli/benchmark.md@@ -29,7 +29,7 @@ Specify how many times video must be rendered. Default value is 3._optional_-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)+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`diff --git a/packages/docs/docs/cli/bundle.md b/packages/docs/docs/cli/bundle.mdindex 408a5dd2f7..cf617717a4 100644--- a/packages/docs/docs/cli/bundle.md+++ b/packages/docs/docs/cli/bundle.md@@ -7,7 +7,7 @@ crumb: CLI Reference_available from v4.0.89_-Creates a [Remotion Bundle](/docs/terminology#bundle) on the command line.+Creates a [Remotion Bundle](/docs/terminology/bundle) on the command line.Equivalent to the [`bundle()`](/docs/bundle) Node.JS API.```bash@@ -36,4 +36,4 @@ Specify a location for the Remotion config file.### `--out-dir`-Define the location of the resulting bundle. By default it is a folder called `./build`, adjacent to the [Remotion Root](/docs/terminology#remotion-root).+Define the location of the resulting bundle. By default it is a folder called `./build`, adjacent to the [Remotion Root](/docs/terminology/remotion-root).diff --git a/packages/docs/docs/cli/cli.md b/packages/docs/docs/cli/cli.mdindex 02260afaf8..993829d654 100644--- a/packages/docs/docs/cli/cli.md+++ b/packages/docs/docs/cli/cli.md@@ -10,7 +10,15 @@ import {TableOfContents} from '../../components/TableOfContents/cli';## How to use-- You can access the CLI by running `npx remotion` inside a npm project using remotion, `yarn remotion` inside a yarn project and `pnpm exec remotion` inside a pnpm project. For compactness, in the documentation we always say `npx remotion`.+You can run the CLI by installing `@remotion/cli` and running:++- `npx remotion` inside a npm project+- `yarn remotion` inside a yarn project+- `pnpm exec remotion` inside a pnpm project.+- `bunx remotion` inside a Bun project++For brevity, in the documentation we always say `npx remotion`.+- Inside an npm script, you don't need the `npx` prefix.## Commandsdiff --git a/packages/docs/docs/cli/install.md b/packages/docs/docs/cli/install.mdindex eafd84ebf3..d8f2c2078e 100644--- a/packages/docs/docs/cli/install.md+++ b/packages/docs/docs/cli/install.md@@ -5,11 +5,10 @@ sidebar_label: installcrumb: CLI Reference----_removed in v4.0.0_+_removed in v4.0.0, available from v3.3_-_See ["No more FFmpeg installation"](/docs/4-0-migration#no-more-ffmpeg-install-ffmpegexecutable-option-removed)._ Here for archival purpose.--_available from v3.3_+_See ["No more FFmpeg installation"](/docs/4-0-migration#no-more-ffmpeg-install-ffmpegexecutable-option-removed)._+This page is for archival purpose.Ensures that `ffmpeg` or `ffprobe` are installed by downloading them from the internet if they cannot be found.diff --git a/packages/docs/docs/cloudrun/cli/render.md b/packages/docs/docs/cloudrun/cli/render.mdindex aa3b1b6a8c..6f8734959a 100644--- a/packages/docs/docs/cloudrun/cli/render.md+++ b/packages/docs/docs/cloudrun/cli/render.md@@ -20,7 +20,7 @@ npx remotion cloudrun render <serve-url> [<composition-id>] [<output-location>]```- The serve URL is obtained by deploying a Remotion project to a GCP Storage Bucket using the [`sites create`](/docs/cloudrun/cli/sites#create) command or calling [`deployService()`](/docs/cloudrun/deployservice).-- The [composition ID](/docs/terminology#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.+- The [composition ID](/docs/terminology/composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.- The `output-location` parameter is optional. If you don't specify it, the video is stored in your Cloud Storage bucket. If you specify a location, it gets downloaded to your device in an additional step.## Example commandsdiff --git a/packages/docs/docs/cloudrun/cli/still.md b/packages/docs/docs/cloudrun/cli/still.mdindex 39f51ed5d5..a5e9e64e1b 100644--- a/packages/docs/docs/cloudrun/cli/still.md+++ b/packages/docs/docs/cloudrun/cli/still.md@@ -20,7 +20,7 @@ npx remotion cloudrun still <serve-url> [<still-id>] [<output-location>]```- The serve URL is obtained by deploying a Remotion project to a GCP Storage Bucket using the [`sites create`](/docs/cloudrun/cli/sites#create) command or calling [`deployService()`](/docs/cloudrun/deployservice).-- The [still ID](/docs/terminology#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.+- The [still ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.- The `output-location` parameter is optional. If you don't specify it, the image is stored in your Cloud Storage bucket. If you specify a location, it gets downloaded to your device in an additional step.## Example commandsdiff --git a/packages/docs/docs/cloudrun/deploysite.md b/packages/docs/docs/cloudrun/deploysite.mdindex 4756c540e4..45f23afbc9 100644--- a/packages/docs/docs/cloudrun/deploysite.md+++ b/packages/docs/docs/cloudrun/deploysite.md@@ -39,7 +39,7 @@ const { serveUrl } = await deploySite({sizeUploaded,}) => {console.log(- `Upload progress: Total files ${totalFiles}, Files uploaded ${filesUploaded}, Total size ${totalSize}, Size uploaded ${sizeUploaded}`+ `Upload progress: Total files ${totalFiles}, Files uploaded ${filesUploaded}, Total size ${totalSize}, Size uploaded ${sizeUploaded}`,);},},@@ -53,7 +53,7 @@ An object with the following properties:### `entryPoint`-An absolute path pointing to the entry point of your Remotion project. [Usually the entry point in your Remotion project is stored at `src/entry.tsx`](/docs/terminology#entry-point).+An absolute path pointing to the entry point of your Remotion project. [Usually the entry point in your Remotion project is stored at `src/entry.tsx`](/docs/terminology/entry-point).### `bucketName`@@ -94,7 +94,7 @@ Whether webpack caching should be enabled. See [`bundle()` -> enableCaching](/do#### `publicDir`-Set the directory in which the files that can be loaded using [`staticFile()`](/docs/staticfile) are located. By default it is the folder `public/` located in the [Remotion Root](/docs/terminology#remotion-root) folder. If you pass a relative path, it will be resolved against the [Remotion Root](/docs/terminology#remotion-root).+Set the directory in which the files that can be loaded using [`staticFile()`](/docs/staticfile) are located. By default it is the folder `public/` located in the [Remotion Root](/docs/terminology/remotion-root) folder. If you pass a relative path, it will be resolved against the [Remotion Root](/docs/terminology/remotion-root).#### `rootDir`diff --git a/packages/docs/docs/cloudrun/rendermediaoncloudrun.md b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdindex bbcbf69a77..f2e9f82722 100644--- a/packages/docs/docs/cloudrun/rendermediaoncloudrun.md+++ b/packages/docs/docs/cloudrun/rendermediaoncloudrun.md@@ -12,7 +12,7 @@ crumb: "Cloud Run API"Kicks off a media rendering process on Remotion Cloud Run.Requires a [service](/docs/cloudrun/deployservice) to already be deployed to execute the render.-A [site](/docs/cloudrun/deploysite) or a [Serve URL](/docs/terminology#serve-url) needs to be specified to determine what will be rendered.+A [site](/docs/cloudrun/deploysite) or a [Serve URL](/docs/terminology/serve-url) needs to be specified to determine what will be rendered.## Examplediff --git a/packages/docs/docs/cloudrun/renderstilloncloudrun.md b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdindex 255f6787b1..b54a203857 100644--- a/packages/docs/docs/cloudrun/renderstilloncloudrun.md+++ b/packages/docs/docs/cloudrun/renderstilloncloudrun.md@@ -12,7 +12,7 @@ crumb: "Cloud Run API"Kicks off a still rendering process on Remotion Cloud Run.Requires a [service](/docs/cloudrun/deployservice) to already be deployed to execute the render.-A [site](/docs/cloudrun/deploysite) or a [Serve URL](/docs/terminology#serve-url) needs to be specified to determine what will be rendered.+A [site](/docs/cloudrun/deploysite) or a [Serve URL](/docs/terminology/serve-url) needs to be specified to determine what will be rendered.## Examplediff --git a/packages/docs/docs/cloudrun/setup.md b/packages/docs/docs/cloudrun/setup.mdindex 8989b6bd15..dec09ad0d9 100644--- a/packages/docs/docs/cloudrun/setup.md+++ b/packages/docs/docs/cloudrun/setup.md@@ -160,9 +160,9 @@ The object that is returned contains a name field, which you'll need for renderi</TabItem></Tabs>-The service consists of necessary binaries and JavaScript code that can take a [serve URL](/docs/terminology#serve-url) and make renders from it. A service is bound to the Remotion version, if you upgrade Remotion, you [need to deploy a new service](/docs/cloudrun/upgrading). A service does not include your Remotion code, it will be deployed in the next step instead.+The service consists of necessary binaries and JavaScript code that can take a [serve URL](/docs/terminology/serve-url) and make renders from it. A service is bound to the Remotion version, if you upgrade Remotion, you [need to deploy a new service](/docs/cloudrun/upgrading). A service does not include your Remotion code, it will be deployed in the next step instead.-A [`Cloud Run URL`](/docs/terminology#cloud-run-url) will be printed, providing unique endpoint for accessing the deployed service and performing a render. Alternatively you can use the [`Service Name`](/docs/terminology#service-name), that is also printed, for accessing the deployed service and performing a render.+A [`Cloud Run URL`](/docs/terminology/cloud-run-url) will be printed, providing unique endpoint for accessing the deployed service and performing a render. Alternatively you can use the [`Service Name`](/docs/terminology/service-name), that is also printed, for accessing the deployed service and performing a render.## 7. Deploy a site@@ -175,13 +175,13 @@ values={[}><TabItem value="cli">-Run the following command to deploy your Remotion project to a Cloud Storage bucket. Pass as the last argument the [entry point](/docs/terminology#entry-point) of the project.+Run the following command to deploy your Remotion project to a Cloud Storage bucket. Pass as the last argument the [entry point](/docs/terminology/entry-point) of the project.```bashnpx remotion cloudrun sites create src/index.ts --site-name=my-video```-A [`serveUrl`](/docs/terminology#serve-url) will be printed pointing to the deployed project.+A [`serveUrl`](/docs/terminology/serve-url) will be printed pointing to the deployed project.When you update your Remotion video in the future, redeploy your site. Pass the same [`--site-name`](/docs/lambda/cli/sites#--site-name) to overwrite the previous deploy. If you don't pass [`--site-name`](/docs/lambda/cli/sites#--site-name), a unique URL will be generated on every deploy.diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex fd4237eafa..59f16bf946 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -113,7 +113,7 @@ The [command line flag](/docs/cli/render#--public-dir) `--public-dir` will take## setEntryPoint()<AvailableFrom v="3.2.40" />-Sets the Remotion [entry point](/docs/terminology#entry-point), you don't have to specify it for CLI commands.+Sets the Remotion [entry point](/docs/terminology/entry-point), you don't have to specify it for CLI commands.```ts twoslash title="remotion.config.ts"import { Config } from "@remotion/cli/config";@@ -843,8 +843,8 @@ If you specify a port, but it's not available, Remotion will throw an error.:::warningSetting this option will break rendering in the Remotion Studio, because this option controls two settings at the same time:-- When starting the [Remotion Studio](/docs/terminology#remotion-studio), a server will be started to host it ([`setStudioPort()`](/docs/config#setstudioport)).-- During rendering, a HTTP server is also started in the background to serve the Webpack [bundle](/docs/terminology#bundle) ([`setRendererPort()`](/docs/config#setrendererport)).+- When starting the [Remotion Studio](/docs/terminology/studio), a server will be started to host it ([`setStudioPort()`](/docs/config#setstudioport)).+- During rendering, a HTTP server is also started in the background to serve the Webpack [bundle](/docs/terminology/bundle) ([`setRendererPort()`](/docs/config#setrendererport)).Use the options individually.:::diff --git a/packages/docs/docs/contributing/option.md b/packages/docs/docs/contributing/option.mdindex e54f740ccf..c57e92bca7 100644--- a/packages/docs/docs/contributing/option.md+++ b/packages/docs/docs/contributing/option.md@@ -11,7 +11,7 @@ Adding a new option to a feature is a great way to contribute to Remotion and enThere are multiple ways to specify an option:- APIs that can be called via Node.JS can directly accept a parameter.-- Options influencing a render can be added to the render dialog in the [Remotion Studio](/docs/terminology#remotion-studio).+- Options influencing a render can be added to the render dialog in the [Remotion Studio](/docs/terminology/studio).- If the action is available as a [CLI](/docs/cli) command, the option should also be added as a CLI flag.- The [config](/docs/config) file can be also be used to specify multiple options. <br/>:::note@@ -23,7 +23,7 @@ There are multiple ways to specify an option:The option should be resolved in the following order:<Step>1</Step> Directly passed to the Node.JS API<br/>-<Step>2</Step> Specified via the render UI in the <a href="/docs/terminology#remotion-studio">Remotion Studio</a><br/>+<Step>2</Step> Specified via the render UI in the <a href="/docs/terminology/studio">Remotion Studio</a><br/><Step>3</Step> Specified via <a href="/docs/cli">CLI flag</a><br/><Step>4</Step> Specified via <a href="/docs/config">config file</a><br/><Step>5</Step> Fallback to a default valuediff --git a/packages/docs/docs/env-variables.md b/packages/docs/docs/env-variables.mdindex 061f6753c5..8063ed8978 100644--- a/packages/docs/docs/env-variables.md+++ b/packages/docs/docs/env-variables.md@@ -25,7 +25,7 @@ In your project, you can access the variable using `process.env.REMOTION_MY_VAR`[Dotenv](https://www.npmjs.com/package/dotenv) support is built in if you use the CLI.-Place a `.env` file in the [root](/docs/terminology#remotion-root) of your project and fill it with key-value pairs.+Place a `.env` file in the [root](/docs/terminology/remotion-root) of your project and fill it with key-value pairs.```ini title=".env"MY_VAR=hellodiff --git a/packages/docs/docs/lambda/cli/render.md b/packages/docs/docs/lambda/cli/render.mdindex 39748da300..a4bff8cffc 100644--- a/packages/docs/docs/lambda/cli/render.md+++ b/packages/docs/docs/lambda/cli/render.md@@ -19,7 +19,7 @@ npx remotion lambda render <serve-url> [<composition-id>] [<output-location>]```- The serve URL is obtained by deploying a Remotion project to an AWS S3 bucket using the [`sites create`](/docs/lambda/cli/sites#create) command or calling [`deploySite()`](/docs/lambda/deploysite).-- The [composition ID](/docs/terminology#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.+- The [composition ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.- The `output-location` parameter is optional. If you don't specify it, the video is stored in your S3 bucket. If you specify a location, it gets downloaded to your device in an additional step.## Example commandsdiff --git a/packages/docs/docs/lambda/cli/still.md b/packages/docs/docs/lambda/cli/still.mdindex 7623ba9a10..977918bcba 100644--- a/packages/docs/docs/lambda/cli/still.md+++ b/packages/docs/docs/lambda/cli/still.md@@ -16,7 +16,7 @@ npx remotion lambda still <serve-url> [<composition-id>] [<output-location>]```- The serve URL is obtained by deploying a project to Remotion using the [`sites create`](/docs/lambda/cli/sites#create) command or calling [`deploySite()`](/docs/lambda/deploysite).-- The [composition ID](/docs/terminology#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.+- The [composition ID](/docs/terminology/composition#composition-id). If not specified, the list of compositions will be fetched and you can choose a composition.- The `output-location` parameter is optional. If you don't specify it, the still is stored in your S3 bucket. If you specify a location, it gets downloaded to your device in an additional step.## Example commandsdiff --git a/packages/docs/docs/lambda/deploysite.md b/packages/docs/docs/lambda/deploysite.mdindex 441c56e10a..b659603a9a 100644--- a/packages/docs/docs/lambda/deploysite.md+++ b/packages/docs/docs/lambda/deploysite.md@@ -36,7 +36,7 @@ const { serveUrl } = await deploySite({sizeUploaded,}) => {console.log(- `Upload progress: Total files ${totalFiles}, Files uploaded ${filesUploaded}, Total size ${totalSize}, Size uploaded ${sizeUploaded}`+ `Upload progress: Total files ${totalFiles}, Files uploaded ${filesUploaded}, Total size ${totalSize}, Size uploaded ${sizeUploaded}`,);},},@@ -50,7 +50,7 @@ An object with the following properties:### `entryPoint`-An absolute path pointing to the entry point of your Remotion project. [Usually the entry point in your Remotion project is stored at `src/entry.tsx`](/docs/terminology#entry-point).+An absolute path pointing to the entry point of your Remotion project. [Usually the entry point in your Remotion project is stored at `src/entry.tsx`](/docs/terminology/entry-point).### `bucketName`@@ -97,7 +97,7 @@ Whether webpack caching should be enabled. Default true. See [`bundle()` -> enab_available from v3.2.17_-Set the directory in which the files that can be loaded using [`staticFile()`](/docs/staticfile) are located. By default it is the folder `public/` located in the [Remotion Root](/docs/terminology#remotion-root) folder. If you pass a relative path, it will be resolved against the [Remotion Root](/docs/terminology#remotion-root).+Set the directory in which the files that can be loaded using [`staticFile()`](/docs/staticfile) are located. By default it is the folder `public/` located in the [Remotion Root](/docs/terminology/remotion-root) folder. If you pass a relative path, it will be resolved against the [Remotion Root](/docs/terminology/remotion-root).#### `rootDir`diff --git a/packages/docs/docs/lambda/rendermediaonlambda.md b/packages/docs/docs/lambda/rendermediaonlambda.mdindex 5a35475851..698eb4efb0 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.md+++ b/packages/docs/docs/lambda/rendermediaonlambda.md@@ -10,7 +10,7 @@ import { MinimumFramesPerLambda } from "../../components/lambda/default-frames-pKicks off a render process on Remotion Lambda. The progress can be tracked using [getRenderProgress()](/docs/lambda/getrenderprogress).Requires a [function](/docs/lambda/deployfunction) to already be deployed to execute the render.-A [site](/docs/lambda/deploysite) or a [Serve URL](/docs/terminology#serve-url) needs to be specified to determine what will be rendered.+A [site](/docs/lambda/deploysite) or a [Serve URL](/docs/terminology/serve-url) needs to be specified to determine what will be rendered.## Examplediff --git a/packages/docs/docs/lambda/setup.md b/packages/docs/docs/lambda/setup.mdindex ce27823f88..84591f512b 100644--- a/packages/docs/docs/lambda/setup.md+++ b/packages/docs/docs/lambda/setup.md@@ -176,7 +176,7 @@ The function name is returned which you'll need for rendering.</TabItem></Tabs>-The function consists of necessary binaries and JavaScript code that can take a [serve URL](/docs/terminology#serve-url) and make renders from it. A function is bound to the Remotion version, if you upgrade Remotion, you [need to deploy a new function](/docs/lambda/upgrading). A function does not include your Remotion code, it will be deployed in the next step instead.+The function consists of necessary binaries and JavaScript code that can take a [serve URL](/docs/terminology/serve-url) and make renders from it. A function is bound to the Remotion version, if you upgrade Remotion, you [need to deploy a new function](/docs/lambda/upgrading). A function does not include your Remotion code, it will be deployed in the next step instead.## 9. Deploy a site@@ -189,13 +189,13 @@ values={[}><TabItem value="cli">-Run the following command to deploy your Remotion project to an S3 bucket. Pass as the last argument the [entry point](/docs/terminology#entry-point) of the project.+Run the following command to deploy your Remotion project to an S3 bucket. Pass as the last argument the [entry point](/docs/terminology/entry-point) of the project.```bashnpx remotion lambda sites create src/index.ts --site-name=my-video```-A [`serveUrl`](/docs/terminology#serve-url) will be printed pointing to the deployed project.+A [Serve URL](/docs/terminology/serve-url) will be printed pointing to the deployed project.When you update your Remotion video in the future, redeploy your site. Pass the same [`--site-name`](/docs/lambda/cli/sites#--site-name) to overwrite the previous deploy. If you don't pass [`--site-name`](/docs/lambda/cli/sites#--site-name), a unique URL will be generated on every deploy.diff --git a/packages/docs/docs/miscellaneous/absolute-paths.md b/packages/docs/docs/miscellaneous/absolute-paths.mdindex 88910da155..5bb2a532a0 100644--- a/packages/docs/docs/miscellaneous/absolute-paths.md+++ b/packages/docs/docs/miscellaneous/absolute-paths.md@@ -48,7 +48,7 @@ By using `staticFile()`, you can import assets from the public folder, and it wiBefore rendering a video, code is bundled to reduce the size of the assets that need to be sent to the browser. Your project with it's `node_modules` folder would be hundreds of megabytes large, but by bundling, the size is reduced drastically.-A bundle can also be uploaded and hosted on the internet, which is what [Remotion Lambda](/docs/lambda) and [Remotion Cloud Run](/docs/cloudrun) do and what is also possible using [regular rendering](/docs/terminology#serve-url).+A bundle can also be uploaded and hosted on the internet, which is what [Remotion Lambda](/docs/lambda) and [Remotion Cloud Run](/docs/cloudrun) do and what is also possible using [regular rendering](/docs/terminology/serve-url).Because the goal is to reduce the size of the bundle, only the `public` gets copied into the bundle.Files with an absolute path would not be copied into the bundle, and therefore not be available when rendering on another device.diff --git a/packages/docs/docs/miscellaneous/video-formats.md b/packages/docs/docs/miscellaneous/video-formats.mdindex 2a0d657306..7364b7fdc3 100644--- a/packages/docs/docs/miscellaneous/video-formats.md+++ b/packages/docs/docs/miscellaneous/video-formats.md@@ -10,7 +10,7 @@ Remotion supports a variety of video codecs.**Output formats**: Videos can be rendered to `H.264` (MP4), `H.265`, (HEVC), `VP8` and `VP9` (WebM), `ProRes` as well as GIFs. See the [Encoding guide](/docs/encoding) for more detail.**Codecs supported for [`<Video>`](/docs/video):** Remotion uses the default `<video>` tag for playback and therefore inherits codec support from the browser.-During rendering this means that the Chrome codecs are supported. In the [Remotion Studio](/docs/terminology#remotion-studio) and in the [Player](/docs/terminology/player), the codec support from the browser in which the webpage is hosted in applies.+During rendering this means that the Chrome codecs are supported. In the [Remotion Studio](/docs/terminology/studio) and in the [Player](/docs/terminology/player), the codec support from the browser in which the webpage is hosted in applies.Codec support varies between browsers and changes from time to time. Refer to this [MDN article](https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs) for browser support.:::notediff --git a/packages/docs/docs/offthreadvideo.md b/packages/docs/docs/offthreadvideo.mdindex 670110ca7f..b287619a1c 100644--- a/packages/docs/docs/offthreadvideo.md+++ b/packages/docs/docs/offthreadvideo.md@@ -180,7 +180,7 @@ export const MyComposition = () => {### `acceptableTimeShiftInSeconds`<AvailableFrom v="3.2.42" />-In the [Studio](/docs/terminology#remotion-studio) or in the [Remotion Player](/docs/player), Remotion will seek the video if it gets too much out of sync with Remotion's internal time - be it due to the video loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.+In the [Studio](/docs/terminology/studio) or in the [Remotion Player](/docs/player), Remotion will seek the video if it gets too much out of sync with Remotion's internal time - be it due to the video loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.### `allowAmplificationDuringRender`<AvailableFrom v="3.3.17" />diff --git a/packages/docs/docs/overwriting-webpack-config.md b/packages/docs/docs/overwriting-webpack-config.mdindex 57721b1478..7fe899aab7 100644--- a/packages/docs/docs/overwriting-webpack-config.md+++ b/packages/docs/docs/overwriting-webpack-config.md@@ -351,7 +351,7 @@ import { enableGlsl } from "./src/enable-glsl";Config.overrideWebpackConfig(enableGlsl);```-3. Add the following to your [entry point](/docs/terminology#entry-point) (e.g. `src/index.ts`):+3. Add the following to your [entry point](/docs/terminology/entry-point) (e.g. `src/index.ts`):```tsdeclare module "*.glsl" {diff --git a/packages/docs/docs/renderer/get-compositions.md b/packages/docs/docs/renderer/get-compositions.mdindex e6300fb879..a3ff076097 100644--- a/packages/docs/docs/renderer/get-compositions.md+++ b/packages/docs/docs/renderer/get-compositions.md@@ -9,7 +9,7 @@ import {AngleChangelog} from '../../components/AngleChangelog';_Part of the `@remotion/renderer` package._-Gets a list of compositions defined in a Remotion project based on a [Remotion Bundle](/docs/terminology#bundle) by evaluating the [Remotion Root](/docs/terminology#remotion-root).+Gets a list of compositions defined in a Remotion project based on a [Remotion Bundle](/docs/terminology/bundle) by evaluating the [Remotion Root](/docs/terminology/remotion-root).For every compositions their [`calculateMetadata()`](/docs/composition#calculatemetadata) function is evaluated. If you just want to evaluate one composition that you want to render, use [`selectComposition()`](/docs/renderer/select-composition).@@ -24,7 +24,7 @@ const getCompositions: (### `bundleOrServeUrl`-A string pointing to a [Remotion Bundle](/docs/terminology#bundle) generated by [`bundle()`](/docs/bundle) or a URL that hosts the the bundled Remotion project.+A string pointing to a [Remotion Bundle](/docs/terminology/bundle) generated by [`bundle()`](/docs/bundle) or a URL that hosts the the bundled Remotion project.### `options?`diff --git a/packages/docs/docs/renderer/select-composition.md b/packages/docs/docs/renderer/select-composition.mdindex 812889f5bc..db18b06bf2 100644--- a/packages/docs/docs/renderer/select-composition.md+++ b/packages/docs/docs/renderer/select-composition.md@@ -7,11 +7,11 @@ crumb: "@remotion/renderer"# selectComposition()<AvailableFrom v="4.0.0"/>-Evaluates the list of compositions from a [Remotion Bundle](/docs/terminology#bundle) by evaluating the [Remotion Root](/docs/terminology#remotion-root) and evaluating `calculateMetadata()` on the specified [composition](/docs/terminology#composition).+Evaluates the list of compositions from a [Remotion Bundle](/docs/terminology/bundle) by evaluating the [Remotion Root](/docs/terminology/remotion-root) and evaluating `calculateMetadata()` on the specified [composition](/docs/terminology/composition).If you want to get a list of all compositions, use [`getCompositions()`](/docs/renderer/get-compositions).-If no composition with the specified [ID](/docs/terminology#composition-id) exists, then this function will throw.+If no composition with the specified [ID](/docs/terminology/composition#composition-id) exists, then this function will throw.```tsx twoslash title="Example"// @module: ESNext@@ -37,11 +37,11 @@ Accepts an object with the following properties:### `serveUrl`-A string pointing to a [Remotion Bundle](/docs/terminology#bundle) generated by [`bundle()`](/docs/bundle) or a URL that hosts the the bundled Remotion project.+A string pointing to a [Remotion Bundle](/docs/terminology/bundle) generated by [`bundle()`](/docs/bundle) or a URL that hosts the the bundled Remotion project.### `id`-The [ID](/docs/terminology#composition-id) of the composition you want to evaluate.+The [ID](/docs/terminology/composition#composition-id) of the composition you want to evaluate.### `logLevel?`diff --git a/packages/docs/docs/skia/skia.md b/packages/docs/docs/skia/skia.mdindex 2e9cddaafa..af3731a3d5 100644--- a/packages/docs/docs/skia/skia.md+++ b/packages/docs/docs/skia/skia.md@@ -79,7 +79,7 @@ Config.overrideWebpackConfig((currentConfiguration) => {Prior to `v3.3.39`, the option was called `Config.Bundling.overrideWebpackConfig()`.:::-Next, you need to refactor the [entry point](/docs/terminology#entry-point) file to first load the Skia WebAssembly binary before calling registerRoot():+Next, you need to refactor the [entry point](/docs/terminology/entry-point) file to first load the Skia WebAssembly binary before calling registerRoot():```ts twoslash title="src/index.ts"// @filename: ./Root.tsxdiff --git a/packages/docs/docs/ssr-node.mdx b/packages/docs/docs/ssr-node.mdxindex e61275aa79..4521fbfcd6 100644--- a/packages/docs/docs/ssr-node.mdx+++ b/packages/docs/docs/ssr-node.mdx@@ -11,7 +11,7 @@ These functions can be used in Node.js and Bun.Rendering a video takes three steps:-<Step>1</Step> Creating a <a href="/docs/terminology#bundle">Remotion Bundle</a>+<Step>1</Step> Creating a <a href="/docs/terminology/bundle">Remotion Bundle</a><br /><Step>2</Step> Select the composition to render and calculate its metadata<br />diff --git a/packages/docs/docs/terminology.md b/packages/docs/docs/terminology.mdindex ef4b47ba87..4d9270309c 100644--- a/packages/docs/docs/terminology.md+++ b/packages/docs/docs/terminology.md@@ -8,54 +8,35 @@ Here we try to explain the meaning of some terms that are used often in the docu## Composition-A composition is the definition of a renderable asset. It consists of a React component, width, height, FPS and a duration. It can be registered in the [Remotion Studio](#remotion-studio) by rendering a [`<Composition>`](/docs/composition) (to render video or audio render target) or a [`<Still>`](/docs/still).--In the [Remotion Player](/docs/terminology/player), you don't use the `<Composition>` component, rather you pass the component and metadata directly to the [`<Player>`](/docs/player).+[Composition](/docs/terminology/composition#composition)## Sequence-A [`<Sequence>`](/docs/sequence) is a built-in component that manipulates the time for its children. For example, you might have an animation that starts at frame `0`. If you would like to delay the animation, rather than refactoring the animation, you can wrap it in a `<Sequence>` and define a delay using the [`from`](/docs/sequence#from) prop.--Using a sequence, you can also trim the start and end of an animation by passing the [`durationInFrames`](/docs/sequence#durationinframes) prop.+[Sequence](/docs/terminology/sequence)## Composition ID-The string that you pass to the [`<Composition>` component](#composition). You need the composition ID to reference what you would like to render, for example: `npx remotion render src/index <composition-id>`. See: [Defining compositions](/docs/the-fundamentals#defining-compositions)+[Composition ID](/docs/terminology/composition#composition-id)## Bundle-Once you have written your video in React, you need to bundle it using Webpack in order to render it. The output artifact of the bundling process is called the bundle. It is a folder containing HTML, CSS, JavaScript and other assets.--When you render using the command line, a bundle is automatically generated. When you are using the Node.JS APIs, you need to use the [`bundle()`](/docs/bundle) method.+[Remotion Bundle](/docs/terminology/bundle)## Serve URL-A serve URL is a URL under which [the bundle](#bundle) is hosted. When rendering your video, Remotion will open a headless browser and visit that URL in order to make screenshots of it.--The most common use case for a serve URL is when rendering a video on Lambda, you need to deploy your [bundle](#bundle) to Amazon S3, which will turn [the bundle into a serve URL](/docs/lambda/cli/sites#create).--If you have a serve URL, you can also render a video locally by passing a serve URL instead of an [entry point](#entry-point). A serve URL doesn't have to be on S3, it can be on any provider that supports static deployments (e.g. Netlify, Vercel or GitHub pages) or even be a URL that runs on Localhost.+[Serve URL](/docs/terminology/serve-url)## Public Dir-The public dir is the directory in which you can put assets that can be loaded using [`staticFile()`](/docs/staticfile). By default, it is the directory that is named `public/` inside the [Remotion Root](#remotion-root).+[Public Dir](/docs/terminology/public-dir)## Remotion Root-The Remotion Root is the directory in which Remotion commands get executed in. It influences the default location of the [public dir](#public-dir), the `.env` file and the [config file](/docs/config) amongst others. To determine the Remotion Root, take the directory from which you execute commands or run scripts, and go upwards until you hit a directory that contains a `package.json` file. Many Remotion CLI commands also print the Remotion Root directory if you pass `--log=verbose`.+[Remotion Root](/docs/terminology/remotion-root)## Entry point-The entry point is the file where the Remotion CLI and Node.JS APIs will look for a Remotion project.--- By default in most templates, it is `src/index.ts`.-- In older projects, it may have an `.tsx` extension instead of `.ts`.-- The entry point can be passed to the render command, for example: `npx remotion render src/index.ts`.-- The entry point should call [`registerRoot()`](/docs/register-root).-- If you render a video using [`npx remotion render`](/docs/cli/render), the entry point is printed in grey.-- You can customize the entry point in the config file using [`Config.setEntryPoint()`](/docs/config#setentrypoint).--In the [Remotion Player](#remotion-player), there is no concept of an entry point. You directly pass a React component and metadata to the [`<Player>`](/docs/player/player).+[Entry point](/docs/terminology/entry-point)## Remotion Studio@@ -71,27 +52,16 @@ In the [Remotion Player](#remotion-player), there is no concept of an entry poin## Concurrency-For local rendering, concurrency refers to how many render processes are started in parallel. Each process holds a Chrome tab that renders web content and then screenshots it.--For rendering on Lambda, concurrency refers to the amount of Lambda functions that are spawned for a render.--Higher concurrency can lead to faster render times, but too high concurrency will lead to diminishing returns and to overload of the machines.+[Concurrency](/docs/terminology/concurrency)## Input props-Input props are data that can be passed to a render in order to parametrize the video. They can be obtained in two ways:--- This data is passed as actual React props to the component that you defined in your [composition](#composition)-- Using the [`getInputProps()`](/docs/get-input-props) function, you can retrieve the props even outside your component, for example to dynamically change the [duration or dimensions](/docs/dynamic-metadata).--In the [Remotion Studio](#remotion-studio), you can set [default props](/docs/composition#defaultprops) to serve as placeholder data for designing your video. If your input props don't override the default props, the default props will be used. See: [How props get resolved](/docs/props-resolution)--In the [Remotion Player](#remotion-player), there are no default props, but you can pass [`inputProps`](/docs/player/player#inputprops) directly to the [`<Player>`](/docs/player).+[Input Props](/docs/terminology/input-props)-## Cloud Run Url+## Cloud Run URL-For rendering on [Cloud Run](/docs/cloudrun), this url is the address you use to access the service that performs the render. It is possible to make use of a custom domain, by visiting the console in GCP and navigating to Cloud Run.+[Cloud Run URL](/docs/terminology/cloud-run-url)## Service Name-For rendering on [Cloud Run](/docs/cloudrun), this is the name of the deployed service. It can be used as an alternative to the full Cloud Run url.+[Service Name](/docs/terminology/service-name)diff --git a/packages/docs/docs/terminology/bundle.md b/packages/docs/docs/terminology/bundle.mdnew file mode 100644index 0000000000..ad8ec32571--- /dev/null+++ b/packages/docs/docs/terminology/bundle.md@@ -0,0 +1,19 @@+---+image: /generated/articles-docs-terminology-bundle.png+title: Remotion Bundle+crumb: "Terminology"+---++Once you have written your video in React, you need to bundle it using [Webpack](https://webpack.js.org/) in order to render it.+The output of the bundling process is called the "bundle".+It is a folder containing HTML, CSS, JavaScript and your assets.++When you render using the command line, a bundle is automatically generated (this is the `Bundling video` step).++You can use the [`bundle()`](/docs/bundle) API to create a bundle programmatically.++You can create a bundle on the CLI using the [`npx remotion bundle`](/docs/cli/bundle) command.++To bundle and deploy to S3, you can use the [`npx remotion lambda sites create`](/docs/lambda/cli/sites#create) command.++If you host a bundle under a URL, it becomes a [Serve URL](/docs/terminology/serve-url), which you can specify to render videos.diff --git a/packages/docs/docs/terminology/cloud-run-url.md b/packages/docs/docs/terminology/cloud-run-url.mdnew file mode 100644index 0000000000..2b04669ab4--- /dev/null+++ b/packages/docs/docs/terminology/cloud-run-url.md@@ -0,0 +1,7 @@+---+image: /generated/articles-docs-terminology-cloud-run-url.png+title: Cloud Run URL+crumb: "Terminology"+---++For rendering on [Cloud Run](/docs/cloudrun), this url is the address you use to access the service that performs the render. It is possible to make use of a custom domain, by visiting the console in GCP and navigating to Cloud Run.diff --git a/packages/docs/docs/terminology/composition.md b/packages/docs/docs/terminology/composition.mdnew file mode 100644index 0000000000..8e13e6ddaa--- /dev/null+++ b/packages/docs/docs/terminology/composition.md@@ -0,0 +1,29 @@+---+image: /generated/articles-docs-terminology-composition.png+title: Composition+crumb: "Terminology"+---++A composition is something you can render. It consists of:++<Step>1</Step> a React component <br />+<Step>2</Step> the canvas width and height <br/>+<Step>3</Step> a "frames per second" (FPS) value <br/>+<Step>4</Step> a duration value<br/>+<Step>5</Step> an identifier <code>id</code><br/><br/>++It can be registered in the [Remotion Studio](#remotion-studio) by rendering a [`<Composition>`](/docs/composition) component.+A composition with a duration of 1 frame is also called a [`<Still>`](/docs/still).++In the [Remotion Player](/docs/terminology/player), you don't use the `<Composition>` component, rather you pass the component and metadata directly to the [`<Player>`](/docs/player/player).++Not to be confused with [`<Sequence>`](/docs/terminology/sequence).++## Composition ID++The string that you pass as the `id` prop to the [`<Composition>` component](#composition).+You need the composition ID to reference what you would like to render, for example: `npx remotion render src/index <composition-id>`.++## See++- [Defining compositions](/docs/the-fundamentals#defining-compositions)diff --git a/packages/docs/docs/terminology/concurrency.md b/packages/docs/docs/terminology/concurrency.mdnew file mode 100644index 0000000000..6048d13941--- /dev/null+++ b/packages/docs/docs/terminology/concurrency.md@@ -0,0 +1,16 @@+---+image: /generated/articles-docs-terminology-concurrency.png+title: Concurrency+crumb: "Terminology"+---++Concurrency can mean different things depending on the context.++**In local rendering,** concurrency refers to how many browser tabs are opened in parallel during a render.+Each Chrome tab renders web content and then screenshots it.++**For rendering on Lambda,** concurrency refers to the amount of Lambda functions that are spawned for a render. You can control the Lambda concurrency using the [`framesPerLambda`](/docs/lambda/rendermediaonlambda#framesperlambda) option.++Each Lambda function usually opens just a single tab, unless you use the [`concurrencyPerLambda`](/docs/lambda/rendermediaonlambda#concurrencyperlambda) option to increase the amount of tabs per Lambda function.++Higher concurrency can lead to faster render times, but too high concurrency will lead to diminishing returns and to overload of the machines, which might crash a render.diff --git a/packages/docs/docs/terminology/entry-point.md b/packages/docs/docs/terminology/entry-point.mdnew file mode 100644index 0000000000..18bd453d14--- /dev/null+++ b/packages/docs/docs/terminology/entry-point.md@@ -0,0 +1,38 @@+---+image: /generated/articles-docs-terminology-entry-point.png+title: Entry point+crumb: "Terminology"+---++The entry point is the file where the [Remotion CLI](/docs/cli) and [`@remotion/renderer`](/docs/renderer) APIs will look for a Remotion project.++- By default in most templates, it is `src/index.ts`.+- In older projects, it may have an `.tsx` extension instead of `.ts`.+- The entry point can be passed to the render command, for example: `npx remotion render src/index.ts`.+- The entry point should call [`registerRoot()`](/docs/register-root).+- If you render a video using [`npx remotion render`](/docs/cli/render), the entry point is printed in grey.+- You can customize the default entry point in the config file using [`Config.setEntryPoint()`](/docs/config#setentrypoint).++## Which entry point is being used?++If you call [`npx remotion render`](/docs/cli/render), the entry point and the reason why it was chosen will be printed. The algorithm is as follows:++<Step>1</Step> If the entry point is directly passed, for example <code>npx remotion render src/index.ts</code>, use that.<br/>+<Step>2</Step> Otherwise, if a path was specified in the <a href="/docs/config">Configuration file</a> using <a href="/docs/config#setentrypoint"><code>Config.setEntryPoint()</code></a>, use that. <br/>+<Step>3</Step> Go through the following common paths and if one exists, use that:++<ul>+<li><code>src/index.ts</code></li>+<li><code>src/index.tsx</code></li>+<li><code>src/index.js</code></li>+<li><code>src/index.mjs</code></li>+<li><code>remotion/index.tsx</code></li>+<li><code>remotion/index.ts</code></li>+<li><code>remotion/index.js</code></li>+<li><code>remotion/index.mjs</code></li>+</ul>++## In the Player++In the [Remotion Player](/docs/terminology/player), there is no concept of an entry point.+You directly pass a React component and metadata to the [`<Player>`](/docs/player/player).diff --git a/packages/docs/docs/terminology/input-props.md b/packages/docs/docs/terminology/input-props.mdnew file mode 100644index 0000000000..146de52975--- /dev/null+++ b/packages/docs/docs/terminology/input-props.md@@ -0,0 +1,15 @@+---+image: /generated/articles-docs-terminology-input-props.png+title: Input Props+crumb: "Terminology"+---++Input props are data that can be passed to a render in order to parametrize the video. They can be obtained in two ways:++- This data is passed as actual React props to the component that you defined in your [composition](#composition)+- This data is passed as actual React props to the component that you defined in your [composition](#composition)+- Using the [`getInputProps()`](/docs/get-input-props) function, you can retrieve the props even outside your component, for example to dynamically change the [duration or dimensions](/docs/dynamic-metadata).++In the [Remotion Studio](#remotion-studio), you can set [default props](/docs/composition#defaultprops) to serve as placeholder data for designing your video. If your input props don't override the default props, the default props will be used. See: [How props get resolved](/docs/props-resolution)++In the [Remotion Player](#remotion-player), there are no default props, but you can pass [`inputProps`](/docs/player/player#inputprops) directly to the [`<Player>`](/docs/player).diff --git a/packages/docs/docs/terminology/player.md b/packages/docs/docs/terminology/player.mdindex a8b43c4bce..094a22590b 100644--- a/packages/docs/docs/terminology/player.md+++ b/packages/docs/docs/terminology/player.md@@ -1,4 +1,5 @@---+image: /generated/articles-docs-terminology-player.pngtitle: Remotion Playercrumb: "Terminology"---diff --git a/packages/docs/docs/terminology/public-dir.md b/packages/docs/docs/terminology/public-dir.mdnew file mode 100644index 0000000000..6aca0a32fa--- /dev/null+++ b/packages/docs/docs/terminology/public-dir.md@@ -0,0 +1,8 @@+---+image: /generated/articles-docs-terminology-public-dir.png+title: Public directory+crumb: "Terminology"+---++The public dir(ectory) is the directory in which you can put assets that can be loaded using [`staticFile()`](/docs/staticfile).+By default, it is the directory that is named `public/` inside the [Remotion Root](/docs/terminology/remotion-root).diff --git a/packages/docs/docs/terminology/remotion-root.md b/packages/docs/docs/terminology/remotion-root.mdnew file mode 100644index 0000000000..92b6187f49--- /dev/null+++ b/packages/docs/docs/terminology/remotion-root.md@@ -0,0 +1,13 @@+---+image: /generated/articles-docs-terminology-remotion-root.png+title: Remotion Root+crumb: "Terminology"+---++The Remotion Root is the directory in which Remotion commands get executed in.+It influences the default location of the [public dir](#public-dir), the `.env` file and the [config file](/docs/config) amongst others.++## Which directory is the Remotion Root?++To determine the Remotion Root, take the directory from which you execute commands or run scripts, and go upwards until you hit a directory that contains a `package.json` file.+Many Remotion CLI commands also print the Remotion Root directory if you pass `--log=verbose`.diff --git a/packages/docs/docs/terminology/sequence.md b/packages/docs/docs/terminology/sequence.mdnew file mode 100644index 0000000000..f9797825c0--- /dev/null+++ b/packages/docs/docs/terminology/sequence.md@@ -0,0 +1,24 @@+---+image: /generated/articles-docs-terminology-sequence.png+title: Sequence+crumb: "Terminology"+---++[`<Sequence>`](/docs/sequence) is a built-in component in Remotion that:++- Absolutely positions content+- Allows you to time-shift elements++Think of it as the equivalent of a "layer" in After Effects or Photoshop.+Not to be confused with [`<Composition>`](/docs/terminology/composition).++## Layouting++A [`<Sequence>`](/docs/sequence) by default will also be absolutely positioned in the DOM, so you can use it to overlay elements on top of each other.++## Time-shifting++Consider an element which starts animating at frame 0.+If you would like to delay the animation, rather than refactoring the animation, you can wrap it in a `<Sequence>` and define a delay using the [`from`](/docs/sequence#from) prop.++Using a sequence, you can also trim the start and end of an animation by passing the [`durationInFrames`](/docs/sequence#durationinframes) prop.diff --git a/packages/docs/docs/terminology/serve-url.md b/packages/docs/docs/terminology/serve-url.mdnew file mode 100644index 0000000000..20a1914b2e--- /dev/null+++ b/packages/docs/docs/terminology/serve-url.md@@ -0,0 +1,14 @@+---+image: /generated/articles-docs-terminology-serve-url.png+title: Serve URL+crumb: "Terminology"+---++A Serve URL is a URL under which [a Remotion Bundle](#bundle) is hosted.+When rendering your video, Remotion will open a headless browser and visit that URL in order to make screenshots of it.++The most common use case for a Serve URL is when rendering a video on Lambda, you need to deploy your [bundle](#bundle) to Amazon S3, which will [make it a Serve URL](/docs/lambda/cli/sites#create).++If you have a Serve URL, you can also render a video locally by passing a serve URL instead of an [entry point](#entry-point).++A serve URL doesn't have to be on S3, it can be on any provider that supports static deployments (e.g. Netlify, Vercel or GitHub pages) or even be a URL that runs on localhost.diff --git a/packages/docs/docs/terminology/service-name.md b/packages/docs/docs/terminology/service-name.mdnew file mode 100644index 0000000000..6c6a631025--- /dev/null+++ b/packages/docs/docs/terminology/service-name.md@@ -0,0 +1,7 @@+---+image: /generated/articles-docs-terminology-service-name.png+title: Service Name+crumb: "Terminology"+---++For rendering on [Cloud Run](/docs/cloudrun), this is the name of the deployed service. It can be used as an alternative to the full Cloud Run URL.diff --git a/packages/docs/docs/terminology/studio.md b/packages/docs/docs/terminology/studio.mdindex 7807b1ef73..516e814425 100644--- a/packages/docs/docs/terminology/studio.md+++ b/packages/docs/docs/terminology/studio.md@@ -1,12 +1,14 @@---+image: /generated/articles-docs-terminology-studio.pngtitle: Remotion Studiocrumb: "Terminology"---The [Remotion Studio](/docs/studio) is the editor that opens that when you run [`npx remotion studio`](/docs/cli/studio).-It allows fast editing and playback of [compositions](/docs/terminology/compositions).-It is included in the [`@remotion/cli`](https://npmjs.org/packages/@remotion/cli) package.-It is not the same as the [Remotion Player](/docs/player).+It allows for fast editing and playback of [compositions](/docs/terminology/compositions).+It is included in the [`@remotion/cli`](https://npmjs.org/packages/@remotion/cli) package.++Not to be confused with the [Remotion Player](/docs/player).You can [deploy the Remotion Studio](/docs/deploy-studio) to render on a VPS.Since v4.0.93, the Studio is also embedded in every [Remotion Bundle](/docs/terminology/bundle), albeit it does not support rendering.diff --git a/packages/docs/docs/troubleshooting/loading-root-component.md b/packages/docs/docs/troubleshooting/loading-root-component.mdindex cb74d7c4ef..acd0f2ab8f 100644--- a/packages/docs/docs/troubleshooting/loading-root-component.md+++ b/packages/docs/docs/troubleshooting/loading-root-component.md@@ -11,7 +11,7 @@ If you get an error message:A delayRender() "Loading root component" was called but not cleared after 28000ms```-You have specified an [entry point](/docs/terminology#entry-point) that does not call [`registerRoot()`](/docs/register-root).+You have specified an [entry point](/docs/terminology/entry-point) that does not call [`registerRoot()`](/docs/register-root).In most of the templates, the entry point is `src/index.ts`.@@ -26,7 +26,7 @@ In the CLI, the entry point is passed as an argument to the render command:npx remotion render [entry-point]```-In the [`bundle()`](/docs/bundle) and [`deploySite()`](/docs/lambda/deploysite) Node.JS apis, you pass the entry point via the [`entryPoint`](/docs/terminology#entry-point) property.+In the [`bundle()`](/docs/bundle) and [`deploySite()`](/docs/lambda/deploysite) Node.JS apis, you pass the entry point via the [`entryPoint`](/docs/terminology/entry-point) property.## See alsodiff --git a/packages/docs/docs/using-audio.md b/packages/docs/docs/using-audio.mdindex 2a5ca145b0..e72a82347e 100644--- a/packages/docs/docs/using-audio.md+++ b/packages/docs/docs/using-audio.md@@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem';## Import audio[Put an audio file into the `public/` folder](/docs/assets) and use [`staticFile()`](/docs/staticfile) to reference it.-Add an [`<Audio/>`](/docs/audio) tag to your [composition](/docs/terminology#composition) to add sound to it.+Add an [`<Audio/>`](/docs/audio) tag to your component to add sound to it.```tsx twoslashimport { AbsoluteFill, Audio, staticFile } from "remotion";diff --git a/packages/docs/docs/video.md b/packages/docs/docs/video.mdindex 918055c116..48774e1d81 100644--- a/packages/docs/docs/video.md+++ b/packages/docs/docs/video.md@@ -193,7 +193,7 @@ export const MyComposition = () => {### `acceptableTimeShiftInSeconds`<AvailableFrom v="3.2.42" />-In the [Studio](/docs/terminology#remotion-studio) or in the [Remotion Player](/docs/player), Remotion will seek the video if it gets too much out of sync with Remotion's internal time - be it due to the video loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.+In the [Studio](/docs/terminology/studio) or in the [Remotion Player](/docs/player), Remotion will seek the video if it gets too much out of sync with Remotion's internal time - be it due to the video loading or the page being too slow to keep up in real-time. By default, a seek is triggered if `0.45` seconds of time shift is encountered. Using this prop, you can customize the threshold.### `allowAmplificationDuringRender`<AvailableFrom v="3.3.17" />diff --git a/packages/docs/learn/2022-12-22-apple-wow.md b/packages/docs/learn/2022-12-22-apple-wow.mdindex 2c23b7eb45..6070788087 100644--- a/packages/docs/learn/2022-12-22-apple-wow.md+++ b/packages/docs/learn/2022-12-22-apple-wow.md@@ -67,7 +67,7 @@ yarn create video --blank## Composition setup-A [`<Composition>`](https://www.remotion.dev/docs/terminology#composition) defines the dimensions and duration of the video. In the `src/Root.tsx` file, adjust the width and height to the following:+A [`<Composition>`](https://www.remotion.dev/docs/terminology/composition) defines the dimensions and duration of the video. In the `src/Root.tsx` file, adjust the width and height to the following:```tsx twoslash title="src/Root.tsx"import { Composition } from "remotion";@@ -210,7 +210,7 @@ export const Shrinking: React.FC<{interpolate(frame, [60, 90], [1, 0], {extrapolateLeft: "clamp",extrapolateRight: "clamp",- })+ }),),}}>diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 5a516c7a06..6bb784ab66 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -50,7 +50,6 @@ module.exports = {],},"cli/benchmark",- "cli/install","cli/versions","cli/upgrade","cli/ffmpeg",@@ -764,7 +763,21 @@ module.exports = {type: "doc",id: "terminology",},- items: ["terminology/player", "terminology/studio"],+ items: [+ "terminology/player",+ "terminology/studio",+ "terminology/concurrency",+ "terminology/input-props",+ "terminology/cloud-run-url",+ "terminology/service-name",+ "terminology/entry-point",+ "terminology/remotion-root",+ "terminology/public-dir",+ "terminology/serve-url",+ "terminology/bundle",+ "terminology/sequence",+ "terminology/composition",+ ],},"resources",{diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex 41468ac4ee..afeb2736dd 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -2556,6 +2556,97 @@ export const articles = [compId: "articles-docs-target-closed",crumb: "Troubleshooting",},+ {+ id: "terminology/bundle",+ title: "Remotion Bundle",+ relativePath: "docs/terminology/bundle.md",+ compId: "articles-docs-terminology-bundle",+ crumb: "Terminology",+ },+ {+ id: "terminology/cloud-run-url",+ title: "Cloud Run URL",+ relativePath: "docs/terminology/cloud-run-url.md",+ compId: "articles-docs-terminology-cloud-run-url",+ crumb: "Terminology",+ },+ {+ id: "terminology/composition",+ title: "Composition",+ relativePath: "docs/terminology/composition.md",+ compId: "articles-docs-terminology-composition",+ crumb: "Terminology",+ },+ {+ id: "terminology/concurrency",+ title: "Concurrency",+ relativePath: "docs/terminology/concurrency.md",+ compId: "articles-docs-terminology-concurrency",+ crumb: "Terminology",+ },+ {+ id: "terminology/entry-point",+ title: "Entry point",+ relativePath: "docs/terminology/entry-point.md",+ compId: "articles-docs-terminology-entry-point",+ crumb: "Terminology",+ },+ {+ id: "terminology/input-props",+ title: "Input Props",+ relativePath: "docs/terminology/input-props.md",+ compId: "articles-docs-terminology-input-props",+ crumb: "Terminology",+ },+ {+ id: "terminology/player",+ title: "Remotion Player",+ relativePath: "docs/terminology/player.md",+ compId: "articles-docs-terminology-player",+ crumb: "Terminology",+ },+ {+ id: "terminology/public-dir",+ title: "Public directory",+ relativePath: "docs/terminology/public-dir.md",+ compId: "articles-docs-terminology-public-dir",+ crumb: "Terminology",+ },+ {+ id: "terminology/remotion-root",+ title: "Remotion Root",+ relativePath: "docs/terminology/remotion-root.md",+ compId: "articles-docs-terminology-remotion-root",+ crumb: "Terminology",+ },+ {+ id: "terminology/sequence",+ title: "Sequence",+ relativePath: "docs/terminology/sequence.md",+ compId: "articles-docs-terminology-sequence",+ crumb: "Terminology",+ },+ {+ id: "terminology/serve-url",+ title: "Serve URL",+ relativePath: "docs/terminology/serve-url.md",+ compId: "articles-docs-terminology-serve-url",+ crumb: "Terminology",+ },+ {+ id: "terminology/service-name",+ title: "Service Name",+ relativePath: "docs/terminology/service-name.md",+ compId: "articles-docs-terminology-service-name",+ crumb: "Terminology",+ },+ {+ id: "terminology/studio",+ title: "Remotion Studio",+ relativePath: "docs/terminology/studio.md",+ compId: "articles-docs-terminology-studio",+ crumb: "Terminology",+ },{id: "terminology",title: "Terminology",diff --git a/packages/docs/static/generated/articles-docs-terminology-bundle.png b/packages/docs/static/generated/articles-docs-terminology-bundle.pngnew file mode 100644index 0000000000..9e435c8883Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-bundle.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-cloud-run-url.png b/packages/docs/static/generated/articles-docs-terminology-cloud-run-url.pngnew file mode 100644index 0000000000..3f23ca4ab9Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-cloud-run-url.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-composition.png b/packages/docs/static/generated/articles-docs-terminology-composition.pngnew file mode 100644index 0000000000..8b86add13eBinary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-composition.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-concurrency.png b/packages/docs/static/generated/articles-docs-terminology-concurrency.pngnew file mode 100644index 0000000000..abeb9c051aBinary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-concurrency.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-entry-point.png b/packages/docs/static/generated/articles-docs-terminology-entry-point.pngnew file mode 100644index 0000000000..3724b4fc51Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-entry-point.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-input-props.png b/packages/docs/static/generated/articles-docs-terminology-input-props.pngnew file mode 100644index 0000000000..7976e6be5dBinary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-input-props.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-player.png b/packages/docs/static/generated/articles-docs-terminology-player.pngnew file mode 100644index 0000000000..103641694dBinary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-player.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-public-dir.png b/packages/docs/static/generated/articles-docs-terminology-public-dir.pngnew file mode 100644index 0000000000..acda5c3de7Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-public-dir.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-remotion-root.png b/packages/docs/static/generated/articles-docs-terminology-remotion-root.pngnew file mode 100644index 0000000000..460c176ecaBinary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-remotion-root.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-sequence.png b/packages/docs/static/generated/articles-docs-terminology-sequence.pngnew file mode 100644index 0000000000..c20b7eb6c8Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-sequence.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-serve-url.png b/packages/docs/static/generated/articles-docs-terminology-serve-url.pngnew file mode 100644index 0000000000..1262a0b655Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-serve-url.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-service-name.png b/packages/docs/static/generated/articles-docs-terminology-service-name.pngnew file mode 100644index 0000000000..12dcc4c713Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-service-name.png differdiff --git a/packages/docs/static/generated/articles-docs-terminology-studio.png b/packages/docs/static/generated/articles-docs-terminology-studio.pngnew file mode 100644index 0000000000..2586675315Binary files /dev/null and b/packages/docs/static/generated/articles-docs-terminology-studio.png differdiff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a34421c527..887e6d3b85 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -222,6 +222,9 @@ importers:react-dom:specifier: 18.2.0version: 18.2.0([email protected])+ source-map:+ specifier: 0.7.3+ version: 0.7.3vitest:specifier: 0.31.1version: 0.31.1([email protected])@@ -20787,7 +20790,6 @@ packages:resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==}engines: {node: '>= 8'}- dev: falseresolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}