<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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);">
Correction, I meant av_frame_new_side_data but it looks like the "side data" is not meant for that. I couldn't find the right documentation that would explain what the purpose is for the "side data" ( the same for AVPacketSideData). I also tried the metadata
 struct (AVDictionary) in the AVFrame struct but it did not work either. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm really stuck on this and have been reading/trying a lot but I guess I need some help of a pro. My goal is to add a uint32_t value to each frame or packet before encoding but if that is not possible I would like to add an array of uint32_t in the container
 which I would be able to retrieve back after I decode it.  </div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Van:</b> Libav-user <libav-user-bounces@ffmpeg.org> namens laddoe <xyfix@hotmail.com><br>
<b>Verzonden:</b> woensdag 16 februari 2022 00:28<br>
<b>Aan:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. <libav-user@ffmpeg.org>; 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>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
At first I thought it would be possible to do it per frame, so I tried AVFrameSideData and the av_frame_set_data. Then I thought to try it on a packet with AVPacketSideData. But none of this worked.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_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 Brad Hards <bradh@frogmouth.net><br>
<b>Verzonden:</b> dinsdag 15 februari 2022 23:15<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="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">On Wednesday, 16 February 2022 9:03:32 AM AEDT laddoe wrote:<br>
> const std::string encoderName( "libx264rgb");<br>
> <br>
> const AVCodecID decoderID( AV_CODEC_ID_H264 );<br>
> <br>
> does this make any difference to the answer that was given by Brad ?<br>
It might make a difference to what decoder gets chosen.<br>
<br>
What have you tried? If nothing, you probably should test next. You should be <br>
able to see your results in the bitstream file on encoding (e.g. by searching <br>
for your UUID in a hex editor), which allows you to check your development.<br>
<br>
Brad<br>
<br>
<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
Libav-user@ffmpeg.org<br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
libav-user-request@ffmpeg.org with subject "unsubscribe".<br>
</div>
</span></font></div>
</div>
</body>
</html>