🎥 Make videos programmatically with React
docs
Jonny Burger6357f1fe2a55
diff --git a/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdxindex c0b5005379..c89a2a176b 100644--- a/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx+++ b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdx@@ -2,12 +2,17 @@image: /generated/articles-docs-cloudrun-rendermediaoncloudrun.pngid: rendermediaoncloudruntitle: renderMediaOnCloudrun()-crumb: "Cloud Run API"+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>.+ 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>@@ -22,18 +27,18 @@ A [site](/docs/cloudrun/deploysite) or a [Serve URL](/docs/terminology/serve-url// @module: esnext// @target: es2017// ---cut----import { renderMediaOnCloudrun } from "@remotion/cloudrun/client";+import {renderMediaOnCloudrun} from '@remotion/cloudrun/client';const result = await renderMediaOnCloudrun({- region: "us-east1",- serviceName: "remotion-render-bds9aab",- composition: "MyVideo",+ region: 'us-east1',+ serviceName: 'remotion-render-bds9aab',+ composition: 'MyVideo',serveUrl:- "https://storage.googleapis.com/remotioncloudrun-123asd321/sites/abcdefgh",- codec: "h264",+ 'https://storage.googleapis.com/remotioncloudrun-123asd321/sites/abcdefgh',+ codec: 'h264',});-if (result.type === "success") {+if (result.type === 'success') {console.log(result.bucketName);console.log(result.renderId);}@@ -81,11 +86,11 @@ Audio codecs `mp3`, `aac` and `wav` are also supported.See also [`renderMedia() -> codec`](/docs/renderer/render-media#codec).-### `metadata`+### `metadata`<AvailableFrom v="4.0.216" />_object - optional_-An object containing additional information about the video output. This can include properties such as Author, comment, and other relevant data to provide context and enhance the video’s usability.+Metadata to be embedded in the video. This can include properties such as `Author` and `Comment`.### `inputProps?`diff --git a/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdxindex 9d7d7c3f89..08be20b98c 100644--- a/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx+++ b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdx@@ -2,12 +2,17 @@image: /generated/articles-docs-cloudrun-renderstilloncloudrun.pngid: renderstilloncloudruntitle: renderStillOnCloudrun()-crumb: "Cloud Run API"+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>.+ 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>@@ -22,18 +27,18 @@ A [site](/docs/cloudrun/deploysite) or a [Serve URL](/docs/terminology/serve-url// @module: esnext// @target: es2017// ---cut----import { renderStillOnCloudrun } from "@remotion/cloudrun/client";+import {renderStillOnCloudrun} from '@remotion/cloudrun/client';const result = await renderStillOnCloudrun({- region: "us-east1",- serviceName: "remotion-render-bds9aab",- composition: "MyStill",- imageFormat: "png",+ region: 'us-east1',+ serviceName: 'remotion-render-bds9aab',+ composition: 'MyStill',+ imageFormat: 'png',serveUrl:- "https://storage.googleapis.com/remotioncloudrun-123asd321/sites/abcdefgh",+ 'https://storage.googleapis.com/remotioncloudrun-123asd321/sites/abcdefgh',});-if (result.type === "success") {+if (result.type === 'success') {console.log(result.bucketName);console.log(result.renderId);}@@ -59,11 +64,11 @@ _optional. Required if cloudRunUrl not supplied_The name of the Cloud Run service which should be used to perform the render. This is used in conjunction with the region to determine the service endpoint, as the same service name can exist across multiple regions.-### `metadata`+### `metadata`<AvailableFrom v="4.0.216" />_object - optional_-An object containing additional information about the video output. This can include properties such as Author, comment, and other relevant data to provide context and enhance the video’s usability.+Metadata to be embedded in the video. This can include properties such as `Author` and `Comment`.### `region`diff --git a/packages/docs/docs/lambda/rendermediaonlambda.mdx b/packages/docs/docs/lambda/rendermediaonlambda.mdxindex 9b2fc65acd..cd0d417e85 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.mdx+++ b/packages/docs/docs/lambda/rendermediaonlambda.mdx@@ -2,10 +2,10 @@image: /generated/articles-docs-lambda-rendermediaonlambda.pngid: rendermediaonlambdatitle: renderMediaOnLambda()-crumb: "Lambda API"+crumb: 'Lambda API'----import { MinimumFramesPerLambda } from "../../components/lambda/default-frames-per-lambda";+import {MinimumFramesPerLambda} from '../../components/lambda/default-frames-per-lambda';Kicks off a render process on Remotion Lambda. The progress can be tracked using [getRenderProgress()](/docs/lambda/getrenderprogress).@@ -18,15 +18,15 @@ A [site](/docs/lambda/deploysite) or a [Serve URL](/docs/terminology/serve-url)// @module: esnext// @target: es2017// ---cut----import { renderMediaOnLambda } from "@remotion/lambda/client";+import {renderMediaOnLambda} from '@remotion/lambda/client';-const { bucketName, renderId } = await renderMediaOnLambda({- region: "us-east-1",- functionName: "remotion-render-bds9aab",- composition: "MyVideo",+const {bucketName, renderId} = await renderMediaOnLambda({+ region: 'us-east-1',+ functionName: 'remotion-render-bds9aab',+ composition: 'MyVideo',serveUrl:- "https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw",- codec: "h264",+ 'https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw',+ codec: 'h264',});```@@ -84,11 +84,11 @@ A URL pointing to a Remotion project. Use [`deploySite()`](/docs/lambda/deploysiThe `id` of the [composition](/docs/composition) you want to render.-### `metadata`+### `metadata`<AvailableFrom v="4.0.216" />_object - optional_-An object containing additional information about the video output. This can include properties such as Author, comment, and other relevant data to provide context and enhance the video’s usability.+Metadata to be embedded in the video. This can include properties such as `Author` and `Comment`.### `inputProps`@@ -313,10 +313,10 @@ _optional, available from v3.2.30_If specified, Remotion will send a POST request to the provided endpoint to notify your application when the Lambda rendering process finishes, errors out or times out.```tsx twoslash-import { RenderMediaOnLambdaInput } from "@remotion/lambda";+import {RenderMediaOnLambdaInput} from '@remotion/lambda';-const webhook: RenderMediaOnLambdaInput["webhook"] = {- url: "https://mapsnap.app/api/webhook",+const webhook: RenderMediaOnLambdaInput['webhook'] = {+ url: 'https://mapsnap.app/api/webhook',secret: process.env.WEBHOOK_SECRET as string,// Optionally pass up to 1024 bytes of custom datacustomData: {@@ -328,10 +328,10 @@ const webhook: RenderMediaOnLambdaInput["webhook"] = {If you don't want to set up validation, you can set `secret` to null:```tsx twoslash-import { RenderMediaOnLambdaInput } from "@remotion/lambda";+import {RenderMediaOnLambdaInput} from '@remotion/lambda';-const webhook: RenderMediaOnLambdaInput["webhook"] = {- url: "https://mapsnap.app/api/webhook",+const webhook: RenderMediaOnLambdaInput['webhook'] = {+ url: 'https://mapsnap.app/api/webhook',secret: null,};```diff --git a/packages/docs/docs/renderer/render-media.mdx b/packages/docs/docs/renderer/render-media.mdxindex 3baeb8a237..a08eaa0282 100644--- a/packages/docs/docs/renderer/render-media.mdx+++ b/packages/docs/docs/renderer/render-media.mdx@@ -98,11 +98,11 @@ _optional_A `number` specifying how many render processes should be started in parallel, a `string` specifying the percentage of the CPU threads to use, or `null` to let Remotion decide based on the CPU of the host machine. Default is half of the CPU threads available.-### `metadata`+### `metadata`<AvailableFrom v="4.0.216" />_object - optional_-An object containing additional information about the video output. This can include properties such as Author, comment, and other relevant data to provide context and enhance the video’s usability.+Metadata to be embedded in the video. This can include properties such as `Author` and `Comment`.### `logLevel?`<AvailableFrom v="4.0.0"/>diff --git a/packages/docs/docs/renderer/stitch-frames-to-video.mdx b/packages/docs/docs/renderer/stitch-frames-to-video.mdxindex c16461cc52..f8b9ed5154 100644--- a/packages/docs/docs/renderer/stitch-frames-to-video.mdx+++ b/packages/docs/docs/renderer/stitch-frames-to-video.mdx@@ -29,11 +29,11 @@ A `number` specifying the desired output width in pixels for the video.A `number` specifying the desired output height in pixels for the video.-### `metadata`+### `metadata`<AvailableFrom v="4.0.216" />_object - optional_-An object containing additional information about the video output. This can include properties such as Author, comment, and other relevant data to provide context and enhance the video’s usability.+Metadata to be embedded in the video. This can include properties such as `Author` and `Comment`.### `assetsInfo`