[FFmpeg-devel] Embedding binary data in video files (was LRC (music lyrics))

Aurelien Jacobs aurel
Tue Dec 28 23:53:53 CET 2010

On Tue, Dec 28, 2010 at 07:39:58PM +0100, tajz wrote:
> [as : [FFmpeg-devel] LRC (music lyrics) muxer and demuxer]
> Aurelien Jacobs a ?crit :
> >On Sun, Dec 26, 2010 at 11:45:50PM +1100, Peter Ross wrote:
> >>Typical sample: http://lrc.awardspace.us/lrc/Evanescence-Missing.lrc
> Hi,
> I would like to tie 'meta' binary data to my video.
> I see that for text data some people are using the Metadata API.
> It would work as I need to read the data at opening, not in sync
> with the audio/video stream.
> Do you think that for binary data I could (should ?) use a

Yes, using AVMEDIA_TYPE_ATTACHMENT is probably the way to go.

> Is it supported by many (every ?) format ?

Not really... Right now, it is only supported in matroska, IIRC.
But it shouldn't be hard to add support in the (de)muxer you want.
(patch welcome)

> Or else, I was thinking to uuencode my binary data to put it in a
> Metadata value (about 10Kbytes).

This would be surly ugly, but this would probably work at least with
some formats.
Unless you want to go the fast and ugly way without touching the code,
I wouldn't recommend this.


More information about the ffmpeg-devel mailing list