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

2018-05-05 Thread Timo Rothenpieler
Am 05.05.2018 um 02:00 schrieb Carl Eugen Hoyos: 2018-05-04 10:32 GMT+02:00, Timo Rothenpieler : I'm not sure if actual resolution changes are even supported by avcodec. There are better (read: DVB) samples but I can't find them atm: https://trac.ffmpeg.org/raw-attachment/ticket/1507/Wrong_as

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

2018-05-04 Thread Carl Eugen Hoyos
2018-05-04 10:32 GMT+02:00, Timo Rothenpieler : > I'm not sure if actual resolution changes are even supported > by avcodec. There are better (read: DVB) samples but I can't find them atm: https://trac.ffmpeg.org/raw-attachment/ticket/1507/Wrong_aspect_after_resolution_change.rmvb Carl Eugen ___

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

2018-05-04 Thread Timo Rothenpieler
applied smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

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

2018-05-04 Thread Timo Rothenpieler
> 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

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

2018-05-03 Thread pkv.stream
Le 03/05/2018 à 7:43 PM, Timo Rothenpieler a écrit : Am 03.05.2018 um 09:51 schrieb pkv.stream: Hi, in previous versions ReconfigureEncoder was called at each frame once bitrate was changed. Fixed that. The patch was rebased against https://github.com/BtbN/FFmpeg/commit/4e8265e3a63a71a40730e8

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

2018-05-03 Thread Timo Rothenpieler
Am 03.05.2018 um 09:51 schrieb pkv.stream: Hi, in previous versions ReconfigureEncoder was called at each frame once bitrate was changed. Fixed that. The patch was rebased against https://github.com/BtbN/FFmpeg/commit/4e8265e3a63a71a40730e8eb575d8aa760bdcddc Slightly modified the approach a

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

2018-05-03 Thread pkv.stream
Hi, in previous versions ReconfigureEncoder was called at each frame once bitrate was changed. Fixed that. The patch was rebased against https://github.com/BtbN/FFmpeg/commit/4e8265e3a63a71a40730e8eb575d8aa760bdcddc Sorry about the back and forth. Regards From 7c9653faabfe5a9413b2fdcdb7e218991