[FFmpeg-devel] [PATCH] metadata API is now ready to be part of public API

Aurelien Jacobs aurel
Tue Mar 17 00:39:10 CET 2009


On Sun, Mar 15, 2009 at 07:34:39PM -0700, Baptiste Coudurier wrote:
> Aurelien Jacobs wrote:
> > Hi,
> > 
> > I think the new metadata API is now ready to be used in the wild.
> > So attached patch makes it officially part of public API.
> > Note that all (de)muxers are now using this new API.
> > 
> > The only step left for this transition is to disable old API for
> > next major version, and to document this deprecation.
> > 
> 
> Btw, is there a mechanism to use AVMetadata with pure data ?
> A char * is limited to strings unless we put a length field in it.

Metadata is limited to zero terminated strings...
If you desperatly want to store binary data in it, you can use base64,
but I doubt it would be a good idea.

> I'm thinking of covers in .m4a files. This is a whole jpeg.
> I bet someone will answer to use CODEC_TYPE_ATTACHMENT,

Now, you do both the question and the answer... Great :-)

> however I will need to create separate track only for this.

And, so what ?

> Any other mechanism ?

You mean another mechanism which would also allows correctly remuxing
the cover in other containers ? I don't think there is any.

Aurel




More information about the ffmpeg-devel mailing list