User Tools

Site Tools


linuxcommands.ffmpeg

FFMPEG shortcuts


Convert image sequence to mp4 at *20 CRF quality

ffmpeg -framerate 25 -i //**export**//_v02.%04d.jpg -c:v libx264 -profile:v high -**crf** 20 -pix_fmt yuv420p [export]//_v02.mp4


__ Constant Rate Factor: __

//The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default, and 51 is worst quality possible. A lower value generally leads to higher quality, and a subjectively sane range is 17–28. Consider 17 or 18 to be visually lossless or nearly so; it should look the same or nearly the same as the input but it isn't technically lossless.

The range is exponential, so increasing the CRF value +6 results in roughly half the bitrate / file size, while -6 leads to roughly twice the bitrate.

Choose the highest CRF value that still provides an acceptable quality. If the output looks good, then try a higher value. If it looks bad, choose a lower value.//


Back to Linux Commands

linuxcommands.ffmpeg.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki