<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);">
I made a typo when writing "h264" , the exact codec as stated in my code is </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);">
/**
<div> * @brief encoderName</div>
<div> */</div>
<div>const std::string encoderName( "libx264rgb");</div>
<div><br>
</div>
const AVCodecID decoderID( AV_CODEC_ID_H264 );<br>
</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);">
does this make any difference to the answer that was given by Brad ? </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 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);">
<br>
</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> dinsdag 15 februari 2022 22:39<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:25:12 AM AEDT laddoe wrote:<br>
> My apologies for not being clear in my original post. The codec I'm using is<br>
> h264 and the container is mp4. How can I determine if this codec supports<br>
> per-frame data? If not,  can you give me pointers on how to do it in the<br>
> bitstream code or on container level?<br>
<br>
The codec format supports it (e.g. as SEI - you might like to look at creating <br>
a UUID and using the user-data-unregistered kind of SEI message), and the <br>
container format can support it via custom boxes (and maybe some kind of other <br>
box, like EMSG).<br>
<br>
That is a bit different to the codec or container muxer/demuxer implementation <br>
supporting it. For example, x264 based implementation in earlier versions of <br>
ffmpeg (before 5.0, or maybe 4.4) didn't support encoding, but it did support <br>
decoding. openh264 doesn't appear to support either.<br>
<br>
The getter API is av_frame_get_side_data. See<br>
<a href="https://ffmpeg.org/doxygen/trunk/">https://ffmpeg.org/doxygen/trunk/</a><br>
group__lavu__frame.html#gadec0efb470b1eead6a979333d9deca0c<br>
and associated methods / data structures.<br>
<br>
HTH<br>
<br>
Brad<br>
<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>