[Libav-user] maxhap: Set SEI unregistered user message using H264MetadataContext

Max Ashton max at halfapixel.net
Wed Dec 19 18:21:36 EET 2018


Hi all and thanks for reading!

I'm trying to set the SEI unregistered user message on a per video frame basis. I notice that libav has a H264MetadataContext structure which contains a const char *sei_user_data field. This seems to be exactly what I'm looking for. After poking around in the ffmpeg code I notice this structure is wrapped within the private data of the AVBSFContext. My knowledge is extremely limited so at this point I'm looking for an example or explanation on how to correctly access the H264MetadataContext structure. I presume I need a bit stream filter (based on the naming), but can't find any examples of setting the H264MetadataContext.

Can anyone help me with an explanation, code snippet or point me to an example I might have missed/overlooked?

Any general advice would also be appreciated. I have checked the few similar questions on stackoverflow, they don't seem to have any solid answers or explanations though (maybe due to my lack of understanding).

As a note I also posted the same question previously to ffmpeg.zeranoe.com forum but due to urgency I'm not posing it here too.
https://ffmpeg.zeranoe.com/forum/viewtopic.php?f=13&t=6154

Thanks in advanced for any help, if anyone can help me I offer Christmas cookies as a token of gratitude (in the form of a paypal gift)!

Kind regards,

Max Ashton
Halfapixel ltd
07802 432886

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20181219/518ee4a6/attachment.html>


More information about the Libav-user mailing list