🎥 Make videos programmatically with React
progress editor starter docs
JonnyBurger7296bf2d5645
diff --git a/packages/docs/docs/editor-starter/asset-uploads.mdx b/packages/docs/docs/editor-starter/asset-uploads.mdxindex 4a4bd5095e..7b2555ae5a 100644--- a/packages/docs/docs/editor-starter/asset-uploads.mdx+++ b/packages/docs/docs/editor-starter/asset-uploads.mdx@@ -30,6 +30,8 @@ By default, S3 is used for cloud storage, which requires some setup.```- Go to [IAM -> "Users"](https://us-east-1.console.aws.amazon.com/iam/home?region=us-east-1#/users) in the AWS console.+ - **If you have already [setup rendering](/docs/editor-starter/rendering)**: Select the user you created.+ - **If you have not:** Create a new user with all settings left as default.- Create a new user with all settings left as default.- Click "Add permissions -> Add inline policy" and add the following policy:diff --git a/packages/docs/docs/editor-starter/backend-routes.mdx b/packages/docs/docs/editor-starter/backend-routes.mdxindex 08b27f131e..ad1048b8e5 100644--- a/packages/docs/docs/editor-starter/backend-routes.mdx+++ b/packages/docs/docs/editor-starter/backend-routes.mdx@@ -18,7 +18,8 @@ Used to generate captions for a video based on an audio file.### `GET /api/font/:name`-Returns the metadata for a specific font, such as available weights and styles and their corresponding Google Fonts URLs. This information is provided by the backend because the metadata of all default fonts would be more than 10MB.+Returns the metadata for a specific font, such as available weights and styles and their corresponding Google Fonts URLs.+This information is provided by the backend because the metadata of all default fonts would be more than 10MB.- [Reference implementation](https://github.com/remotion-dev/editor-starter/blob/main/src/app/routes/api/font.ts)- [See usages](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20%2Fapi%2Ffont&type=code)diff --git a/packages/docs/docs/editor-starter/rendering.mdx b/packages/docs/docs/editor-starter/rendering.mdxindex b564fe6607..076f58e9d2 100644--- a/packages/docs/docs/editor-starter/rendering.mdx+++ b/packages/docs/docs/editor-starter/rendering.mdx@@ -6,4 +6,61 @@ id: renderingcrumb: Editor Starter----TODO+Rendering videos to MP4 works using [Remotion Lambda](/docs/lambda), a distributed renderer on AWS Lambda.++## Setup++Follow the [Remotion Lambda setup instructions](/docs/lambda/setup) step-by-step to set up your AWS account.++:::note+If you have already setup [asset uploads](/docs/editor-starter/asset-uploads), you should skip steps 4 and 5.+Don't create a new user, but select the user you created before.+:::++After that, fill in the following values in the `.env` file:++```+REMOTION_AWS_REGION=+REMOTION_AWS_ACCESS_KEY_ID=+REMOTION_AWS_SECRET_ACCESS_KEY=+REMOTION_AWS_BUCKET_NAME=+```++Now, you can deploy a Lambda function and create a site:++```ts+bun deploy.ts+```++You should re-execute this command whenever:++- You change the structure of the [state](/docs/editor-starter/state-management), e.g. add new fields or items+- You change how videos are rendered visually+- You upgrade to a new Remotion version++Running this script is idempotent, meaning you cannot run it too often.++We recommend to run this script in your build pipeline as well, so that it executes whenever you deploy your app.+For example, if you deploy to Vercel, you can create a `vercel.json` file:++```json title="vercel.json"+{+ "buildCommand": "bun deploy.ts && bun run build"+}+```++## Rendering++Is very simple: When no item is selected in the Editor Starter, a Render button shows up in the [inspector](/docs/editor-starter/tracks-items-assets#inspectors).++The backend endpoint [`/api/render`](/docs/editor-starter/backend-routes#post-apirender) is invoked to trigger a render.+Once triggered, [`/api/progress`](/docs/editor-starter/backend-routes#get-apiprogress) is polled to check the progress of the render.++Once the render is done, it is being uploaded to your S3 bucket and is publicly available.+Tweak the params you pass to [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) to change various settings - for example the privacy settings, the output format, quality, etc.++## See also++- [Remotion Lambda](/docs/lambda)+- [Setup](/docs/editor-starter/setup)+- [Asset uploads](/docs/editor-starter/asset-uploads)