[Libav-user] Custom data in AVPacket or AVFrame
Nicolas George
george at nsup.org
Tue Feb 15 20:11:23 EET 2022
Dan Egnor (12022-02-15):
> My understanding of the OP was not that they wanted to embed anything in
> the bitstream but just that they wanted to set a cookie in AVFrame that
> would show up in the corresponding AVPacket (if encoding) or vice versa (if
> decoding), hence the suggestion of reordered_opaque. Quite possibly I
> misunderstood! Maybe the OP can clarify.
The original message has not disappeared, you can re-read it.
"add a custom number [] before I encode it and I want to retrieve it
back when I decode it."
Once FFmpeg has encoded and muxed, it is done with the data, there is no
connection to a later decoder. Therefore any transmitted data needs to
be in the output file.
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220215/cf7f69e1/attachment.sig>
More information about the Libav-user
mailing list