<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);">
Sorry that was my fault but I use avcodec-58.dll, avformat-58.dll, avutil-56.dll and libx264-161.dll. I will try your example code and come back to you. </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 Brad Hards <bradh@frogmouth.net><br>
<b>Verzonden:</b> woensdag 16 februari 2022 10:28<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">On Wednesday, 16 February 2022 8:16:17 PM AEDT laddoe wrote:<br>
> Correction, I meant av_frame_new_side_data but it looks like the "side data"<br>
> is not meant for that. I couldn't find the right documentation that would<br>
> explain what the purpose is for the "side data" ( the same for<br>
> AVPacketSideData). I also tried the metadata struct (AVDictionary) in the<br>
> AVFrame struct but it did not work either.<br>
We know it didn't work - you wouldn't be posting if it did.<br>
However we have no idea what actually happened instead. We still don't know <br>
what version of the libraries you are using.<br>
<br>
Here is an extract from a sample I used:<br>
<br>
AVFrame *frame;<br>
AVFrameSideData *side_data;<br>
// This is from MISB ST 2101<br>
char sei_message[] = {0xa5, 0x50, 0x52, 0xaf, 0x52, 0x16, 0x5f, 0x45,<br>
0xa3, 0x18, 0x1c, 0xfc, 0x7a, 0xbb, 0xc2, 0x67,<br>
0x01, 0x70, 0xF5, 0x92, 0xF0, 0x23, 0x73, 0x36,<br>
0x4A, 0xF8, 0xAA, 0x91, 0x62, 0xC0, 0x0F, 0x2E,<br>
0xB2, 0xDA, 0x16, 0xB7, 0x43, 0x41, 0x00, 0x08,<br>
0x41, 0xA0, 0xBE, 0x36, 0x5B, 0x5A, 0xB9, 0x6A,<br>
0x36, 0x45};<br>
<br>
side_data = av_frame_new_side_data(frame, AV_FRAME_DATA_SEI_UNREGISTERED, <br>
sizeof(sei_message));<br>
if (!side_data)<br>
{<br>
fprintf(stderr, "Could not allocate the video frame side data\n");<br>
exit(1);<br>
}<br>
memcpy(side_data->data, sei_message, side_data->size);<br>
<br>
If that doesn't work for you, please make a SSCCE (<a href="http://sscce.org/">http://sscce.org/</a>) of what
<br>
you are doing, what you expected that code to do, and what happened instead.<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>
</body>
</html>