[FFmpeg-devel] skip multiple id3v2 headers
Aurelien Jacobs
aurel
Thu Sep 30 21:16:26 CEST 2010
On Thu, Sep 09, 2010 at 03:36:04PM -0700, David Byron wrote:
> > > 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.
In this situation, I think it would be better to keep the value which
appeared first, and never overwrite it.
This can be done by simply using the AV_METADATA_DONT_OVERWRITE flag in
the av_metadata_set2() call.
Aurel
More information about the ffmpeg-devel
mailing list