🎥 Make videos programmatically with React
improve props
Jonny Burger8b5b744868a7
diff --git a/packages/docs/docs/cloudrun/rendermediaoncloudrun.md b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdxsimilarity index 92%rename from packages/docs/docs/cloudrun/rendermediaoncloudrun.mdrename to packages/docs/docs/cloudrun/rendermediaoncloudrun.mdxindex 9c08ee1bd1..c538851b25 100644--- a/packages/docs/docs/cloudrun/rendermediaoncloudrun.md+++ b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx@@ -6,7 +6,14 @@ crumb: "Cloud Run API"---<ExperimentalBadge>-<p>Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs may change in any version and documentation is not yet finished. See the <a href="https://remotion.dev/changelog">changelog to stay up to date with breaking changes</a>.</p>+ <p>+ Cloud Run is in <a href="/docs/cloudrun-alpha">Alpha</a>, which means APIs+ may change in any version and documentation is not yet finished. See the{" "}+ <a href="https://remotion.dev/changelog">+ changelog to stay up to date with breaking changes+ </a>+ .+ </p></ExperimentalBadge>Kicks off a media rendering process on Remotion Cloud Run.@@ -83,7 +90,10 @@ See also [`renderMedia() -> codec`](/docs/renderer/render-media#codec)._optional_-React props that are passed to your composition. You define the shape of the props that the component accepts.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `privacy?`@@ -128,21 +138,21 @@ See [`renderMedia() -> jpegQuality`](/docs/renderer/render-media#jpegquality)._optional_-<Options id="audio-bitrate"/>+<Options id="audio-bitrate" />### `videoBitrate?`_optional_-<Options id="video-bitrate"/>+<Options id="video-bitrate" />### `bufferSize?`<AvailableFrom v="4.0.78" />-<Options id="buffer-size"/>+<Options id="buffer-size" />### `maxRate?`<AvailableFrom v="4.0.78" />-<Options id="max-rate"/>+<Options id="max-rate" />### `proResProfile?`@@ -224,7 +234,7 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.#### `gl`-<Options id="gl" />+<Options id="gl" />### `muted?`@@ -246,7 +256,7 @@ Overrides default composition height.### `logLevel?`-<Options id="log"/>+<Options id="log" />### `outName?`diff --git a/packages/docs/docs/cloudrun/renderstilloncloudrun.md b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdxsimilarity index 94%rename from packages/docs/docs/cloudrun/renderstilloncloudrun.mdrename to packages/docs/docs/cloudrun/renderstilloncloudrun.mdxindex fd7b735a70..7d18ff7235 100644--- a/packages/docs/docs/cloudrun/renderstilloncloudrun.md+++ b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx@@ -73,7 +73,10 @@ The `id` of the [composition](/docs/composition) you want to render._optional_-React props that are passed to your composition. You define the shape of the props that the component accepts.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `privacy?`diff --git a/packages/docs/docs/lambda/getcompositionsonlambda.md b/packages/docs/docs/lambda/getcompositionsonlambda.mdxsimilarity index 91%rename from packages/docs/docs/lambda/getcompositionsonlambda.mdrename to packages/docs/docs/lambda/getcompositionsonlambda.mdxindex 64c6a7489e..d2d3c76c8e 100644--- a/packages/docs/docs/lambda/getcompositionsonlambda.md+++ b/packages/docs/docs/lambda/getcompositionsonlambda.mdx@@ -55,7 +55,10 @@ A URL pointing to a Remotion project. Use [`deploySite()`](/docs/lambda/deploysi### `inputProps`-React props that can be obtained using [`getInputProps()`](/docs/get-input-props) from inside the React component while evaluating the list of compositions.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `envVariables?`diff --git a/packages/docs/docs/lambda/rendermediaonlambda.md b/packages/docs/docs/lambda/rendermediaonlambda.mdxsimilarity index 97%rename from packages/docs/docs/lambda/rendermediaonlambda.mdrename to packages/docs/docs/lambda/rendermediaonlambda.mdxindex 9e5713f02a..a7a49c32d2 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.md+++ b/packages/docs/docs/lambda/rendermediaonlambda.mdx@@ -88,7 +88,10 @@ The `id` of the [composition](/docs/composition) you want to render._optional since v3.2.27_-React props that are passed to your composition. You define the shape of the props that the component accepts.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `codec`diff --git a/packages/docs/docs/lambda/renderstillonlambda.md b/packages/docs/docs/lambda/renderstillonlambda.mdxsimilarity index 95%rename from packages/docs/docs/lambda/renderstillonlambda.mdrename to packages/docs/docs/lambda/renderstillonlambda.mdxindex fbe44cdee6..2f0db3ec37 100644--- a/packages/docs/docs/lambda/renderstillonlambda.md+++ b/packages/docs/docs/lambda/renderstillonlambda.mdx@@ -61,7 +61,10 @@ The `id` of the [composition](/docs/composition) you want to render..### `inputProps`-React props that are passed to your composition. You define the shape of the props that the component accepts.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `privacy`@@ -207,7 +210,7 @@ Either:### `deleteAfter?`<AvailableFrom v="4.0.32"/>-<Options id="delete-after"/>+<Options id="delete-after" />### `chromiumOptions?`@@ -229,7 +232,7 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.#### `gl`-<Options id="gl" />+<Options id="gl" />#### `userAgent`<AvailableFrom v="3.3.83"/>@@ -245,7 +248,7 @@ Specify a specific bucket name to be used. [This is not recommended](/docs/lambd_optional_-<Options id="log"/>+<Options id="log" />Logs can be read through the CloudWatch URL that this function returns.diff --git a/packages/docs/docs/renderer/get-compositions.mdx b/packages/docs/docs/renderer/get-compositions.mdxindex 61a0a658b2..8dbaa8c28d 100644--- a/packages/docs/docs/renderer/get-compositions.mdx+++ b/packages/docs/docs/renderer/get-compositions.mdx@@ -36,7 +36,10 @@ An object containing one or more of the following options:_optional in <5.0, required from 5.0_-Define custom props that can be retrieved using [`getInputProps()`](/docs/get-input-props) at runtime. Useful for [setting a dynamic duration or dimensions](/docs/dynamic-metadata) for your video.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).#### `puppeteerInstance?`<AvailableFrom v="3.0.0" />diff --git a/packages/docs/docs/renderer/render-frames.md b/packages/docs/docs/renderer/render-frames.mdxsimilarity index 95%rename from packages/docs/docs/renderer/render-frames.mdrename to packages/docs/docs/renderer/render-frames.mdxindex 18047ec514..e365c82fc3 100644--- a/packages/docs/docs/renderer/render-frames.md+++ b/packages/docs/docs/renderer/render-frames.mdx@@ -5,7 +5,7 @@ title: renderFrames()crumb: "@remotion/renderer"----import {AngleChangelog} from '../../components/AngleChangelog';+import { AngleChangelog } from "../../components/AngleChangelog";_Part of the `@remotion/renderer` package._@@ -72,7 +72,10 @@ A `string` specifying the directory (absolute path) to which frames should be sa### `inputProps`-[Custom props which will be passed to the component.](/docs/parameterized-rendering) Useful for rendering videos with dynamic content. Can be an object of any shape.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `serveUrl`@@ -124,7 +127,7 @@ Disables audio output. This option may only be set in combination with a video c### `logLevel?`<AvailableFrom v="4.0.0"/>-<Options id="log"/>+<Options id="log" />### `puppeteerInstance?`@@ -270,7 +273,7 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.#### `headless?`-<Options id="disable-headless" />+<Options id="disable-headless" />#### `gl?`diff --git a/packages/docs/docs/renderer/render-media.mdx b/packages/docs/docs/renderer/render-media.mdxindex d4051c1a67..4e97b32fa1 100644--- a/packages/docs/docs/renderer/render-media.mdx+++ b/packages/docs/docs/renderer/render-media.mdx@@ -79,17 +79,10 @@ Choose a suitable codec for your output media. Refer to the [Encoding guide](/do_object - optional_-An object of arbitrary shape that:--<Step>1</Step> will be passed as <a href="/docs/parameterized-rendering">- props to your component-</a>-<br />-<Step>2</Step> can be retrieved using <a href="/docs/get-input-props">- <code>getInputProps()</code>-</a>-.<br />-<br />+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).Make sure to also pass the same `inputProps` to [`selectComposition()`](/docs/renderer/select-composition) for this to work correctly.diff --git a/packages/docs/docs/renderer/render-still.md b/packages/docs/docs/renderer/render-still.mdxsimilarity index 93%rename from packages/docs/docs/renderer/render-still.mdrename to packages/docs/docs/renderer/render-still.mdxindex e09e477bfc..6ebd37f7a8 100644--- a/packages/docs/docs/renderer/render-still.md+++ b/packages/docs/docs/renderer/render-still.mdx@@ -5,7 +5,7 @@ title: renderStill()crumb: "@remotion/renderer"----import {AngleChangelog} from '../../components/AngleChangelog';+import { AngleChangelog } from "../../components/AngleChangelog";_Part of the `@remotion/renderer` package. Available from v2.3._@@ -80,7 +80,10 @@ An absolute path to where the frame should be rendered to._optional_-[Custom props which will be passed to the component.](/docs/parameterized-rendering) Useful for rendering videos with dynamic content. Can be an object of any shape.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `frame?`@@ -122,7 +125,7 @@ An object containing key-value pairs of environment variables which will be inje### `logLevel?`<AvailableFrom v="4.0.115"/>-<Options id="log"/>+<Options id="log" />### `overwrite?`@@ -182,7 +185,7 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.#### `headless?`-<Options id="disable-headless" />+<Options id="disable-headless" />#### `gl`diff --git a/packages/docs/docs/renderer/select-composition.mdx b/packages/docs/docs/renderer/select-composition.mdxindex db57a3c155..59be912ed8 100644--- a/packages/docs/docs/renderer/select-composition.mdx+++ b/packages/docs/docs/renderer/select-composition.mdx@@ -48,7 +48,10 @@ The [ID](/docs/terminology/composition#composition-id) of the composition you wa_optional in <5.0, required from 5.0_-React props that can be obtained using [`getInputProps()`](/docs/get-input-props) from inside your project.+[Input Props to pass to the selected composition of your video.](/docs/parameterized-rendering#passing-input-props-in-the-cli).+Must be a JSON object.+From the root component the props can be read using [`getInputProps()`](/docs/get-input-props).+You may transform input props using [`calculateMetadata()`](/docs/calculate-metadata).### `logLevel?`