🎥 Make videos programmatically with React
remotion.dev/terminology
Jonny Burger1eb1aadc8fbe
diff --git a/packages/docs/docs/terminology.md b/packages/docs/docs/terminology.mdnew file mode 100644index 0000000000..cc0e9c0a13--- /dev/null+++ b/packages/docs/docs/terminology.md@@ -0,0 +1,72 @@+---+title: Terminology+---++We try to define the meaning some terms here are used often in the documentation, but are not self-explanatory. Which terms would you like to have explained? [Let us know](https://remotion.dev/issue)!++## 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 Preview](#remotion-preview) by rendering a [`<Composition>`](/docs/composition) (to render video or audio render target) or a [`<Still>`](/docs/still).++In the [Remotion Player](#remotion-player), you don't use the `<Composition>` component, rather you pass the component and metadata directly to the [`<Player>`](/docs/player).++## 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.++## 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.++## 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.++## 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).++## 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`.++## 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.tsx`. The entry point can be passed to the render command, for example: `npx remotion render src/index.tsx`. The entry point should call [`registerRoot()`](/docs/register-root).++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/api).++## Remotion Preview++The Remotion Preview is the editor that opens that when you run `npx remotion preview ` followed by the [entry point](#entry-point). It allows fast editing and playback of [compositions](#composition). It is included in the `@remotion/cli` package. It is not the same as the [Remotion Player](#remotion-player).++## Remotion Player++The Remotion Player is a React component [`<Player>`](/docs/player) that can be embedded into a React app. It can be used by installing the `@remotion/player` package into a React app (for example: Create React App, Next.JS, Remix). It is not the same as the [Remotion Preview](#remotion-preview).++## 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.++## 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 Preview](#remotion-preview), you can set [default props](/docs/composition#defaultprops) to serve as placeholder data for desigining your video. If your input props don't override the default props, the default props will be used.++In the [Remotion Player](#remotion-player), there are no default props, but you can pass [`inputProps`](/docs/player/api#inputprops) directly to the [`<Player>`](/docs/player).diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 495dc843e2..eedf1eb0e0 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -331,21 +331,7 @@ module.exports = {"staticfile-remote-urls",],},- {- type: "category",- label: "Miscellaneous",- items: [- "brownfield",- "chromium-flags",- "video-vs-offthreadvideo",- "prereleases",- "gpu",- "react-18",- "miscellaneous/typescript-aliases",- "miscellaneous/render-all",- "miscellaneous/render-in-browser",- ],- },+{type: "category",label: "Snippets",@@ -361,8 +347,27 @@ module.exports = {href: "/docs/api",label: "API Reference",},- "3-0-migration",- "2-0-migration",+ "terminology",+ {+ type: "category",+ label: "Migration guides",+ items: ["3-0-migration", "2-0-migration"],+ },+ {+ type: "category",+ label: "Miscellaneous",+ items: [+ "brownfield",+ "chromium-flags",+ "video-vs-offthreadvideo",+ "prereleases",+ "gpu",+ "react-18",+ "miscellaneous/typescript-aliases",+ "miscellaneous/render-all",+ "miscellaneous/render-in-browser",+ ],+ },"license",],};diff --git a/vercel.json b/vercel.jsonindex 822f49b481..9d15ef1697 100644--- a/vercel.json+++ b/vercel.json@@ -49,6 +49,11 @@"source": "/api","destination": "https://remotion.dev/docs/api","permanent": false+ },+ {+ "source": "/terminology",+ "destination": "https://remotion.dev/docs/terminology",+ "permanent": false}]}