Capítulo 495 de 988

Chapter 495: renderStillOnLambda()

Core Idea

Renders a still image inside a lambda function and writes it to the specified output location.

Key Concepts

  • Example
  • Arguments
  • region
  • functionName
  • serveUrl
  • composition
  • inputProps
  • privacy

Code Examples

// @module: esnext
// @target: es2017

const {estimatedPrice, url, sizeInBytes} = await renderStillOnLambda({
  region: 'us-east-1',
  functionName: 'remotion-render-bds9aab',
  serveUrl: 'https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw',
  composition: 'MyVideo',
  inputProps: {},
  imageFormat: 'png',
  maxRetries: 1,
  privacy: 'public',
  envVariables: {},
  frame: 10,
});
  • What it demonstrates: Usage pattern for renderStillOnLambda() from the official docs.

Key Takeaways

  1. Understand example when working with renderStillOnLambda().
  2. Understand arguments when working with renderStillOnLambda().
  3. Understand region when working with renderStillOnLambda().
  4. Understand functionname when working with renderStillOnLambda().
  5. Understand serveurl when working with renderStillOnLambda().

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.