[FFmpeg-devel] [PATCH v4]avocdec/nvenc: Reconfigure bitrate on the fly

Timo Rothenpieler timo at rothenpieler.org
Fri May 4 11:32:51 EEST 2018


> for dynamic resolution, maybe add a check ?
> 
> ctx->support_dyn_res = nvenc_check_cap(avctx,
> NV_ENC_CAPS_SUPPORT_DYN_RES_CHANGE);
> 
> and:
> if (dw != ctx->init_encode_params.darWidth || dh !=
> ctx->init_encode_params.darHeight)
> 
> ==>
> if ( (dw != ctx->init_encode_params.darWidth || dh !=
> ctx->init_encode_params.darHeight) && ctx->support_dyn_res)

That's not a resolution change, only a dar change.
I'm not sure if actual resolution changes are even supported by avcodec.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180504/c8809a10/attachment.sig>


More information about the ffmpeg-devel mailing list