How to detect SDR/HDR version reliably?

Please post here for issues related to UHD discs
Post Reply
medikoo
Posts: 23
Joined: Thu Aug 06, 2020 4:23 pm

How to detect SDR/HDR version reliably?

Post by medikoo »

Hello, is there any way with MakeMKV to detect reliably whether a given 4K disc is either SDR, HDR10, HDR10+, and/or DV ?

I investigate the metadata, and there's information in `codeLong` field, from which I find it possible to detect Dolby vision, as it's marked as ""MpegH HEVC Main10@L5.1 (dvhe.07.06 BL+FEL+RPU)"

Still, as I checked HDR10+ discs, I do not see any information specific to HDR10+

Discs that are just HDR10 (No DV) will have "MpegH HEVC Main10@L5.1" description, still the very same description I find on 4K SDR discs.

So it appears there's no way to reliably diagnose if the disc is HDR10+, and for discs not having DV, there's no way to tell if it's SDR or HDR disc.

Is there any other utility that can help with that (ideally if it can be run from the command line)?
dcoke22
Posts: 2562
Joined: Wed Jul 22, 2020 11:25 pm

Re: How to detect SDR/HDR version reliably?

Post by dcoke22 »

Mediainfo gives lots of metadata details. Give it a try.
medikoo
Posts: 23
Joined: Thu Aug 06, 2020 4:23 pm

Re: How to detect SDR/HDR version reliably?

Post by medikoo »

@dcoke22 Great thanks I've tried it, and indeed there's a lot of valuable extra information there.

Still, interestingly it doesn't provide an info on Dolby Vision (but that I can get from MKV), also as I checked MediaInfo doesn't recognize Auro 3D audio tracks.

Nonetheless taking data from MakeMKV and MediaInfo gives a near complete picture indeed.
dcoke22
Posts: 2562
Joined: Wed Jul 22, 2020 11:25 pm

Re: How to detect SDR/HDR version reliably?

Post by dcoke22 »

You should double check the version of Mediainfo you're running. The latest versions do show info about DV and HDR in .mkv files.

See my post here: viewtopic.php?f=1&t=28376&p=123407#p123407
medikoo
Posts: 23
Joined: Thu Aug 06, 2020 4:23 pm

Re: How to detect SDR/HDR version reliably?

Post by medikoo »

I'm running it on movie backup files (specifically m2ts streams) not MKV files, and as of v22.06 version (which appears as latest) of MediaInfo, it's just DV video layer that is exposed as second video track:

Code: Select all


Video #1
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 19 min
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 206 cd/m2

Video #2
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 19 min
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
Post Reply