[FFmpeg-devel] [PATCH] avcodec/nvenc: add udu_sei option to import user data unregistered SEIs

Timo Rothenpieler timo at rothenpieler.org
Fri Dec 24 17:52:35 EET 2021


On 24.12.2021 15:47, lance.lmwang at gmail.com wrote:
> 
> You can tested with libx264 output file, the size of unregistered SEIs(for encoding
> setting) will > 503 always, if you don't make the size <= 503, you'll see below
> error by trace_eaders filter.
> Invalid SEI message: payload_size too large (xxx 504 bytes).
> 
> Note,  libavcodec/cbs_sei_syntax_template.c line 262, I print out "get_bits_left(rw) / 8".
> 
> I think the buffer size is OK, but nvenc sdk truncate the data after encoding.

What exactly are you referring to by nvenc sdk? Are you looking at some 
Nvidia sample that does this truncating?
Cause if I try this with ffmpeg right now, encoding straight up fails if 
a too large SEI segment is attached, since nvenc runs out of space in 
the output buffer.
-------------- 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/015b21c0/attachment.bin>


More information about the ffmpeg-devel mailing list