[FFmpeg-devel] [PATCH] avcodec/nvenc: add udu_sei option to import user data unregistered SEIs
Timo Rothenpieler
timo at rothenpieler.org
Fri Dec 24 16:00:10 EET 2021
On 24.12.2021 05:32, lance.lmwang at gmail.com wrote:
> From: Limin Wang <lance.lmwang at gmail.com>
>
> Note:
> nvenc sdk will truncated user data unregistered SEI if the size > 503.
> for example, hardcode its size to 504, trace_headers will report below error:
> Invalid SEI message: payload_size too large (504 504 bytes).
I'm amazed it even does that now.
Last time I tested this, encoding straight up failed if the SEI data was
too large, since the allocated packet output buffer has a fixed size,
and no API to influence that size exists.
Disabling unregistered SEIs by default is probably a good call, given
99% of the time it'll lead to unexpected failures and is not actually
intended or used by the user.
It IS technically an API break though, so not 100% sure on this.
Ideally it'd be possible to just increase the buffer size, so the SEI
data fits.
Where exactly did you see this 503 byte truncation happening?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4494 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211224/41e7e94f/attachment.bin>
More information about the ffmpeg-devel
mailing list