(trac.ffmpeg.org) Encode/H.264 – FFmpeg

ROAM_REFS: https://trac.ffmpeg.org/wiki/Encode/H.264

This guide focuses on the encoder x264. It assumes you have

ffmpeg
compiled with
--enable-libx264
. If you need help compiling and installing see one of our compiling guides. See HWAccelIntro for information on supported hardware H.264 encoders.


There are two rate control modes that are usually suggested for general use: Constant Rate Factor (CRF) or Two-Pass ABR. Rate control decides how many bits will be used for each frame. This will determine the file size and also how quality is distributed. To know more about what the different rate control modes do see ​this post.

Local Graph

org-roam b6ce0658-0dd5-4503-9310-9c1d629df85e (trac.ffmpeg.org) Encode/H.264 – FFmpeg //trac.ffmpeg.org/wiki/CompilationGuide https://trac.ffmpeg.org/wiki/CompilationGuide b6ce0658-0dd5-4503-9310-9c1d629df85e->//trac.ffmpeg.org/wiki/CompilationGuide //trac.ffmpeg.org/wiki/HWAccelIntro https://trac.ffmpeg.org/wiki/HWAccelIntro b6ce0658-0dd5-4503-9310-9c1d629df85e->//trac.ffmpeg.org/wiki/HWAccelIntro //trac.ffmpeg.org/wiki/Encode/H.264#crf https://trac.ffmpeg.org/wiki/Encode/H.264#crf b6ce0658-0dd5-4503-9310-9c1d629df85e->//trac.ffmpeg.org/wiki/Encode/H.264#crf //trac.ffmpeg.org/wiki/Encode/H.264#twopass https://trac.ffmpeg.org/wiki/Encode/H.264#twopass b6ce0658-0dd5-4503-9310-9c1d629df85e->//trac.ffmpeg.org/wiki/Encode/H.264#twopass //slhck.info/video/2017/03/01/rate-control.html https://slhck.info/video/2017/03/01/rate-control.html b6ce0658-0dd5-4503-9310-9c1d629df85e->//slhck.info/video/2017/03/01/rate-control.html