Chapter 494: renderMediaOnLambda()
Core Idea
Kicks off a render process on Remotion Lambda. The progress can be tracked using getRenderProgress().
Key Concepts
- Example
- Arguments
- region
- privacy?
- functionName
- framesPerLambda?
- enableCancellation?<AvailableFrom v="4.0.515" />
- concurrency?<AvailableFrom v="4.0.322" />
Code Examples
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',
});
- What it demonstrates: Usage pattern for renderMediaOnLambda() from the official docs.
Key Takeaways
- Understand example when working with renderMediaOnLambda().
- Understand arguments when working with renderMediaOnLambda().
- Understand region when working with renderMediaOnLambda().
- Understand privacy? when working with renderMediaOnLambda().
- Understand functionname when working with renderMediaOnLambda().
Connects To
- api: related page in the Lambda (@remotion/lambda) section.
- Approuterwebhook: related page in the Lambda (@remotion/lambda) section.
- Authentication: related page in the Lambda (@remotion/lambda) section.