[FFmpeg-devel] [PATCH] Allow nested metadata key/value pairs for Matroska

Steve Dibb beandog
Fri Jun 12 04:16:23 CEST 2009


Hi guys,

I'm attaching a small patch that will basically allow nested metadata 
properties to be parsed by the LAVF demuxer.

The metadata properties that can be set are a simple key=value 
structure.  But since Matroska can have global tags that are nested in 
each other, you might have the same key name with different values.  For 
instance, both TITLE under COLLECTION and TITLE under EPISODE would be 
set as "title".  The demuxer just overwrites the last value with 
whatever the newest key is.

This patch appends the TargetType name in front of the key name.  In 
MPlayer, at least, this means that you can use "get_property 
metadata/collection/title".  The normal syntax, on a MKV file with tags 
that aren't nested (no TargetType) would just be "metadata/title".

Just for reference, here's a sample of what a global tags file would 
look like, and the one I used to pull stuff out:

http://spaceparanoids.org/code/matroska/sample_global_tags.xml

Thanks

Steve

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: matroskadec_nested_metadata.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090611/55e870f4/attachment.asc>



More information about the ffmpeg-devel mailing list