Chapter 146: renderFrames()
Core Idea
_Part of the @remotion/renderer package.
Key Concepts
- Arguments
- composition
- onStart
- onFrameUpdate
- outputDir
- inputProps
- serveUrl
- imageFormat?
Code Examples
const onStart = ({
frameCount,
parallelEncoding, // available from v4.0.52
resolvedConcurrency, // available from v4.0.180
}: OnStartData) => {
console.log(`Beginning to render ${frameCount}.`);
if (parallelEncoding) {
console.log('Parallel encoding is enabled.');
}
console.log(`Using concurrency: ${resolvedConcurrency}`);
};
- What it demonstrates: Usage pattern for renderFrames() from the official docs.
Key Takeaways
- Understand arguments when working with renderFrames().
- Understand composition when working with renderFrames().
- Understand onstart when working with renderFrames().
- Understand onframeupdate when working with renderFrames().
- Understand outputdir when working with renderFrames().
Connects To
- Chromium Flags: related page in the Rendering & SSR section.
- Compare ssr: related page in the Rendering & SSR section.
- Dataset Render: related page in the Rendering & SSR section.