[FFmpeg-devel] [PATCH] avcodec/nvenc: multiple reference frames support

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Sep 27 15:22:39 EEST 2019


Am Fr., 27. Sept. 2019 um 14:15 Uhr schrieb Timo Rothenpieler
<timo at rothenpieler.org>:
>
> On 27/09/2019 12:28, Roman Arzumanyan wrote:
> >> First, this needs SDK Version Guards
> > Thanks, I've missed that. Added to patch.
>
> >> Second, in what way is this different from the existing global option(avctx->refs), which nvenc.c already uses to set
> > It's slightly different from existing global option (gives more fine-grain control):
> > "nb_ref_frames" effectively specifies maximum allowed number of reference frames in L0 and L1 reference lists for every P & B frame;
> > "avctx->refs" effectively specifies DPB size;
>
> I feel like the new fields match much better with the -refs option. As
> in, avctx->refs sets this, and a dedicated option sets the maximum DPB size.
> But now it's too late and changing it would be an API break. So a new
> option is what it's going to be.

Please break it (with some compatibility code if necessary / useful)!

Having different options doing the same thing makes user's lives infinitely
more difficult.

Carl Eugen


More information about the ffmpeg-devel mailing list