[FFmpeg-devel] [PATCH] lavf/matroskaenc.c: use metadata key/value to set mastering metadata

Neil Birkbeck neil.birkbeck at gmail.com
Tue Apr 12 02:44:30 CEST 2016

We've added support for the correct elements in matroskadec and matroskaenc:

The intention of this patch is to expose a way to set this data via
the command-line, but in hindsight I see that wasn't clear in my
description. I'm proposing using the key/value pair on command line to
set the values, e.g.,


The value is not written in the matroska tags, only to the colour elements.

I'm happy to consider alternatives, but wasn't sure there was a
precedent for instantiating the packet side data from command line.

On Sun, Apr 3, 2016 at 5:13 PM, Dave Rice <dave at dericed.com> wrote:
>> On Apr 3, 2016, at 6:38 PM, Neil Birkbeck <neil.birkbeck at gmail.com> wrote:
>> Use "master_display" key/value pair to specify mastering metadata in a
>> similar formatting as accepted by libx265 (unless there is some other
>> generic way to add side data to a stream from command line).
>> Currently, the packet side data propagates from an input file to
>> output file if it is transmuxed (mkv -> mkv). Perhaps we want to also
>> use this same metadata key in matroskadec to also allow for the
>> metadata to propagate during transcoding.
>> <0001-lavf-matroskaenc.c-use-metadata-key-value-to-set-mas.patch>_______________________________________________
> Wouldn’t it reduce confusion if the proposed MasteringMetadata elements[1] were used rather than rather than storing the same data as Matroska tags?
> Dave Rice
> [1] as discussed on the CELLAR list https://mailarchive.ietf.org/arch/msg/cellar/hIKLhMdgTMTEwUTeA4ct38h0tmE
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list