[FFmpeg-devel] [PATCH] libavformat/mxfdec: export user comments metadata

Mark Reid mindmark at gmail.com
Fri Mar 6 22:24:34 CET 2015


Hi
This patch enable reading of tagged values from mxf files and export
the user comment tags as metadata. The tags can have arbitrary names
and values. values can also have different types.  I have only
added support for the utf16be and utf16le types. Avid for some reason
encodes tag indirect values as a utf16le strings. This patch only
exports the user comments tags, but there other tagged
values being read that aren't being exported. some of these tags also
have subtags which I'm also ignoring as well.

here is a sample mxf file that contains a bunch of user comments
https://dl.dropboxusercontent.com/u/170952/ffmpeg_samples/tagged_values.mxf

ffprobe tagged_values.mxf should show

comment_UNC Path: /Users/mark/Dev/ffmpeg/testsrc.mov
comment_example 3: 2
comment_example 1: value
comment_example 2: value2
comment_example 4: Lorem ipsum dolor
comment_example_5: £20.00
comment_TapeID  : TestSrC
comment_example 6: 100Ω
comment_example 7: ©2014

I'm currently prefixing all the user comments with "comment_" to separate them
from other metadata keys. The keys look kinda ugly and can have spaces,
if someone has a better suggestion I'd love to here it.

Mark Reid (1):
  libavformat/mxfdec: export user comments metadata

 libavformat/mxf.h    |  1 +
 libavformat/mxfdec.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 93 insertions(+), 4 deletions(-)

-- 
2.2.1



More information about the ffmpeg-devel mailing list