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

Aurelien Jacobs aurel
Sun Jun 14 00:30:45 CEST 2009

On Thu, Jun 11, 2009 at 08:16:23PM -0600, Steve Dibb wrote:
> 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".

OK. I've just added support for prepending TargetType to metadata
key name when available. (In a simpler way than what you proposed)


More information about the ffmpeg-devel mailing list