[FFmpeg-user] Why was patch declined: Modified force_key_frames option to accept frame numbers?

Gyan ffmpeg at gyani.pro
Sat Feb 16 09:52:30 EET 2019



On 16-02-2019 05:03 AM, Nick wrote:
> Hi,
> why was the "Modified force_key_frames option to accept frame numbers"
> (2014) declined?
>
>> https://ffmpeg.org/pipermail/ffmpeg-devel/2014-November/165167.html
> You can even specify frame numbers in the current ffmpeg version using:
>> -force_key_frames expr:gte(n,n_forced*96)
> Using a framerate of 24 means a keyframe every 4s.
> I think it is very useful to have something like
>
>> /force_key_frames n:0,25,50,75,100/

For a regular pattern like that one, you can already use

     -force_key_frames expr:not(mod(n,25))

Expressions are be evaluated using the interface documented at 
https://ffmpeg.org/ffmpeg-utils.html#Expression-Evaluation


Gyan


More information about the ffmpeg-user mailing list