views:

26

answers:

1

I would like to be able to store metadata on each frame of a video file (a key to value map with ~10 entries per frame).

Which video format allows me to store such data ?

Where can I find a c++ library to do this ?

Thank you very much for your answers.

+1  A: 

FFmpeg does such thing.

ffmpeg -i in.avi -metadata title="my title" out.flv

So if you want a library to do this, you can take a look at libavcodec (the leading audio/video codec library).

karlphillip
This will add metadata to the video file but not for every frame as I am asking for.Obviously, every frame should be able to store different values for the same keys.
rodrigob
Well, the command-line posted above is just a simple example. Libavcodec will allow you to do what you're looking for.
karlphillip
Maybe this can get you started: line 1413 of --> http://www.dennedy.org/kinodox/frame_8cc-source.html
karlphillip