[FFmpeg-devel] [PATCH] avcodec/nvenc: multiple reference frames support
Timo Rothenpieler
timo at rothenpieler.org
Fri Sep 27 15:14:52 EEST 2019
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.
Patch looks good to me now. Will give it a test later and apply it if
nothing goes horribly wrong.
Would you be opposed to naming the CLI option just "nb_refs"?
De-clutters the command line a bit, but no strong opinion there from my
side.
More information about the ffmpeg-devel
mailing list