mkvmerge writes the incorrect value for the WhitePointChromaticityY element

Michael Bradshaw via Matroska-devel <[email protected]> Fri, 15 Sep 2017 20:24:35 -0700
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <CAHUoETLFRk1JPL=zLrczgq4DqhxzFM2pcHP2O=c2cVoPXRKg0A@mail.gmail.com>
--===============7348584633765684048==
Content-Type: multipart/alternative; boundary="001a113ee3a8ba96bb0559460d1a"

--001a113ee3a8ba96bb0559460d1a
Content-Type: text/plain; charset="UTF-8"

When running the command:
$ mkvmerge -o out.webm in.webm

mkvmerge will duplicate the value of WhitePointChromaticityX
into WhitePointChromaticityY.

For example, do this to generate a test sample:
$ ffmpeg -f lavfi -i testsrc -vframes 1 -c:v libvpx-vp9 in.webm
$ mkvpropedit --edit track:1 --set white-coordinates-x=0.25 --set
white-coordinates-y=0.75 in.webm

Do a quick sanity check:
$ mkvinfo in.webm
[...trimmed...]
|     + White colour coordinate x: 0.25
|     + White colour coordinate y: 0.75

$ mkvmerge -o out.webm in.webm
$ mkvinfo out.webm
[...trimmed...]
|     + White colour coordinate x: 0.25
|     + White colour coordinate y: 0.25

As you can see, the white point's Y coordinate is incorrect and is given
the value of the X coordinate.

--001a113ee3a8ba96bb0559460d1a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">When running the command:<div>$ mkvmerge -o out.webm in.we=
bm<br></div><div><br></div><div>mkvmerge will duplicate the value of=C2=A0W=
hitePointChromaticityX into=C2=A0WhitePointChromaticityY.=C2=A0</div><div><=
br></div><div>For example, do this to generate a test sample:</div><div>$ f=
fmpeg -f lavfi -i testsrc -vframes 1 -c:v libvpx-vp9 in.webm<br></div><div>=
$ mkvpropedit --edit track:1 --set white-coordinates-x=3D0.25 --set white-c=
oordinates-y=3D0.75 in.webm<br></div><div><br></div><div>Do a quick sanity =
check:</div><div>$ mkvinfo in.webm<br></div><div>[...trimmed...]</div><div>=
<div>| =C2=A0 =C2=A0 + White colour coordinate x: 0.25</div><div>| =C2=A0 =
=C2=A0 + White colour coordinate y: 0.75</div></div><div><br></div><div>$=
=C2=A0mkvmerge -o out.webm in.webm</div><div>$ mkvinfo out.webm</div><div>[=
...trimmed...]<br></div><div><div>| =C2=A0 =C2=A0 + White colour coordinate=
 x: 0.25</div><div>| =C2=A0 =C2=A0 + White colour coordinate y: 0.25</div><=
/div><div><br></div><div>As you can see, the white point&#39;s Y coordinate=
 is incorrect and is given the value of the X coordinate.</div></div>

--001a113ee3a8ba96bb0559460d1a--

--===============7348584633765684048==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Matroska-devel mailing list
[email protected]
https://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
--===============7348584633765684048==--