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?
+ Reply to Thread
Results 1 to 3 of 3
-
-
libavcodec provides some generic global options, which can be set on all the encoders and decoders. In addition each codec may support so-called private options, which are specific for a given codec.
So if you use an encoder which has it's own parameters use those to be sure the encoder does what you want.
Otherwise you can use '-g' which is a generic option which should set the gop size (<> key frame intervall) for all encoders that support it.
I have never seen '-keyint xy' or '-keyint=xy' as a global option, assuming those really exists they are probably only used for a specific encoder.
-x264-params keyint=50
So directly to your questions:
-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?users currently on my ignore list: deadrats, Stears555, marcorocchini -
In case it's not clear...
-g N is ffmpeg's own GOP size argument. ffmpeg translates that and passes it along to individual encoders in whatever format is appropriate for that encoder. -x264-parmams is ffmpeg's argument to pass options directly to the x264 encoder. What follows it is passed specifically to x264. It's usually used for settings that ffmpeg doesn't support directly. But you can also use it for settings that ffmpeg supports. If you use both -g X and -x264-params keyint=Y the latter will be used for the encoding.
Similar Threads
-
Why x264 "placebo" preset produce bigger file than "very slow"?
By aleaksunder in forum Video ConversionReplies: 21Last Post: 2nd Mar 2019, 07:25 -
x264 with manually setted "ref" parameter and MediaInfo report not the same
By aleaksunder in forum Video ConversionReplies: 2Last Post: 21st Feb 2019, 03:53 -
did I apply the filter syntax "-sws_flags bicubic" correctly?
By sommers in forum Newbie / General discussionsReplies: 3Last Post: 25th Jun 2017, 21:13 -
How i can encode audio of "REMUX" to "BluRay.720p.DTS" wit handbrake?
By VideoHelp4Ever in forum Blu-ray RippingReplies: 1Last Post: 2nd Jul 2015, 11:41 -
[SOLVED] "--ipratio" "--pbratio"+"--scenecut" "--minkeyint" / "--keyint
By Kdmeizk in forum Video ConversionReplies: 14Last Post: 21st Jun 2015, 07:21