Log in

View Full Version : Difference between " -g " and "-keyint" parameter? usage syntax?


mike23
19th April 2020, 06:41
As far as I know there are two possible ffmpeg parameters for specifiying the maximum keyframe interval:

-g 50

and

-keyint 50

Whats the difference?

Furthermore I have seen various parameter syntax usages for keyint:

-keyint 50

-keyint=50

-preset slow -x264-params keyint=50

Whats the difference?

microchip8
19th April 2020, 06:57
-x264-params keyint=50 is specific for x264 options parsing which always use an = (equal) sign

difference between -g and -keyint is none. Probably FFmpeg devs are planning to phase out one of it, like in the past there was -x264-params and -x264opts, where the latter one is being phased out or is already removed (not sure)