This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] MKV Advanced Video Signaling Options Have No Effect
#1
Hi Selur,

I'm using the debug version of Hybrid that you gave me (2022.04.19.1), and I've been finding that I've been unable to get files with the Matroska advanced video signaling options stored in the tags. I'm specifically setting the Matrix, Range, White Color Coordinates & Chroma Coordinates.

My input file is an uncompressed MOV and I'm saving to an MKV-encapsulated FFV1 file. When I open the MKV in MediaInfo I don't see any of the tags I set. When I set them in MKVToolNix, I see the changes in MediaInfo...but that's not automated. Smile

There are no errors or anything that seem useful, but let me know if you need more information.

Thanks!
Reply
#2
Might be that I limited the signaling to specific video formats, will look at the code later.
Reply
#3
No, values get set independent of the video type, but mkvmerge needs to be used as muxer, which is not alwayse the case.

Cu Selur

Ps.: debug version , probably a dev version,...
Reply
#4
Send you a link to a dev version which should add/enforce mkvmerge muxing unless ffmpeg muxing is enforced.

Cu Selur
Reply
#5
Hi Selur,

Unfortunately, the messaged dev version didn't help... It's still not working. I think I was always using mkvmerge...

I've attached a link to a zip file with the profile, log output, video output, and a modified version of the output video with the tags correctly set for your reference. All this was made with the most recent dev version.

Here: https://drive.google.com/file/d/1cvXTI3H...sp=sharing

Maybe this will help reproduce the issue? Please let me know if you need any other information...

Thanks!
Reply
#6
The mucing call:
"C:\Program Files\Hybrid\64bit\mkvmerge.exe" --ui-language en -o "D:\VIDEO\2022-07-15@20_04_21_3310__05.mkv" --global-tags "C:\VIDEO\mkvtags_2022-07-15@20_04_21_3310__05.xml" --default-track 1:yes --colour-matrix 1:4 --colour-range 1:2 --chromaticity-coordinates 1:0.67,0.33,0.21,0.71,0.14,0.08 --white-colour-coordinates 1:0.3101,0.3162 --track-name 1:"UTC 2022-07-15 09:40:27" --default-duration "1:60/1i" --aspect-ratio-factor 1:1/1 --no-chapters --compression -1:none --forced-track 1:yes --no-audio --no-subtitles "C:\VIDEO\Test_2022-07-15@20_04_21_3310_04.mkv" --default-track 0:yes --forced-track 0:no -a 0 --compression -1:none --no-video --no-subtitles --no-chapters "C:\VIDEO\iId_1_aid_0_2022-07-15@20_04_21_3310_02.flac"
does contains:
--colour-matrix 1:4 --colour-range 1:2 --chromaticity-coordinates 1:0.67,0.33,0.21,0.71,0.14,0.08 --white-colour-coordinates 1:0.3101,0.3162
which seems to match what you the xml model contains:
<HybridData name="mkvAdvancedVideoSingaling" value="true"/>
  <HybridData name="mkvAttachmentExtractPassthrough" value="true"/>
  <HybridData name="mkvChromaSubsampleFrame"/>
  <HybridData name="mkvChromaSubsampleX" value="1"/>
  <HybridData name="mkvChromaSubsampleY" value="1"/>
  <HybridData name="mkvChromaticityCoordinatesBX" value="0.14"/>
  <HybridData name="mkvChromaticityCoordinatesBY" value="0.08"/>
  <HybridData name="mkvChromaticityCoordinatesFrame"/>
  <HybridData name="mkvChromaticityCoordinatesGX" value="0.21"/>
  <HybridData name="mkvChromaticityCoordinatesGY" value="0.71"/>
  <HybridData name="mkvChromaticityCoordinatesRX" value="0.67"/>
  <HybridData name="mkvChromaticityCoordinatesRY" value="0.33"/>
  <HybridData name="mkvClusterSeek" value="false"/>
  <HybridData name="mkvColorMatrix" value="FCC"/>
  <HybridData name="mkvColorRange" value="Full range (no clipping)"/>
  <HybridData name="mkvColorTransferCharacteristics" value="SMPTE 240M"/>
  <HybridData name="mkvColourBitsPerChannel" value="8-bit"/>
  <HybridData name="mkvColourPrimaries" value="SMPTE 240M"/>
  <HybridData name="mkvMaxContentLight" value="1000"/>
  <HybridData name="mkvMaxFrameLight" value="300"/>
  <HybridData name="mkvMaxLuminance" value="1000"/>
  <HybridData name="mkvMinLuminance" value="1e-04"/>
  <HybridData name="mkvNoCueDur" value="false"/>
  <HybridData name="mkvNoCueRelPos" value="false"/>
  <HybridData name="mkvNoLacing" value="false"/>
  <HybridData name="mkvNoSimpleBlocks" value="false"/>
  <HybridData name="mkvOnlyForcedSubtitles" value="false"/>
  <HybridData name="mkvTags" value="CONTENT_TYPE"/>
  <HybridData name="mkvWhiteColorCoordinatesFrame"/>
  <HybridData name="mkvWhiteColorCoordinatesX" value="0.3101"/>
  <HybridData name="mkvWhiteColorCoordinatesY" value="0.3162"/>
