[FFmpeg-devel] [PATCH] avcodec/openh264enc.c: generate IDR frame in response to I frame pict_type

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Mar 12 19:53:43 EET 2018


On 3/12/2018 6:58 AM, Valery Kot wrote:
> Could somebody please take a look into my patch? Or is it somehow invisible
> / badly formatted?
> 
> It allows for inducing key frames at proper moments by e.g.
> -force_key_frames, while using openH264 codec. Thus accurate HLS with LGPL
> license, which is important for us.

Hi,

> +    if (frame->pict_type==AV_PICTURE_TYPE_I) {
> +        (*s->encoder)->ForceIntraFrame(s->encoder, true);
> +    }

Does openh264 differentiate between I and IDR frames in its API, like libx264
and libx265 do?

- Derek


More information about the ffmpeg-devel mailing list