[FFmpeg-devel] [PATCH] Allow nested metadata key/value pairs for Matroska
Fri Jun 12 04:16:23 CEST 2009
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:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel