[Libav-user] force_key_frames

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Apr 1 22:02:04 EEST 2020


Am Mi., 1. Apr. 2020 um 20:23 Uhr schrieb M Parker <diesirae777 at hotmail.com>:
>
> The command line has an option for forcing key frames, aptly named: -force_key_frames
>
> Is it possible to set this via libav, and where would I do it? The closest I've been able
> to find is a forced_key_frames option on an OutputStream, and I can't find
> where to access it.

The option force_key_frames is handled in fftools/ffmpeg.c, so your best
approach is to copy its behaviour.

Carl Eugen


More information about the Libav-user mailing list