This is the source code the Remotion Lambda trailer. This video was written entirely in React using Remotion.
To validate the claim in the video that it can be rendered in 15 seconds, first set up Remotion Lambda. Afterwards, deploy the project and render across 200 Lambda functions:
npx remotion lambda sites create src/index.tsx --site-name=trailer
npx remotion lambda render trailer Main --frames-per-lambda=12
npx remotion lambda render trailer Main --frames-per-lambda=12
On the second render, you should see a render time of around 15 seconds. We've achieved a time of 14.6 seconds in our best run. Note: We are rendering the video twice to "warm up" the Lambda functions. There is no caching going on.
Start Preview
npm start
Render video
npm run build
Upgrade Remotion
npm run upgrade
Get started with Remotion by reading the fundamentals page.
Found an issue with Remotion? File an issue here.
This code: MIT
Remotion: Notice that for some entities a company license is needed. Read the terms here.