@remotion/media cache size
Specify the memory budget for decoded media cached by <Video> and <Audio> from @remotion/media, in bytes. This value also determines the maximum read cache size for each distinct media source. It is not a limit on total memory usage.
The default is half of the available system memory when the render starts.
CLI flag
--media-cache-size-in-bytes <value>The following CLI commands accept this option:
remotion studioremotion renderremotion stillremotion compositionsremotion benchmarkremotion lambda renderremotion lambda stillremotion cloudrun renderremotion cloudrun still
APIs that have this option
The following APIs accept this option:
renderMediaOnCloudrun()renderStillOnCloudrun()getCompositionsOnLambda()renderMediaOnLambda()renderStillOnLambda()getCompositions()renderFrames()renderMedia()renderStill()selectComposition()renderMediaOnWeb()renderStillOnWeb()