[FFmpeg-devel] skip multiple id3v2 headers

David Byron dbyron
Fri Sep 10 00:36:04 CEST 2010

> > Fair enough.  Here are patches to read all the metadata.
> how are "conflicts" handled? if both tags define e.g a "title", which
> one will be exported in the end?

Conflicts aren't explicitly handled.  I used the attached program to examine
the metadata available from each file in combinations.tar.gz.  The
interesting metadata key in these files in TPE1.  With any luck the names of
the files describe their contents.  They are all combinations of the files
in testfiles.tar.gz.

Empty values or id3v2 tags that don't contain TPE1 are basically ignored.
If multiple tags contain the same frame/key, the value that comes last in
the file remains for access via av_metadata_get.

valgrind showed no leaks for all of these.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: iterate_frames.c
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100909/0ae5cb36/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combinations.tar.gz
Type: application/x-gzip
Size: 647 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100909/0ae5cb36/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testfiles.tar.gz
Type: application/x-gzip
Size: 458 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100909/0ae5cb36/attachment-0001.bin>

More information about the ffmpeg-devel mailing list