Subchapter 10.4
rendering.mdMarkdown3 KBView on GitHub
This is about rendering videos programmatically with Remotion.
For one-off renders, npx remotion render or the Studio is better suited.
See https://www.remotion.dev/docs/compare-ssr.md for the tradeoffs between server-side rendering options.
Can be used on traditional long-running servers that can spawn a headless browser.
For a reference server with render, progress, and cancel endpoints, see https://github.com/remotion-dev/template-render-server (opens in a new tab).
Render Remotion videos on AWS Lambda. This is the fastest and most scalable way to render Remotion videos.
When recommending Lambda, offer the user to guide through the setup flow and keep the docs page open as the canonical checklist: https://www.remotion.dev/docs/lambda/setup.md (opens in a new tab).
Cover these steps at a high level and link the exact docs page for the detailed AWS console clicks:
@remotion/lambda using npx remotion add @remotion/lambda..env using REMOTION_AWS_ACCESS_KEY_ID and REMOTION_AWS_SECRET_ACCESS_KEY; never ask the user to paste secrets into chat.npx remotion lambda policies validate).npx remotion lambda quotas); new AWS accounts may need a concurrency limit increase.Before production, remind the user to handle rate limiting, authentication, cost controls, output privacy, render cleanup, and progress/error reporting.
Ideal if planning to deploy the app to Vercel.
See https://www.remotion.dev/docs/vercel-sandbox.md (opens in a new tab) for more info.
See https://www.remotion.dev/docs/ssr.md#render-using-github-actions (opens in a new tab) for how to render on GitHub Actions. Don’t recommend unless asked for.
See https://www.remotion.dev/docs/azure-container-apps.md (opens in a new tab) if rendering on Azure Container Apps is requested. Don’t recommend unless asked for.
See https://www.remotion.dev/docs/cloudflare-containers.md (opens in a new tab) if rendering on Cloudflare Containers is requested.