content of "C:\VIDEO\mkvtags_2022-07-15@20_04_21_3310__05.xml" looks fine too:
<Tag>
<Simple>
<Name>Encoding Gui</Name>
<String>Hybrid 2022.07.15.1</String>
</Simple>
</Tag>
</Tags>
=> no clue atm. what is missing from the mkvmerge call, will look at it later

Cu Selur
Reply
#7
Hmm, I tired to reproduc the problem by taking the Test.mkv file ad setting your settings:
[Image: mkvtagging.png]
and the output properly showed:
colour_description_present               : Yes
colour_description_present_Source        : Container
Color range                              : Full
colour_range_Source                      : Container
Color primaries                          : SMPTE 240M
colour_primaries_Source                  : Container
Transfer characteristics                 : SMPTE 240M
transfer_characteristics_Source          : Container
Matrix coefficients                      : FCC 73.682
matrix_coefficients_Source               : Container
Mastering display color primaries        : R: x=0.670000 y=0.080000, G: x=0.210000 y=0.710000, B: x=0.670000 y=0.330000, White point: x=0.310100 y=0.316200
MasteringDisplay_ColorPrimaries_Source   : Container
Mastering display luminance              : min: 0.0000 cd/m2, max: 1000 cd/m2
MasteringDisplay_Luminance_Source        : Container
Maximum Content Light Level              : 1000
MaxCLL_Source                            : Container
Maximum Frame-Average Light Level        : 300
MaxFALL_Source                           : Container
mkvmerge call for me looked like:
mkvmerge --ui-language en -o "E:\Output\2022-07-16@08_32_00_5310__03.mkv" --global-tags "E:\Temp\mkvtags_2022-07-16@08_32_00_5310__03.xml" -d 0 --default-track 0:yes --colour-matrix 0:4 --colour-range 0:2 --colour-transfer-characteristics 0:7 --colour-primaries 0:7 --max-content-light 0:1000 --max-frame-light 0:300 --max-luminance 0:1000.0 --min-luminance 0:0.0000 --chromaticity-coordinates 0:0.67,0.08,0.21,0.71,0.67,0.33 --white-colour-coordinates 0:0.3101,0.3162 --colour-bits-per-channel 0:8 --chroma-subsample 0:1,1 --default-duration "0:60/1i" --no-chapters --compression -1:none --forced-track 0:yes --no-audio --no-subtitles "E:\Temp\8bit_2022-07-16@08_32_00_5310_02.raw" --default-track 0:yes --forced-track 0:no -a 0 --compression -1:none --no-video --no-subtitles --no-chapters "E:\Temp\iId_1_aid_0_2022-07-16@08_32_00_5310_01.flac"

Cu Selur
Reply
#8
I can reproduce the isse when using your global profile.

First I thought that maybe one of these has to be set, but even using all the option:
mkvmerge --ui-language en -o "E:\Output\2022-07-16@10_11_49_2810__02.mkv" --global-tags "E:\Temp\mkvtags_2022-07-16@10_11_49_2810__02.xml" --default-track 1:yes --colour-matrix 1:4 --colour-range 1:2 --colour-transfer-characteristics 1:7 --colour-primaries 1:7 --max-content-light 1:1000 --max-frame-light 1:300 --max-luminance 1:1000.0 --min-luminance 1:0.0001 --chromaticity-coordinates 1:0.67,0.33,0.21,0.71,0.14,0.08 --white-colour-coordinates 1:0.3101,0.3162 --colour-bits-per-channel 1:8 --chroma-subsample 1:1,1 --default-duration "1:60000/1001i" --aspect-ratio-factor 1:8/9 --no-chapters --compression -1:none --forced-track 1:yes --no-audio --no-subtitles "E:\Temp\global_allset_2022-07-16@10_11_49_2810_01.mkv"
didn't have the tags.
-> then I noticed the cause of the problem, for some reason 1: is used while 0: should be used.
Reply
#9
-> send you a new link via pm for testing. (upload is finished in 5min)

Cu Selur
Reply
#10
Hi Selur,

Sorry for the late reply. The last dev release you sent me fixed the issue! 

Thank you so much!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)