[FFmpeg-devel] [PATCH] avcodec/nvenc: Reconfigure resolution on-the-fly

Timo Rothenpieler timo at rothenpieler.org
Fri Mar 8 12:41:36 EET 2019


On 08/03/2019 00:57, Carl Eugen Hoyos wrote:
> 2019-03-06 15:57 GMT+01:00, Oliver Collyer <ovcollyer at mac.com>:
>> Hi
>>
>> I needed the dynamic resolution changing feature of NVENC to be accessible
>> through the ffmpeg libraries for a hobby project, so I added support and
>> here is a patch.
>>
>> I will format this as a proper patch after any changes necessary following
>> feedback.
>>
>> To use this feature you would need to:
>>
>> 1. Specify max_width and max_height before opening the encoder
> 
> Can't they be set to a maximum number to be as flexible as possible?

That'd be a bad idea, as it will allocate that amount of memory for 
every frame, no matter how large it actually ends up being.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4538 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190308/5b1add54/attachment.bin>


More information about the ffmpeg-devel mailing list