HDR / Dolby Vision?

All about user-defined episode / movie / file name format expressions
mterrill
Posts: 32
Joined: 21 May 2018, 21:08

HDR / Dolby Vision?

Post by mterrill »

Hi,

I have seen a thread on here talking about HDR10, HDR10+ and Dolby Vision. How can i add these words to my file/folder names?

I tried the full code listed viewtopic.php?f=5&t=11052&p=45648&hilit ... ion#p45648 but it lists out [2160p HEVC HDR] for a Dolby Vision MKV file....

I.e. I just want to add the words "HDR10" or "HDR10+" or "Dolby Vision" to the file and folder name....

Here is what media info is saying about the file...

Code: Select all

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main [email protected]@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 36 min
Bit rate                                 : 88.5 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.445
Stream size                              : 59.3 GiB (89%)
Language                                 : English
Default                                  : No
Forced                                   : No
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
Original source medium                   : Blu-ray
mterrill
Posts: 32
Joined: 21 May 2018, 21:08

Re: HDR / Dolby Vision?

Post by mterrill »

My current naming scheme is

Code: Select all

D:\Movies To Move\{ny.colon(' - ').replace('?', '!')} {tags} {fn.match(/REMUX/).upper().replace('REMUX','[REMUX]')} {hd == 'UHD' ? ' [UHD]':''}{' ['+hdr+']'}{'/'}{ny.colon(' - ').replace('?', '!')}{allOf{tags.join(', ')}{vs}{hd}{hdr}{fn.match(/REMUX/)}{aco}{group}.joining('] [', ' [', ']')}
Any help would be greatly appreciated. Thanks in advance
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR / Dolby Vision?

Post by rednoah »

Have you tried the {hdr} and {bitdepth} bindings yet?

Code: Select all

{hdr}

Code: Select all

{bitdepth}

Code: Select all

{hdr + bitdepth}

If {hdr} and {bitdepth} don't work for you, then you will have to infer the values you want from the appropriate MediaInfo bindings:
viewtopic.php?t=4285
:idea: Please read the FAQ and How to Request Help.
mterrill
Posts: 32
Joined: 21 May 2018, 21:08

Re: HDR / Dolby Vision?

Post by mterrill »

rednoah wrote: 11 Jan 2021, 03:51 Have you tried the {hdr} and {bitdepth} bindings yet?

If {hdr} and {bitdepth} don't work for you, then you will have to infer the values you want from the appropriate MediaInfo bindings:
viewtopic.php?t=4285
Thanks, yes i already use the hdr binding to tell me if it is UHD etc....

using mediainfo value of

Code: Select all

{video[0].HDRformat}
gives me [SMPTE ST 2086] in the filename , while mediainfo gives output of

Code: Select all

Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
my question is how do I convert what media info is saying into the word 'Dolby Vision" rather than SMPTE ST 2086 ? or cant this be done?
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HDR / Dolby Vision?

Post by kim »

something like this

Code: Select all

{
	def HDRMap = [
		"HDR10": "HDR10",
		"SMPTE ST 2086": "HDR10",
		"SMPTE ST 2094 App 4": "HDR10+",
		"Dolby Vision": "Dolby Vision",
		"Dolby Vision / SMPTE ST 2086": "Dolby Vision",
		"Dolby Vision / HDR10": "Dolby Vision"
	]
	def HDRtype = video.collect{ vid -> any{ vid["HDR_Format_Commercial"] }{ vid["HDR_Format"].match('Dolby Vision') }{ vid["HDR_Format"] }{ hdr } }.find()
	any{HDRMap.get(HDRtype)}{''}
}
tip: ask devster for updated version or hdr info ;)
viewtopic.php?f=5&t=11052

I dont have the needed hdr info to make proper format
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR / Dolby Vision?

Post by rednoah »

You could do a simple check like so:

Code: Select all

video.HDR_Format =~ /SMPTE.ST.2086/ ? "Dolby Vision" : null
:idea: Please read the FAQ and How to Request Help.
mterrill
Posts: 32
Joined: 21 May 2018, 21:08

Re: HDR / Dolby Vision?

Post by mterrill »

kim wrote: 13 Jan 2021, 02:51
tip: ask devster for updated version or hdr info ;)
viewtopic.php?f=5&t=11052
Thanks, but I used that code from that thread, and all I get is "2160p HEVC HDR" , I dont know how to modify the code to just get Dolby Vision / HDR10 / HDR10+
mterrill
Posts: 32
Joined: 21 May 2018, 21:08

Re: HDR / Dolby Vision?

Post by mterrill »

kim wrote: 13 Jan 2021, 02:51

Code: Select all

{
	def HDRMap = [
		"HDR10": "HDR10",
		"SMPTE ST 2086": "HDR10",
		"SMPTE ST 2094 App 4": "HDR10+",
		"Dolby Vision": "Dolby Vision",
		"Dolby Vision / SMPTE ST 2086": "Dolby Vision",
		"Dolby Vision / HDR10": "Dolby Vision"
	]
	def HDRtype = video.collect{ vid -> any{ vid["HDR_Format_Commercial"] }{ vid["HDR_Format"].match('Dolby Vision') }{ vid["HDR_Format"] }{ hdr } }.find()
	any{HDRMap.get(HDRtype)}{''}
}
I used the above, but only get HDR 10 , not Dolby Vision,

Have asked Devster...
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HDR / Dolby Vision?

Post by kim »

if you are lucky maybe this will be enough?

Code: Select all

{ any{ hdr }{ video[0]["HDR_Format"].match('Dolby Vision') } }
btw: with your sample it does work

Code: Select all

HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible

demo:

Code: Select all

{ "Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible".match('Dolby Vision') }
titooo7
Posts: 3
Joined: 18 Jan 2021, 15:36

Re: HDR / Dolby Vision?

Post by titooo7 »

mterrill wrote: 13 Jan 2021, 06:11
kim wrote: 13 Jan 2021, 02:51

Code: Select all

{
	def HDRMap = [
		"HDR10": "HDR10",
		"SMPTE ST 2086": "HDR10",
		"SMPTE ST 2094 App 4": "HDR10+",
		"Dolby Vision": "Dolby Vision",
		"Dolby Vision / SMPTE ST 2086": "Dolby Vision",
		"Dolby Vision / HDR10": "Dolby Vision"
	]
	def HDRtype = video.collect{ vid -> any{ vid["HDR_Format_Commercial"] }{ vid["HDR_Format"].match('Dolby Vision') }{ vid["HDR_Format"] }{ hdr } }.find()
	any{HDRMap.get(HDRtype)}{''}
}
I used the above, but only get HDR 10 , not Dolby Vision,

Have asked Devster...
This seems to be working for me:

Code: Select all

def ishdr =
        (any{video.HDR_Format}{0} =~ /Dolby.Vision/
        ) ? '[Dolby Vision]' :
        ( any{hdr.size()}{0} == 0
        ) ? '' : '[' + hdr + ']'
If the file is HDR then it will rename it as "HDR", "HDR10", "HDR10+" or "Dolby Vision" accordingly.

For the Dolby Vision ones I would have liked if it could specify when it was "HDR10 Dolby Vision" or "HDR10+ Dolby Vision" rather than just "Dolby Vision" but that's all I could do. I guess it would be easier to do it for someone with programming knowledge
Last edited by titooo7 on 18 Jan 2021, 18:11, edited 1 time in total.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HDR / Dolby Vision?

Post by kim »

same result:

Code: Select all

{ any{video["HDR_Format"]*.match('Dolby Vision')}{'[' + hdr + ']'}{''} }
I don't think this will ever show "HDR10+" ?
for this you need something like

Code: Select all

