[FFmpeg-devel] [PATCH] libavformat/mxfenc: write package name metadata

Mark Reid mindmark at gmail.com
Fri Feb 13 01:36:52 CET 2015

this patch addss support for writing package name metadata in mxf files.

example usage:

ffmpeg -y -f lavfi -i "testsrc=size=1920x1080:rate=23.97" -frames:v 50 \
-metadata material_package_name="Material Package" \
-metadata file_package_name="File Package" \
-vcodec dnxhd -pix_fmt yuv422p -vb 36M out.mxf

these are the only two keys can currently be set and they match the decoders keys.

The muxer was previously assuming only ascii encoding, it now should be able
to properly convert utf8 -> utf16BE. I refactored the existing avio_put_str16le
into a macro to make both le and be and funcs, the same way avio_get_str16le was done.
The tests need to be updated because avio_put_str16be writes zero terminated strings and
the muxer previously wasn't.

Mark Reid (1):
  libavformat/mxfenc: write package name metadata

 libavformat/avio.h        |  6 ++++
 libavformat/aviobuf.c     | 50 +++++++++++++++++---------------
 libavformat/mxfenc.c      | 74 ++++++++++++++++++++++++++++++++++++++++-------
 tests/ref/lavf/mxf        |  6 ++--
 tests/ref/lavf/mxf_d10    |  2 +-
 tests/ref/lavf/mxf_opatom |  2 +-
 6 files changed, 101 insertions(+), 39 deletions(-)


More information about the ffmpeg-devel mailing list