CRFv1.4.0
No matter which codec you end up using, there's always a tradeoff between file size and video quality. You can control it by setting the CRF (Constant Rate Factor). The lower the number, the better the quality; the higher the number, the smaller the file.
CLI flag
--crf <value>The following CLI commands accept this option:
APIs that have this option
The following APIs accept this option:
renderMediaOnCloudrun()renderMediaOnLambda()renderMedia()stitchFramesToVideo()renderMediaOnVercel()
Config file
remotion.config.tsConfig .setCrf (16);