<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
My apologies for not being clear in my original post. The codec I'm using is h264 and the container is mp4. How can I determine if this codec supports per-frame data? If not,  can you give me pointers on how to do it in the bitstream code or on container level? </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you in advance</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Van:</b> Libav-user <libav-user-bounces@ffmpeg.org> namens Nicolas George <george@nsup.org><br>
<b>Verzonden:</b> dinsdag 15 februari 2022 19:11<br>
<b>Aan:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. <libav-user@ffmpeg.org><br>
<b>Onderwerp:</b> Re: [Libav-user] Custom data in AVPacket or AVFrame</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Dan Egnor (12022-02-15):<br>
> My understanding of the OP was not that they wanted to embed anything in<br>
> the bitstream but just that they wanted to set a cookie in AVFrame that<br>
> would show up in the corresponding AVPacket (if encoding) or vice versa (if<br>
> decoding), hence the suggestion of reordered_opaque. Quite possibly I<br>
> misunderstood! Maybe the OP can clarify.<br>
<br>
The original message has not disappeared, you can re-read it.<br>
<br>
"add a custom number [] before I encode it  and I want to retrieve it<br>
back when I decode it."<br>
<br>
Once FFmpeg has encoded and muxed, it is done with the data, there is no<br>
connection to a later decoder. Therefore any transmitted data needs to<br>
be in the output file.<br>
<br>
-- <br>
  Nicolas George<br>
</div>
</span></font></div>
</body>
</html>