I am rendering a video on a heroku machine with 1 CPU core and 512Mb RAM.
When I attempt to render a video with 360 frames it works, but it fails with 480 frames.
The CPU usage goes over 100% and Chrome throws an error.
Remotion version : 4.0.36
What I did to reduce CPU usage
- I'm disabling parallel encoding
- I am opening Chrome only once.
- I tried both concurrency 1 and 100%, concurrency 1 fails with a lower number of frames (not sure why)
Here is my render media call
const buffer = await renderMedia({
composition,
serveUrl: bundleLocation,
codec: "h264",
inputProps,
puppeteerInstance: browser,
logLevel: "verbose",
overwrite: true,
disallowParallelEncoding: true,
concurrency: "100%",
offthreadVideoCacheSizeInBytes: 10000000,
});