[Libav-user] Recomended approach for a timed metadata track within an mp4 (ISOBMFF section 220.127.116.11)
tom.vercauteren at gmail.com
Fri Apr 1 11:58:18 EEST 2022
On Fri, 1 Apr 2022 at 04:20, Brad Hards <bradh at frogmouth.net> wrote:
> On Thursday, 31 March 2022 9:15:42 PM AEDT Tom Vercauteren wrote:
> > I am interested in embeding metadata corresponding to each video frame
> > within an mp4 file. I am however a bit unsure how to best approach this
> > with ffmpeg / libav. I tried looking for exisiting tutorials / guidelines
> > but couldn't find it so far and would thus appreciate further pointers.
> It might depend on what you are trying to achieve. One thing you might
> like to
> look at is the MISB ST 1910.1 approach, which uses an EMSG box.
> Its not clear to me how well that is supported within ffmpeg - it'll
> require some additional code.
Thanks. I am fairly new to this, so the mention of MISB ST 1910.1 was
insightful. I read this blog post which helped me understand:
As far as I understand, MISB ST 1910.1 with EMSG box would be mostly
important for web streaming purpose, right? In my case, I am moslty
interested in being able to store (and read back) some metadata alongside
each video frame of an mp4 file. From that article, it seems like adding
KLV metadata would be sufficient for me and would be supported by ffmpeg /
In such a case, am I right in assuming that using a stream of type
AV_MEDIA_TYPE_DATA that uses codec AV_CODEC_ID_SMPTE_KLV is a good way to
go? Something similar to how it is suggested here?
Now, for the message itself, is there a recommended MISB compliant KLV
library or is it OK to "hack" it by say using protobuf for serialising the
metadata (similar to https://github.com/Parrot-Developers/libvideo-metadata
Also, is it ok to leave the interleaving to ffmpeg, i.e. using
av_interleaved_write_frame rather than write_frame (which is shown in many
of the questioned I read so far)?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user