[Libav-user] force_key_frames

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Apr 2 21:28:29 EEST 2020

Am Do., 2. Apr. 2020 um 20:22 Uhr schrieb M Parker <diesirae777 at hotmail.com>:
> >The option force_key_frames is handled in fftools/ffmpeg.c, so your best
> approach is to copy its behaviour.
> I had gotten that far, but setting it still eluded me. After much digging, some experimentation
> and a little luck, I figured out how to code it in:
> AVDictionary *dict;
> av_dict_set(&dict, "force_key_frames", expression_string, NULL);
> avcodec_open2(videoCodecContext, videoCodec, &dict);

No such option exists in current libavcodec afaict...

Please find out what top-posting means and avoid it here.

Carl Eugen

More information about the Libav-user mailing list