[FFmpeg-devel] [PATCH 4/7] avcodec/encode: add support for param change frame side data
James Almer
jamrial at gmail.com
Mon Jan 27 14:54:56 EET 2025
On 1/27/2025 9:48 AM, Andreas Rheinhardt wrote:
> James Almer:
>> With this, callers can signal supported encoders to reinitialize using certain
>> parameters, which should allow for more graceful (but potentially more limited
>> in scope) reinitialization than closing and reopening the encoder, or even
>> simply on-the-fly changes of trivial values that would not require any kind
>> or flushing or reinitialization by the encoder.
>>
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>
> I don't really see the big improvement over closing+reopening the encoder.
libx264 and libaom for example provides x264_encoder_reconfig() and
aom_codec_enc_config_set() respectively, which lets you change some
parameters on the fly, which although limited in scope (Neither will
accept dimension changes, even if within the "max" set during init) is
much more efficient compression-wise than closing+reopening the encoder.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250127/aad40018/attachment.sig>
More information about the ffmpeg-devel
mailing list