mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.68k stars 2.86k forks source link

Why is the colormatrix of a Dolby Vision video BT.709? #10573

Closed laichiaheng closed 1 year ago

laichiaheng commented 2 years ago

Shouldn't the colormatrix of Dolby Vision video BT.2020? However, it displays BT.709, and the Gamma is BT.1886.

By the way, I can't find the colormatrix in mediainfo for this video.

Format                                   : Matroska
Format version                           : Version 4
File size                                : 13.8 GiB
Duration                                 : 2 h 10 min
Overall bit rate                         : 15.1 Mb/s
Encoded date                             : UTC 2022-08-22 23:02:39
Writing application                      : mkvmerge v61.0.0 ('So') 64-bit
Writing library                          : libebml v1.4.2 + libmatroska v1.6.4

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 10 min
Bit rate                                 : 14.1 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 024 pixels
Display aspect ratio                     : 1.897
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.075
Stream size                              : 12.8 GiB (93%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
quietvoid commented 2 years ago

The HEVC files themselves have undefined VUI values in the bitstream, so mpv probably defaults to SDR in that case.

laichiaheng commented 2 years ago

The HEVC files themselves have undefined VUI values in the bitstream, so mpv probably defaults to SDR in that case.

How can I fix it?

quietvoid commented 2 years ago

You can't fix it. mpv has to be updated somehow to infer the video properties when Dolby Vision is present.

laichiaheng commented 2 years ago

You can't fix it. mpv has to be updated somehow to infer the video properties when Dolby Vision is present.

So it should be fine with other video players, right? Such as KODI on Android device.

quietvoid commented 2 years ago

It's entirely dependent on the device and whether or not it supports Dolby Vision playback. But yes, many Android devices can output Dolby Vision through Kodi.

Traneptora commented 1 year ago

Duplicate of #9761