"SMPTE ST 2094 App 4": "HDR10+",
"HDR10 Dolby Vision" BUT WHY... this is not a thing...
e.g. Dolby Vision default to HDR10 if your e.g. TV does not support it... it's not HDR10 AND Dolby Vision
HDR_Format/String SMPTE ST 2086, HDR10 compatible
get Metadata (SMPTE ST) info:
https://en.wikipedia.org/wiki/High-dynamic-range_video

@rednoah
maybe make

Code: Select all

{hdr}
fallback to

Code: Select all

{ video[0]["HDR_Format"].match('Dolby Vision') }
if HDR_Format_Commercial is missing ? (mterrill's file does not have it)
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR / Dolby Vision?

Post by rednoah »

1.
{hdr} already has a fallback that works like this:

Code: Select all

bitdepth >= 10 && video.colour_primaries =~ /BT.2020/ ? "HDR" : null

2.
kim wrote: 19 Jan 2021, 22:36 mterrill's file does not have it
Not sure. The OP only posted mediainfo human-readable output which doesn't really tell us anything that we can act upon.


:idea: We'd have to see the raw name/value pairs based on the specific version of libmediainfo in use in this context:

Code: Select all

filebot -script fn:mediainfo /path/to/file
:idea: Please read the FAQ and How to Request Help.
titooo7
Posts: 3
Joined: 18 Jan 2021, 15:36

Re: HDR / Dolby Vision?

Post by titooo7 »

@kim with the following code every HDR gets renamed correctly for me

Code: Select all

def ishdr =
        (any{video.HDR_Format}{0} =~ /Dolby.Vision/
        ) ? '[' + hdr + 'Dolby Vision]' :
        ( any{hdr.size()}{0} == 0
        ) ? '' : '[' + hdr + ']'
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR / Dolby Vision?

Post by rednoah »

FileBot r8325 changes {hdr} to search the various HDR-related fields for specific keywords, i.e. Dolby Vision | HDR10+ | HDR10.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HDR / Dolby Vision?

Post by kim »

NO HDR_Format.* data in the first file = fail if it really is HDR

@titooo7 can you try the first file here or update the mediainfo:
https://mediaarea.net/MediaInfoOnline
(Selec t the MediaInfo output - MediaInfo XML or JSON)
mterrill
Posts: 32
Joined: 21 May 2018, 21:08

Re: HDR / Dolby Vision?

Post by mterrill »

rednoah wrote: 20 Jan 2021, 04:53 :idea: We'd have to see the raw name/value pairs based on the specific version of libmediainfo in use in this context:

Code: Select all

filebot -script fn:mediainfo /path/to/file

Code: Select all

[General]
Count                      : 331
StreamCount                : 1
StreamKind                 : General
StreamKind/String          : General
StreamKindID               : 0
UniqueID                   : 81983848808702771600047013598402313378
UniqueID/String            : 81983848808702771600047013598402313378 (0x3DAD83D2F4AD911B3D9A49E1ECA1FCA2)
VideoCount                 : 1
AudioCount                 : 8
TextCount                  : 1
MenuCount                  : 1
Video_Format_List          : HEVC
Video_Format_WithHint_List : HEVC
Video_Codec_List           : HEVC
Video_Language_List        : English
Audio_Format_List          : DTS XLL / DTS / DTS XLL / DTS / DTS XLL / DTS / AC-3 / AC-3
Audio_Format_WithHint_List : DTS XLL / DTS / DTS XLL / DTS / DTS XLL / DTS / AC-3 / AC-3
Audio_Codec_List           : DTS XLL / DTS / DTS XLL / DTS / DTS XLL / DTS / AC-3 / AC-3
Audio_Language_List        : English / English / English / English / English / English / English / English
Text_Format_List           : PGS
Text_Format_WithHint_List  : PGS
Text_Codec_List            : PGS
Text_Language_List         : English
CompleteName               : TREMORS 1990 2160p UHD Blu-ray Remux DTSHD 5.1 SL DV\TREMORS 1990 2160p UHD Blu-ray Remux DTSHD 5.1 SL DV.mkv
FolderName                 :TREMORS 1990 2160p UHD Blu-ray Remux DTSHD 5.1 SL DV
FileNameExtension          : TREMORS 1990 2160p UHD Blu-ray Remux DTSHD 5.1 SL DV.mkv
FileName                   : TREMORS 1990 2160p UHD Blu-ray Remux DTSHD 5.1 SL DV
FileExtension              : mkv
Format                     : Matroska
Format/String              : Matroska
Format/Url                 : https://matroska.org/downloads/windows.html
Format/Extensions          : mkv mk3d mka mks
Format_Commercial          : Matroska
Format_Version             : Version 2
FileSize                   : 71638531967
FileSize/String            : 66.7 GiB
FileSize/String1           : 67 GiB
FileSize/String2           : 67 GiB
FileSize/String3           : 66.7 GiB
FileSize/String4           : 66.72 GiB
Duration                   : 5760768
Duration/String            : 1 h 36 min
Duration/String1           : 1 h 36 min 0 s 768 ms
Duration/String2           : 1 h 36 min
Duration/String3           : 01:36:00.768
Duration/String4           : 01:36:01;23
Duration/String5           : 01:36:00.768 (01:36:01;23)
OverallBitRate_Mode        : VBR
OverallBitRate_Mode/String : Variable
OverallBitRate             : 99484696
OverallBitRate/String      : 99.5 Mb/s
FrameRate                  : 23.976
FrameRate/String           : 23.976 FPS
FrameCount                 : 138113
StreamSize                 : 7299866
StreamSize/String          : 6.96 MiB (0%)
StreamSize/String1         : 7 MiB
StreamSize/String2         : 7.0 MiB
StreamSize/String3         : 6.96 MiB
StreamSize/String4         : 6.962 MiB
StreamSize/String5         : 6.96 MiB (0%)
StreamSize_Proportion      : 0.00010
IsStreamable               : Yes
Title                      : TREMORS - 4K UHD
Movie                      : TREMORS - 4K UHD
Encoded_Date               : UTC 2020-12-15 16:59:31
File_Created_Date          : UTC 2020-12-29 08:56:50.344
File_Created_Date_Local    : 2020-12-29 21:56:50.344
File_Modified_Date         : UTC 2020-12-29 11:02:48.761
File_Modified_Date_Local   : 2020-12-30 00:02:48.761
Encoded_Application        : MakeMKV v1.15.4 win(x64-release)
Encoded_Application/String : MakeMKV v1.15.4 win(x64-release)
Encoded_Library            : libmakemkv v1.15.4 (1.3.10/1.5.2) win(x64-release)
Encoded_Library/String     : libmakemkv v1.15.4 (1.3.10/1.5.2) win(x64-release)

[Video]
Count                                  : 378
StreamCount                            : 1
StreamKind                             : Video
StreamKind/String                      : Video
StreamKindID                           : 0
StreamOrder                            : 0
ID                                     : 1
ID/String                              : 1
OriginalSourceMedium_ID                : 4113
OriginalSourceMedium_ID/String         : 4113 (0x1011)
UniqueID                               : 1
Format                                 : HEVC
Format/String                          : HEVC
Format/Info                            : High Efficiency Video Coding
Format/Url                             : http://www.itu.int
Format_Commercial                      : HEVC
Format_Profile                         : Main [email protected]@High
HDR_Format                             : SMPTE ST 2086
HDR_Format/String                      : SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial                  : HDR10
HDR_Format_Compatibility               : HDR10
InternetMediaType                      : video/H265
CodecID                                : V_MPEGH/ISO/HEVC
Duration                               : 5760463.041666
Duration/String                        : 1 h 36 min
Duration/String1                       : 1 h 36 min 0 s 463 ms
Duration/String2                       : 1 h 36 min
Duration/String3                       : 01:36:00.463
Duration/String4                       : 01:36:01;23
Duration/String5                       : 01:36:00.463 (01:36:01;23)
BitRate                                : 88488393
BitRate/String                         : 88.5 Mb/s
Width                                  : 3840
Width/String                           : 3 840 pixels
Height                                 : 2160
Height/String                          : 2 160 pixels
Sampled_Width                          : 3840
Sampled_Height                         : 2160
PixelAspectRatio                       : 1.000
DisplayAspectRatio                     : 1.778
DisplayAspectRatio/String              : 16:9
FrameRate_Mode                         : CFR
FrameRate_Mode/String                  : Constant
FrameRate                              : 23.976
FrameRate/String                       : 23.976 (24000/1001) FPS
FrameRate_Num                          : 24000
FrameRate_Den                          : 1001
FrameCount                             : 138113
ColorSpace                             : YUV
ChromaSubsampling                      : 4:2:0
ChromaSubsampling/String               : 4:2:0 (Type 2)
ChromaSubsampling_Position             : Type 2
BitDepth                               : 10
BitDepth/String                        : 10 bits
Bits-(Pixel*Frame)                     : 0.445
Delay                                  : 0
Delay/String3                          : 00:00:00.000
Delay_Source                           : Container
Delay_Source/String                    : Container
StreamSize                             : 63716764584
StreamSize/String                      : 59.3 GiB (89%)
StreamSize/String1                     : 59 GiB
StreamSize/String2                     : 59 GiB
StreamSize/String3                     : 59.3 GiB
StreamSize/String4                     : 59.34 GiB
StreamSize/String5                     : 59.3 GiB (89%)
StreamSize_Proportion                  : 0.88942
Language                               : en
Language/String                        : English
Language/String1                       : English
Language/String2                       : en
Language/String3                       : eng
Language/String4                       : en
Default                                : No
Default/String                         : No
Forced                                 : No
Forced/String                          : No
colour_description_present             : Yes
colour_description_present_Source      : Stream
colour_range                           : Limited
colour_range_Source                    : Stream
colour_primaries                       : BT.2020
colour_primaries_Source                : Stream
transfer_characteristics               : PQ
transfer_characteristics_Source        : Stream
matrix_coefficients                    : BT.2020 non-constant
matrix_coefficients_Source             : Stream
MasteringDisplay_ColorPrimaries        : BT.2020
MasteringDisplay_ColorPrimaries_Source : Stream
MasteringDisplay_Luminance             : min: 0.0001 cd/m2, max: 1000 cd/m2
MasteringDisplay_Luminance_Source      : Stream
OriginalSourceMedium                   : Blu-ray

[Audio]
Count                          : 281
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 0
StreamKindPos                  : 1
StreamOrder                    : 1
ID                             : 2
ID/String                      : 2
OriginalSourceMedium_ID        : 4352
OriginalSourceMedium_ID/String : 4352 (0x1100)
UniqueID                       : 2
Format                         : DTS
Format/String                  : DTS XLL
Format/Info                    : Digital Theater Systems
Format/Url                     : https://en.wikipedia.org/wiki/DTS_(sound_system)
Format_Commercial              : DTS-HD Master Audio
Format_Commercial_IfAny        : DTS-HD Master Audio
Format_Settings_Mode           : 16
Format_Settings_Endianness     : Big
Format_AdditionalFeatures      : XLL
CodecID                        : A_DTS
Duration                       : 5760469.333333
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 469 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.469
Duration/String4               : 01:35:45:14
Duration/String5               : 01:36:00.469 (01:35:45:14)
BitRate_Mode                   : VBR
BitRate_Mode/String            : Variable
BitRate                        : 1734147
BitRate/String                 : 1 734 kb/s
Channel(s)                     : 2
Channel(s)/String              : 2 channels
ChannelPositions               : Front: L R
ChannelPositions/String2       : 2/0/0
ChannelLayout                  : L R
SamplesPerFrame                : 512
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276502512
FrameRate                      : 93.750
FrameRate/String               : 93.750 FPS (512 SPF)
FrameCount                     : 540044
BitDepth                       : 24
BitDepth/String                : 24 bits
Compression_Mode               : Lossless
Compression_Mode/String        : Lossless
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 1248687628
StreamSize/String              : 1.16 GiB (2%)
StreamSize/String1             : 1 GiB
StreamSize/String2             : 1.2 GiB
StreamSize/String3             : 1.16 GiB
StreamSize/String4             : 1.163 GiB
StreamSize/String5             : 1.16 GiB (2%)
StreamSize_Proportion          : 0.01743
Title                          : Stereo
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
Default                        : Yes
Default/String                 : Yes
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray

[Audio]
Count                          : 281
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 1
StreamKindPos                  : 2
StreamOrder                    : 2
ID                             : 3
ID/String                      : 3
OriginalSourceMedium_ID        : 4352
OriginalSourceMedium_ID/String : 4352 (0x1100)
UniqueID                       : 3
Format                         : DTS
Format/String                  : DTS
Format/Info                    : Digital Theater Systems
Format/Url                     : https://en.wikipedia.org/wiki/DTS_(sound_system)
Format_Commercial              : DTS
Format_Settings_Mode           : 16
Format_Settings_Endianness     : Big
CodecID                        : A_DTS
Duration                       : 5760469.333333
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 469 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.469
Duration/String4               : 01:35:45:14
Duration/String5               : 01:36:00.469 (01:35:45:14)
BitRate_Mode                   : CBR
BitRate_Mode/String            : Constant
BitRate                        : 768000
BitRate/String                 : 768 kb/s
Channel(s)                     : 2
Channel(s)/String              : 2 channels
ChannelPositions               : Front: L R
ChannelPositions/String2       : 2/0/0.0
ChannelLayout                  : L R
SamplesPerFrame                : 512
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276502512
FrameRate                      : 93.750
FrameRate/String               : 93.750 FPS (512 SPF)
FrameCount                     : 540044
BitDepth                       : 24
BitDepth/String                : 24 bits
Compression_Mode               : Lossy
Compression_Mode/String        : Lossy
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 553005056
StreamSize/String              : 527 MiB (1%)
StreamSize/String1             : 527 MiB
StreamSize/String2             : 527 MiB
StreamSize/String3             : 527 MiB
StreamSize/String4             : 527.4 MiB
StreamSize/String5             : 527 MiB (1%)
StreamSize_Proportion          : 0.00772
Title                          : Stereo
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray

[Audio]
Count                          : 281
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 2
StreamKindPos                  : 3
StreamOrder                    : 3
ID                             : 4
ID/String                      : 4
OriginalSourceMedium_ID        : 4353
OriginalSourceMedium_ID/String : 4353 (0x1101)
UniqueID                       : 4
Format                         : DTS
Format/String                  : DTS XLL
Format/Info                    : Digital Theater Systems
Format/Url                     : https://en.wikipedia.org/wiki/DTS_(sound_system)
Format_Commercial              : DTS-HD Master Audio
Format_Commercial_IfAny        : DTS-HD Master Audio
Format_Settings_Mode           : 16
Format_Settings_Endianness     : Big
Format_AdditionalFeatures      : XLL
CodecID                        : A_DTS
Duration                       : 5760469.333333
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 469 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.469
Duration/String4               : 01:35:45:14
Duration/String5               : 01:36:00.469 (01:35:45:14)
BitRate_Mode                   : VBR
BitRate_Mode/String            : Variable
BitRate                        : 2876248
BitRate/String                 : 2 876 kb/s
Channel(s)                     : 4
Channel(s)/String              : 4 channels
ChannelPositions               : Front: L C R, Back: C
ChannelPositions/String2       : 3/0/1
ChannelLayout                  : C L R Cb
SamplesPerFrame                : 512
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276502512
FrameRate                      : 93.750
FrameRate/String               : 93.750 FPS (512 SPF)
FrameCount                     : 540044
BitDepth                       : 24
BitDepth/String                : 24 bits
Compression_Mode               : Lossless
Compression_Mode/String        : Lossless
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 2071067684
StreamSize/String              : 1.93 GiB (3%)
StreamSize/String1             : 2 GiB
StreamSize/String2             : 1.9 GiB
StreamSize/String3             : 1.93 GiB
StreamSize/String4             : 1.929 GiB
StreamSize/String5             : 1.93 GiB (3%)
StreamSize_Proportion          : 0.02891
Title                          : Surround 4.0
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray

[Audio]
Count                          : 281
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 3
StreamKindPos                  : 4
StreamOrder                    : 4
ID                             : 5
ID/String                      : 5
OriginalSourceMedium_ID        : 4353
OriginalSourceMedium_ID/String : 4353 (0x1101)
UniqueID                       : 5
Format                         : DTS
Format/String                  : DTS
Format/Info                    : Digital Theater Systems
Format/Url                     : https://en.wikipedia.org/wiki/DTS_(sound_system)
Format_Commercial              : DTS
Format_Settings_Mode           : 16
Format_Settings_Endianness     : Big
CodecID                        : A_DTS
Duration                       : 5760469.333333
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 469 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.469
Duration/String4               : 01:35:45:14
Duration/String5               : 01:36:00.469 (01:35:45:14)
BitRate_Mode                   : CBR
BitRate_Mode/String            : Constant
BitRate                        : 768000
BitRate/String                 : 768 kb/s
Channel(s)                     : 4
Channel(s)/String              : 4 channels
ChannelPositions               : Front: L C R, Back: C
ChannelPositions/String2       : 3/1/0.0
ChannelLayout                  : C L R Cb
SamplesPerFrame                : 512
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276502512
FrameRate                      : 93.750
FrameRate/String               : 93.750 FPS (512 SPF)
FrameCount                     : 540044
BitDepth                       : 24
BitDepth/String                : 24 bits
Compression_Mode               : Lossy
Compression_Mode/String        : Lossy
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 553005056
StreamSize/String              : 527 MiB (1%)
StreamSize/String1             : 527 MiB
StreamSize/String2             : 527 MiB
StreamSize/String3             : 527 MiB
StreamSize/String4             : 527.4 MiB
StreamSize/String5             : 527 MiB (1%)
StreamSize_Proportion          : 0.00772
Title                          : Surround 4.0
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray

[Audio]
Count                          : 281
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 4
StreamKindPos                  : 5
StreamOrder                    : 5
ID                             : 6
ID/String                      : 6
OriginalSourceMedium_ID        : 4354
OriginalSourceMedium_ID/String : 4354 (0x1102)
UniqueID                       : 6
Format                         : DTS
Format/String                  : DTS XLL
Format/Info                    : Digital Theater Systems
Format/Url                     : https://en.wikipedia.org/wiki/DTS_(sound_system)
Format_Commercial              : DTS-HD Master Audio
Format_Commercial_IfAny        : DTS-HD Master Audio
Format_Settings_Mode           : 16
Format_Settings_Endianness     : Big
Format_AdditionalFeatures      : XLL
CodecID                        : A_DTS
Duration                       : 5760469.333333
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 469 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.469
Duration/String4               : 01:35:45:14
Duration/String5               : 01:36:00.469 (01:35:45:14)
BitRate_Mode                   : VBR
BitRate_Mode/String            : Variable
BitRate                        : 3655154
BitRate/String                 : 3 655 kb/s
Channel(s)                     : 6
Channel(s)/String              : 6 channels
ChannelPositions               : Front: L C R, Side: L R, LFE
ChannelPositions/String2       : 3/2/0.1
ChannelLayout                  : C L R Ls Rs LFE
SamplesPerFrame                : 512
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276502512
FrameRate                      : 93.750
FrameRate/String               : 93.750 FPS (512 SPF)
FrameCount                     : 540044
BitDepth                       : 24
BitDepth/String                : 24 bits
Compression_Mode               : Lossless
Compression_Mode/String        : Lossless
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 2631925268
StreamSize/String              : 2.45 GiB (4%)
StreamSize/String1             : 2 GiB
StreamSize/String2             : 2.5 GiB
StreamSize/String3             : 2.45 GiB
StreamSize/String4             : 2.451 GiB
StreamSize/String5             : 2.45 GiB (4%)
StreamSize_Proportion          : 0.03674
Title                          : Surround 5.1
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray

[Audio]
Count                          : 281
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 5
StreamKindPos                  : 6
StreamOrder                    : 6
ID                             : 7
ID/String                      : 7
OriginalSourceMedium_ID        : 4354
OriginalSourceMedium_ID/String : 4354 (0x1102)
UniqueID                       : 7
Format                         : DTS
Format/String                  : DTS
Format/Info                    : Digital Theater Systems
Format/Url                     : https://en.wikipedia.org/wiki/DTS_(sound_system)
Format_Commercial              : DTS
Format_Settings_Mode           : 16
Format_Settings_Endianness     : Big
CodecID                        : A_DTS
Duration                       : 5760469.333333
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 469 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.469
Duration/String4               : 01:35:45:14
Duration/String5               : 01:36:00.469 (01:35:45:14)
BitRate_Mode                   : CBR
BitRate_Mode/String            : Constant
BitRate                        : 768000
BitRate/String                 : 768 kb/s
Channel(s)                     : 6
Channel(s)/String              : 6 channels
ChannelPositions               : Front: L C R, Side: L R, LFE
ChannelPositions/String2       : 3/2/0.1
ChannelLayout                  : C L R Ls Rs LFE
SamplesPerFrame                : 512
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276502512
FrameRate                      : 93.750
FrameRate/String               : 93.750 FPS (512 SPF)
FrameCount                     : 540044
BitDepth                       : 24
BitDepth/String                : 24 bits
Compression_Mode               : Lossy
Compression_Mode/String        : Lossy
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 553005056
StreamSize/String              : 527 MiB (1%)
StreamSize/String1             : 527 MiB
StreamSize/String2             : 527 MiB
StreamSize/String3             : 527 MiB
StreamSize/String4             : 527.4 MiB
StreamSize/String5             : 527 MiB (1%)
StreamSize_Proportion          : 0.00772
Title                          : Surround 5.1
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray

[Audio]
Count                          : 312
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 6
StreamKindPos                  : 7
StreamOrder                    : 7
ID                             : 8
ID/String                      : 8
OriginalSourceMedium_ID        : 4355
OriginalSourceMedium_ID/String : 4355 (0x1103)
UniqueID                       : 8
Format                         : AC-3
Format/String                  : AC-3
Format/Info                    : Audio Coding 3
Format/Url                     : https://en.wikipedia.org/wiki/AC3
Format_Commercial              : Dolby Digital
Format_Commercial_IfAny        : Dolby Digital
Format_Settings_Endianness     : Big
CodecID                        : A_AC3
Duration                       : 5760832.000000
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 832 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.832
Duration/String4               : 01:36:47:09
Duration/String5               : 01:36:00.832 (01:36:47:09)
BitRate_Mode                   : CBR
BitRate_Mode/String            : Constant
BitRate                        : 192000
BitRate/String                 : 192 kb/s
Channel(s)                     : 2
Channel(s)/String              : 2 channels
ChannelPositions               : Front: L R
ChannelPositions/String2       : 2/0/0
ChannelLayout                  : L R
SamplesPerFrame                : 1536
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276519936
FrameRate                      : 31.250
FrameRate/String               : 31.250 FPS (1536 SPF)
FrameCount                     : 180026
Compression_Mode               : Lossy
Compression_Mode/String        : Lossy
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 138259968
StreamSize/String              : 132 MiB (0%)
StreamSize/String1             : 132 MiB
StreamSize/String2             : 132 MiB
StreamSize/String3             : 132 MiB
StreamSize/String4             : 131.9 MiB
StreamSize/String5             : 132 MiB (0%)
StreamSize_Proportion          : 0.00193
Title                          : Stereo
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
ServiceKind                    : CM
ServiceKind/String             : Complete Main
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray
bsid                           : 8
dialnorm                       : -31
dialnorm/String                : -31 dB
compr                          : -0.28
compr/String                   : -0.28 dB
dynrng                         : 10.56
dynrng/String                  : 10.56 dB
dsurmod                        : 0
acmod                          : 2
lfeon                          : 0
dialnorm_Average               : -31
dialnorm_Average/String        : -31 dB
dialnorm_Minimum               : -31
dialnorm_Minimum/String        : -31 dB
dialnorm_Maximum               : -31
dialnorm_Maximum/String        : -31 dB
dialnorm_Count                 : 246
compr_Average                  : 4.29
compr_Average/String           : 4.29 dB
compr_Minimum                  : 0.53
compr_Minimum/String           : 0.53 dB
compr_Maximum                  : 5.74
compr_Maximum/String           : 5.74 dB
compr_Count                    : 238
dynrng_Average                 : 10.71
dynrng_Average/String          : 10.71 dB
dynrng_Minimum                 : -22.14
dynrng_Minimum/String          : -22.14 dB
dynrng_Maximum                 : 22.76
dynrng_Maximum/String          : 22.76 dB
dynrng_Count                   : 246

[Audio]
Count                          : 312
StreamCount                    : 8
StreamKind                     : Audio
StreamKind/String              : Audio
StreamKindID                   : 7
StreamKindPos                  : 8
StreamOrder                    : 8
ID                             : 9
ID/String                      : 9
OriginalSourceMedium_ID        : 4356
OriginalSourceMedium_ID/String : 4356 (0x1104)
UniqueID                       : 9
Format                         : AC-3
Format/String                  : AC-3
Format/Info                    : Audio Coding 3
Format/Url                     : https://en.wikipedia.org/wiki/AC3
Format_Commercial              : Dolby Digital
Format_Commercial_IfAny        : Dolby Digital
Format_Settings_Endianness     : Big
CodecID                        : A_AC3
Duration                       : 5760448.000000
Duration/String                : 1 h 36 min
Duration/String1               : 1 h 36 min 0 s 448 ms
Duration/String2               : 1 h 36 min
Duration/String3               : 01:36:00.448
Duration/String4               : 01:36:46:28
Duration/String5               : 01:36:00.448 (01:36:46:28)
BitRate_Mode                   : CBR
BitRate_Mode/String            : Constant
BitRate                        : 192000
BitRate/String                 : 192 kb/s
Channel(s)                     : 2
Channel(s)/String              : 2 channels
ChannelPositions               : Front: L R
ChannelPositions/String2       : 2/0/0
ChannelLayout                  : L R
SamplesPerFrame                : 1536
SamplingRate                   : 48000
SamplingRate/String            : 48.0 kHz
SamplingCount                  : 276501504
FrameRate                      : 31.250
FrameRate/String               : 31.250 FPS (1536 SPF)
FrameCount                     : 180014
Compression_Mode               : Lossy
Compression_Mode/String        : Lossy
Delay                          : 0
Delay/String3                  : 00:00:00.000
Delay_Source                   : Container
Delay_Source/String            : Container
Video_Delay                    : 0
Video_Delay/String3            : 00:00:00.000
StreamSize                     : 138250752
StreamSize/String              : 132 MiB (0%)
StreamSize/String1             : 132 MiB
StreamSize/String2             : 132 MiB
StreamSize/String3             : 132 MiB
StreamSize/String4             : 131.8 MiB
StreamSize/String5             : 132 MiB (0%)
StreamSize_Proportion          : 0.00193
Title                          : Stereo
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
ServiceKind                    : CM
ServiceKind/String             : Complete Main
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray
bsid                           : 8
dialnorm                       : -31
dialnorm/String                : -31 dB
compr                          : -0.28
compr/String                   : -0.28 dB
dynrng                         : 10.40
dynrng/String                  : 10.40 dB
dsurmod                        : 0
acmod                          : 2
lfeon                          : 0
dialnorm_Average               : -31
dialnorm_Average/String        : -31 dB
dialnorm_Minimum               : -31
dialnorm_Minimum/String        : -31 dB
dialnorm_Maximum               : -31
dialnorm_Maximum/String        : -31 dB
dialnorm_Count                 : 246
compr_Average                  : 4.33
compr_Average/String           : 4.33 dB
compr_Minimum                  : 0.53
compr_Minimum/String           : 0.53 dB
compr_Maximum                  : 5.74
compr_Maximum/String           : 5.74 dB
compr_Count                    : 238
dynrng_Average                 : 8.72
dynrng_Average/String          : 8.72 dB
dynrng_Minimum                 : -20.20
dynrng_Minimum/String          : -20.20 dB
dynrng_Maximum                 : 22.44
dynrng_Maximum/String          : 22.44 dB
dynrng_Count                   : 245

[Text]
Count                          : 239
StreamCount                    : 1
StreamKind                     : Text
StreamKind/String              : Text
StreamKindID                   : 0
StreamOrder                    : 9
ID                             : 10
ID/String                      : 10
OriginalSourceMedium_ID        : 4768
OriginalSourceMedium_ID/String : 4768 (0x12A0)
UniqueID                       : 10
Format                         : PGS
Format/String                  : PGS
Format_Commercial              : PGS
CodecID                        : S_HDMV/PGS
CodecID/Info                   : Picture based subtitle format used on BDs/HD-DVDs
Duration                       : 5700257.062500
Duration/String                : 1 h 35 min
Duration/String1               : 1 h 35 min 0 s 257 ms
Duration/String2               : 1 h 35 min
Duration/String3               : 01:35:00.257
Duration/String5               : 01:35:00.257
BitRate                        : 38259
BitRate/String                 : 38.3 kb/s
FrameRate                      : 0.453
FrameRate/String               : 0.453 FPS
FrameCount                     : 2582
ElementCount                   : 2582
StreamSize                     : 27261049
StreamSize/String              : 26.0 MiB (0%)
StreamSize/String1             : 26 MiB
StreamSize/String2             : 26 MiB
StreamSize/String3             : 26.0 MiB
StreamSize/String4             : 26.00 MiB
StreamSize/String5             : 26.0 MiB (0%)
StreamSize_Proportion          : 0.00038
Language                       : en
Language/String                : English
Language/String1               : English
Language/String2               : en
Language/String3               : eng
Language/String4               : en
Default                        : No
Default/String                 : No
Forced                         : No
Forced/String                  : No
OriginalSourceMedium           : Blu-ray

[Menu]
Count              : 106
StreamCount        : 1
StreamKind         : Menu
StreamKind/String  : Menu
StreamKindID       : 0
Chapters_Pos_Begin : 94
Chapters_Pos_End   : 106
00:00:00.000       : en:Chapter 01
00:08:30.426       : en:Chapter 02
00:15:49.907       : en:Chapter 03
00:22:40.484       : en:Chapter 04
00:31:33.725       : en:Chapter 05
00:40:32.763       : en:Chapter 06
00:47:52.244       : en:Chapter 07
00:55:55.143       : en:Chapter 08
01:01:35.233       : en:Chapter 09
01:10:35.564       : en:Chapter 10
01:21:12.242       : en:Chapter 11
01:27:44.968       : en:Chapter 12
Done ?(?????)?
titooo7
Posts: 3
Joined: 18 Jan 2021, 15:36

Re: HDR / Dolby Vision?

Post by titooo7 »

kim wrote: 20 Jan 2021, 21:18 NO HDR_Format.* data in the first file = fail if it really is HDR

@titooo7 can you try the first file here or update the mediainfo:
https://mediaarea.net/MediaInfoOnline
(Selec t the MediaInfo output - MediaInfo XML or JSON)
I was also surprised when I saw that the movie didn't have HDR_Format tag but trust me, filebot is recognizing it as such. Here you got the full mediainfo for that first file: https://pastebin.com/X7KCRmci

Maybe the hdr comments inside <Encoded_Library_Settings> are what inform Filebot that the file is HDR, no idea to be honest.
Just for your info that file isn't an UHD Remux, but Micro UHD.

In any case, I'm quite happy now as the code I pasted above is recognizing all my HDR files correctly, be it just HDR, HDR10, HDR10+ or Dolby Vision :)
mterrill
Posts: 32
Joined: 21 May 2018, 21:08

Re: HDR / Dolby Vision?

Post by mterrill »

rednoah wrote: 20 Jan 2021, 18:08 FileBot r8325 changes {hdr} to search the various HDR-related fields for specific keywords, i.e. Dolby Vision | HDR10+ | HDR10.
How do I get this version? Sorry
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: HDR / Dolby Vision?

Post by kim »

rednoah has not updated it yet:
viewtopic.php?f=7&t=1609

do your TV detect it as HDR ?

FYI:

Code: Select all

Video BitDepth >= 10 && "colour_primaries" == "BT.2020"  ? "HDR" : null
https://www.filebot.net/docs/api/src-ht ... l#line.460
viewtopic.php?p=44153#p44153

As I read it "BT.2020" does not = HDR ?
How are BT.2020 and HDR related? What is BT.2100?

As discussed above, BT.2020 is a set of specifications which has been used to characterize, and consequently market, the next generation of projectors and televisions. But recently there has also been another term that has been bandied about when discussing the capabilities of projectors and televisions and is intertwined in the discussion regarding BT.2020: High Dynamic Range or HDR.

HDR in video refers to the ability to represent a greater contrast of colors by allowing for much brighter “brights”. In terms of contrast, to achieve the contrast level exemplified by HDR, displays and projectors must allow for extremely high luminance levels, ranging from 1,000 to 10,000 nits depending on the HDR standard used. Color on the other hand is where HDR becomes intertwined with BT.2020, because the color range that is required for HDR is the same color range defined by BT.2020.

If HDR and BT.2020 uses the same color range (or more precisely, if HDR uses BT.2020’s color range), the obvious question is what makes HDR different then BT.2020? The answer to this lies in the fact that HDR is defined by contrast/brightness enhancements which are not explicitly outlined in BT.2020’s package of specifications. To address this gap, the ITU in 2016 released its newest recommendations, BT.2100, to include HDR in its specifications, essentially making BT.2100 just BT.2020 plus HDR.
https://www.benq.com/en-us/knowledge-ce ... t2020.html
A file is HDR if there is HDR metadata (and MediaInfo displays HDR metadata if the HDR metadata format is sypported by MediaInfo),
else this is normal content (that does not say if the source was HDR or not, nobody knows).

but since these videos are being recorded locally, there is no encoded metadata.

Without HDR metadata, your files are normal (no HDR) even if source was HDR (you just lose the HDR part).
https://sourceforge.net/p/mediainfo/dis ... /8e60c0d1/


I think you need e.g. Mastering display luminance also if true HDR ?

Code: Select all

BitDepth >= 10 && "colour_primaries" == "BT.2020" && Mastering display luminance != null
Brax
Posts: 16
Joined: 31 Mar 2018, 09:58

Re: HDR / Dolby Vision?

Post by Brax »

Hi,

Was there a change in the way HDR is implemented in recent updates ?

It seems my filebot interpretes HDR differently.

Thanks
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR / Dolby Vision?

Post by rednoah »

The values provided by libmediainfo can change with the version of libmediainfo, so the values FileBot is working with may change as a result.


You'll want to check the values you're working with:
viewtopic.php?t=4285


:idea: If you're using Linux, then libmediainfo can be updated independently of FileBot and thus yield different values.
:idea: Please read the FAQ and How to Request Help.
Brax
Posts: 16
Joined: 31 Mar 2018, 09:58

Re: HDR / Dolby Vision?

Post by Brax »

Hi Rednoah,

Thanks for your answer.

Concretely with 2 examples :

Code: Select all

Example # 1 {hdr} outputs "HDR" now, while it outputted "HDR10" before on this kind of file :

General
Unique ID                                : 38260749392664866501155404538863321705 (0x1CC8C09667C267E65C898F0E97628269)
Complete name                            : B:\2160P HDR10\Jupiter - Le Destin de l'univers (2015) [tt1617661]\Jupiter - Le Destin de l'univers (2015) [tt1617661] 2160p HDR10.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 63.0 GiB
Duration                                 : 2 h 7 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 70.7 Mb/s
Encoded date                             : UTC 2018-09-02 09:16:53
Writing application                      : mkvmerge v26.0.0 ('In The Game') 64-bit
Writing library                          : libebml v1.3.6 + libmatroska v1.4.9

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main [email protected]@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 7 min
Bit rate                                 : 61.7 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.310
Stream size                              : 55.0 GiB (87%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2


Example # 2 {hdr} outputs "Dolby Vision" now, while it outputted "HDR10" before on this kind of file :
General
Unique ID                                : 275869034429293711796943580422617088872 (0xCF8A71838EB37434D926EED7796AC368)
Complete name                            : B:\2160P HDR10\Le Seigneur des Anneaux - Saga\Le Seigneur des anneaux - La Communaute de l'anneau (2001) [tt0120737]\Le Seigneur des anneaux - La Communaute de l'anneau (2001) [tt0120737] 2160p Blu-ray HDR10.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 118 GiB
Duration                                 : 3 h 48 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 73.8 Mb/s
Encoded date                             : UTC 2020-12-01 06:10:40
Writing application                      : mkvmerge v51.0.0 ('I Wish') 64-bit
Writing library                          : libebml v1.4.0 + libmatroska v1.6.2

Video
ID                                       : 6
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main [email protected]@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 3 h 48 min
Bit rate                                 : 68.0 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.342
Stream size                              : 108 GiB (92%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 602 cd/m2
Maximum Frame-Average Light Level        : 184 cd/m2
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR / Dolby Vision?

Post by rednoah »

1.
Please use filebot -script fn:mediainfo /path/to/file so that we can see what filebot sees:
viewtopic.php?p=53640#p53640


:idea: A mediainfo summary is nice, but the mediainfo tool you happen to have installed doesn't necessarily provide the exact same values for the exact same properties as the libmediainfo that ships with FileBot due to version differences and differences in summary formatting.



2.
According to the code, if HDR_Format is "Dolby Vision / something" then the value of {hdr} should be Dolby Vision but we'd need to see the exact values that FileBot is getting from libmediainfo to find out why the code defaults to the HDR default value:
https://www.filebot.net/docs/api/src-ht ... l#line.472
:idea: Please read the FAQ and How to Request Help.
Brax
Posts: 16
Joined: 31 Mar 2018, 09:58

Re: HDR / Dolby Vision?

Post by Brax »

Thanks for your answer

Example #1

Code: Select all

[General]
Count                      : 331
StreamCount                : 1
StreamKind                 : General
StreamKind/String          : General
StreamKindID               : 0
UniqueID                   : 38260749392664866501155404538863321705
UniqueID/String            : 38260749392664866501155404538863321705 (0x1CC8C09667C267E65C898F0E97628269)
VideoCount                 : 1
AudioCount                 : 3
TextCount                  : 2
MenuCount                  : 1
Video_Format_List          : HEVC
Video_Format_WithHint_List : HEVC
Video_Codec_List           : HEVC
Audio_Format_List          : MLP FBA 16-ch / AC-3 / DTS XLL
Audio_Format_WithHint_List : MLP FBA 16-ch / AC-3 / DTS XLL
Audio_Codec_List           : MLP FBA 16-ch / AC-3 / DTS XLL
Audio_Language_List        : English / French / French
Text_Format_List           : PGS / PGS
Text_Format_WithHint_List  : PGS / PGS
Text_Codec_List            : PGS / PGS
Text_Language_List         : French / French
CompleteName               : \\192.168.39.200\DS918Plus\2160P HDR10\Jupiter - Le Destin de l'univers (2015) [tt1617661]\Jupiter - Le Destin de l'univers (2015) [tt1617661] 2160p HDR10.mkv
FolderName                 : \\192.168.39.200\DS918Plus\2160P HDR10\Jupiter - Le Destin de l'univers (2015) [tt1617661]
FileNameExtension          : Jupiter - Le Destin de l'univers (2015) [tt1617661] 2160p HDR10.mkv
FileName                   : Jupiter - Le Destin de l'univers (2015) [tt1617661] 2160p HDR10
FileExtension              : mkv
Format                     : Matroska
Format/String              : Matroska
Format/Url                 : https://matroska.org/downloads/windows.html
Format/Extensions          : mkv mk3d mka mks
Format_Commercial          : Matroska
Format_Version             : Version 4
FileSize                   : 67650725732
FileSize/String            : 63.0 GiB
FileSize/String1           : 63 GiB
FileSize/String2           : 63 GiB
FileSize/String3           : 63.0 GiB
FileSize/String4           : 63.00 GiB
Duration                   : 7654368
Duration/String            : 2 h 7 min
Duration/String1           : 2 h 7 min 34 s 368 ms
Duration/String2           : 2 h 7 min
Duration/String3           : 02:07:34.368
Duration/String4           : 02:07:36;07
Duration/String5           : 02:07:34.368 (02:07:36;07)
OverallBitRate_Mode        : VBR
OverallBitRate_Mode/String : Variable
OverallBitRate             : 70705486
OverallBitRate/String      : 70.7 Mb/s
FrameRate                  : 23.976
FrameRate/String           : 23.976 FPS
FrameCount                 : 183521
StreamSize                 : 56317810
StreamSize/String          : 53.7 MiB (0%)
StreamSize/String1         : 54 MiB
StreamSize/String2         : 54 MiB
StreamSize/String3         : 53.7 MiB
StreamSize/String4         : 53.71 MiB
StreamSize/String5         : 53.7 MiB (0%)
StreamSize_Proportion      : 0.00083
IsStreamable               : Yes
Encoded_Date               : UTC 2018-09-02 09:16:53
File_Created_Date          : UTC 2019-10-03 23:32:02.965
File_Created_Date_Local    : 2019-10-04 00:32:02.965
File_Modified_Date         : UTC 2021-03-09 08:08:05.548
File_Modified_Date_Local   : 2021-03-09 09:08:05.548
Encoded_Application        : mkvmerge v26.0.0 ('In The Game') 64-bit
Encoded_Application/String : mkvmerge v26.0.0 ('In The Game') 64-bit
Encoded_Library            : libebml v1.3.6 + libmatroska v1.4.9
Encoded_Library/String     : libebml v1.3.6 + libmatroska v1.4.9

[Video]
Count                                  : 377
StreamCount                            : 1
StreamKind                             : Video
StreamKind/String                      : Video
StreamKindID                           : 0
StreamOrder                            : 0
ID                                     : 1
ID/String                              : 1
UniqueID                               : 10349458131888749407
Format                                 : HEVC
Format/String                          : HEVC
Format/Info                            : High Efficiency Video Coding
Format/Url                             : http://www.itu.int
Format_Commercial                      : HEVC
Format_Profile                         : Main [email protected]@High
HDR_Format                             : SMPTE ST 2086
HDR_Format/String                      : SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial                  : HDR10
HDR_Format_Compatibility               : HDR10
InternetMediaType                      : video/H265
CodecID                                : V_MPEGH/ISO/HEVC
Duration                               : 7654355.000000
Duration/String                        : 2 h 7 min
Duration/String1                       : 2 h 7 min 34 s 355 ms
Duration/String2                       : 2 h 7 min
Duration/String3                       : 02:07:34.355
Duration/String4                       : 02:07:36;07
Duration/String5                       : 02:07:34.355 (02:07:36;07)
BitRate                                : 61744226
BitRate/String                         : 61.7 Mb/s
Width                                  : 3840
Width/String                           : 3 840 pixels
Height                                 : 2160
Height/String                          : 2 160 pixels
Sampled_Width                          : 3840
Sampled_Height                         : 2160
PixelAspectRatio                       : 1.000
DisplayAspectRatio                     : 1.778
DisplayAspectRatio/String              : 16:9
FrameRate_Mode                         : CFR
FrameRate_Mode/String                  : Constant
FrameRate                              : 23.976
FrameRate/String                       : 23.976 (24000/1001) FPS
FrameRate_Num                          : 24000
FrameRate_Den                          : 1001
FrameCount                             : 183521
ColorSpace                             : YUV
ChromaSubsampling                      : 4:2:0
ChromaSubsampling/String               : 4:2:0 (Type 2)
ChromaSubsampling_Position             : Type 2
BitDepth                               : 10
BitDepth/String                        : 10 bits
Bits-(Pixel*Frame)                     : 0.310
Delay                                  : 9
Delay/String                           : 9 ms
Delay/String1                          : 9 ms
Delay/String2                          : 9 ms
Delay/String3                          : 00:00:00.009
Delay_Source                           : Container
Delay_Source/String                    : Container
StreamSize                             : 59076528450
StreamSize/String                      : 55.0 GiB (87%)
StreamSize/String1                     : 55 GiB
StreamSize/String2                     : 55 GiB
StreamSize/String3                     : 55.0 GiB
StreamSize/String4                     : 55.02 GiB
StreamSize/String5                     : 55.0 GiB (87%)
StreamSize_Proportion                  : 0.87326
Default                                : Yes
Default/String                         : Yes
Forced                                 : No
Forced/String                          : No
colour_description_present             : Yes
colour_description_present_Source      : Stream
colour_range                           : Limited
colour_range_Source                    : Stream
colour_primaries                       : BT.2020
colour_primaries_Source                : Stream
transfer_characteristics               : PQ
transfer_characteristics_Source        : Stream
matrix_coefficients                    : BT.2020 non-constant
matrix_coefficients_Source             : Stream
MasteringDisplay_ColorPrimaries        : Display P3
MasteringDisplay_ColorPrimaries_Source : Stream
MasteringDisplay_Luminance             : min: 0.0050 cd/m2, max: 4000 cd/m2
MasteringDisplay_Luminance_Source      : Stream
Example #2

Code: Select all

[General]
Count                      : 331
StreamCount                : 1
StreamKind                 : General
StreamKind/String          : General
StreamKindID               : 0
UniqueID                   : 275869034429293711796943580422617088872
UniqueID/String            : 275869034429293711796943580422617088872 (0xCF8A71838EB37434D926EED7796AC368)
VideoCount                 : 1
AudioCount                 : 3
TextCount                  : 2
MenuCount                  : 1
Video_Format_List          : HEVC
Video_Format_WithHint_List : HEVC
Video_Codec_List           : HEVC
Audio_Format_List          : MLP FBA 16-ch / DTS XLL / AC-3
Audio_Format_WithHint_List : MLP FBA 16-ch / DTS XLL / AC-3
Audio_Codec_List           : MLP FBA 16-ch / DTS XLL / AC-3
Audio_Language_List        : English / French / English
Text_Format_List           : PGS / PGS
Text_Format_WithHint_List  : PGS / PGS
Text_Codec_List            : PGS / PGS
Text_Language_List         : French / French
CompleteName               : \\192.168.39.200\DS918Plus\2160P HDR10\Le Seigneur des Anneaux - Saga\Le Seigneur des anneaux - La Communaute de l'anneau (2001) [tt0120737]\Le Seigneur des anneaux - La Communaute de l'anneau (2001) [tt0120737] 2160p Blu-ray HDR10.mkv
FolderName                 : \\192.168.39.200\DS918Plus\2160P HDR10\Le Seigneur des Anneaux - Saga\Le Seigneur des anneaux - La Communaute de l'anneau (2001) [tt0120737]
FileNameExtension          : Le Seigneur des anneaux - La Communaute de l'anneau (2001) [tt0120737] 2160p Blu-ray HDR10.mkv
FileName                   : Le Seigneur des anneaux - La Communaute de l'anneau (2001) [tt0120737] 2160p Blu-ray HDR10
FileExtension              : mkv
Format                     : Matroska
Format/String              : Matroska
Format/Url                 : https://matroska.org/downloads/windows.html
Format/Extensions          : mkv mk3d mka mks
Format_Commercial          : Matroska
Format_Version             : Version 4
FileSize                   : 126375201202
FileSize/String            : 118 GiB
FileSize/String1           : 118 GiB
FileSize/String2           : 118 GiB
FileSize/String3           : 118 GiB
FileSize/String4           : 117.7 GiB
Duration                   : 13691374
Duration/String            : 3 h 48 min
Duration/String1           : 3 h 48 min 11 s 374 ms
Duration/String2           : 3 h 48 min
Duration/String3           : 03:48:11.374
Duration/String4           : 03:48:14;20
Duration/String5           : 03:48:11.374 (03:48:14;20)
OverallBitRate_Mode        : VBR
OverallBitRate_Mode/String : Variable
OverallBitRate             : 73842232
OverallBitRate/String      : 73.8 Mb/s
FrameRate                  : 23.976
FrameRate/String           : 23.976 FPS
FrameCount                 : 328264
StreamSize                 : 105489704
StreamSize/String          : 101 MiB (0%)
StreamSize/String1         : 101 MiB
StreamSize/String2         : 101 MiB
StreamSize/String3         : 101 MiB
StreamSize/String4         : 100.6 MiB
StreamSize/String5         : 101 MiB (0%)
StreamSize_Proportion      : 0.00083
IsStreamable               : Yes
Encoded_Date               : UTC 2020-12-01 06:10:40
File_Created_Date          : UTC 2020-12-01 08:49:50.616
File_Created_Date_Local    : 2020-12-01 09:49:50.616
File_Modified_Date         : UTC 2020-12-01 10:01:01.314
File_Modified_Date_Local   : 2020-12-01 11:01:01.314
Encoded_Application        : mkvmerge v51.0.0 ('I Wish') 64-bit
Encoded_Application/String : mkvmerge v51.0.0 ('I Wish') 64-bit
Encoded_Library            : libebml v1.4.0 + libmatroska v1.6.2
Encoded_Library/String     : libebml v1.4.0 + libmatroska v1.6.2

[Video]
Count                                  : 377
StreamCount                            : 1
StreamKind                             : Video
StreamKind/String                      : Video
StreamKindID                           : 0
StreamOrder                            : 5
ID                                     : 6
ID/String                              : 6
UniqueID                               : 1
Format                                 : HEVC
Format/String                          : HEVC
Format/Info                            : High Efficiency Video Coding
Format/Url                             : http://www.itu.int
Format_Commercial                      : HEVC
Format_Profile                         : Main [email protected]@High
HDR_Format                             : Dolby Vision / SMPTE ST 2086
HDR_Format/String                      : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial                  : Blu-ray / HDR10
HDR_Format_Version                     : 1.0 /
HDR_Format_Profile                     : dvhe.07 /
HDR_Format_Level                       : 06 /
HDR_Format_Settings                    : BL+EL+RPU /
HDR_Format_Compatibility               : Blu-ray / HDR10
InternetMediaType                      : video/H265
CodecID                                : V_MPEGH/ISO/HEVC
Duration                               : 13691371.000000
Duration/String                        : 3 h 48 min
Duration/String1                       : 3 h 48 min 11 s 371 ms
Duration/String2                       : 3 h 48 min
Duration/String3                       : 03:48:11.371
Duration/String4                       : 03:48:14;20
Duration/String5                       : 03:48:11.371 (03:48:14;20)
BitRate                                : 67977810
BitRate/String                         : 68.0 Mb/s
Width                                  : 3840
Width/String                           : 3 840 pixels
Height                                 : 2160
Height/String                          : 2 160 pixels
Sampled_Width                          : 3840
Sampled_Height                         : 2160
PixelAspectRatio                       : 1.000
DisplayAspectRatio                     : 1.778
DisplayAspectRatio/String              : 16:9
FrameRate_Mode                         : CFR
FrameRate_Mode/String                  : Constant
FrameRate                              : 23.976
FrameRate/String                       : 23.976 (24000/1001) FPS
FrameRate_Num                          : 24000
FrameRate_Den                          : 1001
FrameCount                             : 328264
ColorSpace                             : YUV
ChromaSubsampling                      : 4:2:0
ChromaSubsampling/String               : 4:2:0 (Type 2)
ChromaSubsampling_Position             : Type 2
BitDepth                               : 10
BitDepth/String                        : 10 bits
Bits-(Pixel*Frame)                     : 0.342
Delay                                  : 0
Delay/String3                          : 00:00:00.000
Delay_Source                           : Container
Delay_Source/String                    : Container
StreamSize                             : 116338678548
StreamSize/String                      : 108 GiB (92%)
StreamSize/String1                     : 108 GiB
StreamSize/String2                     : 108 GiB
StreamSize/String3                     : 108 GiB
StreamSize/String4                     : 108.3 GiB
StreamSize/String5                     : 108 GiB (92%)
StreamSize_Proportion                  : 0.92058
Default                                : Yes
Default/String                         : Yes
Forced                                 : No
Forced/String                          : No
colour_description_present             : Yes
colour_description_present_Source      : Stream
colour_range                           : Limited
colour_range_Source                    : Stream
colour_primaries                       : BT.2020
colour_primaries_Source                : Stream
transfer_characteristics               : PQ
transfer_characteristics_Source        : Stream
matrix_coefficients                    : BT.2020 non-constant
matrix_coefficients_Source             : Stream
MasteringDisplay_ColorPrimaries        : Display P3
MasteringDisplay_ColorPrimaries_Source : Stream
MasteringDisplay_Luminance             : min: 0.0050 cd/m2, max: 4000 cd/m2
MasteringDisplay_Luminance_Source      : Stream
MaxCLL                                 : 602 cd/m2
MaxCLL_Source                          : Stream
MaxFALL                                : 184 cd/m2
MaxFALL_Source                         : Stream
I'm using

-Filebot (windows store version) FileBot 4.9.3 (r8340) / OpenJDK Runtime Environment 15.0.2 / Windows 10 10.0 (amd64)
-Mediainfo version 20.09

I guess there was a change in the {hdr} output because I use, thanks to you and Kim, the following arguments for filebot, which renamed my example files

Code: Select all

ut_label=Movies
movieFormat={ def pathList = ['SD' : 'H:/DVDRIPS','HD720p' : 'B:/720P','HD1080ptrue' : 'S:/Sagas - 1080P','HD1080pfalse' : 'I:/USBShare1/1080P','UHD2160p' : 'B:/2160P']; any{pathList.get(hd)}{pathList.get(hd + vf)}{pathList.get(hd + vf + any{collection ? true : true}{false})}{'UNKNOWN_PATH'}} {hdr}/{collection.ascii()}/{ny.ascii().upperInitial()}{' ['+imdbid +']'}/{ny.ascii().upperInitial()}{' ['+imdbid +']'} {if (hd =~ /HD/) vf} {hdr}
seriesFormat="E:/TV Shows/{n}/{n}.{s00e00}.{t}"
animeFormat="E:/Anime/{n}/{n}.{s00e00}.{t}"
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: HDR / Dolby Vision?

Post by rednoah »

Based on the information above, and the corresponding {hdr} code, you should get HDR10 for the first file, and Dolby Vision for the second.


:arrow: Can you create a small test file with the same mediainfo?
:idea: Please read the FAQ and How to Request Help.
Post Reply