Page 1 of 1
DV with HDR Fallback
Posted: 14 Dec 2023, 19:24
by brijazz
I use {hdr} to append the HDR format to my filenames. I've noticed that files containing DV with HDR fallback are always named as "Dolby Vision" - is there any way to have these named as "Dolby Vision + HDR" or something similar to indicate that an HDR fallback is present?
Re: DV with HDR Fallback
Posted: 14 Dec 2023, 19:27
by rednoah

What does the
MediaInfo Inspector say for the file at hand?

Re: DV with HDR Fallback
Posted: 14 Dec 2023, 19:44
by brijazz
I use the MediaInfo CLI, which outputs this:
Code: Select all
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main [email protected]@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 49 min
Bit rate : 55.8 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
I've truncated the output a bit for the sake of brevity, hope no vital info is missing!
Re: DV with HDR Fallback
Posted: 14 Dec 2023, 20:12
by rednoah

Please
share the raw MediaInfo table via the
Copy to Clipboard button
(NOTE: mediainfo summary is useless for our purposes) as seen in the screenshot below:

Re: DV with HDR Fallback
Posted: 14 Dec 2023, 20:51
by brijazz
Here ya go! Pastebin:
https://pastebin.com/xEbaTvuE
Properties: Select all
[General]
Count : 349
StreamCount : 1
StreamKind : General
StreamKind/String : General
StreamKindID : 0
UniqueID : 195345261671825713172052353041526294128
UniqueID/String : 195345261671825713172052353041526294128 (0x92F620FF3FC845BE87C0AE8B0EE60670)
VideoCount : 1
AudioCount : 1
TextCount : 5
MenuCount : 1
Video_Format_List : HEVC
Video_Format_WithHint_List : HEVC
Video_Codec_List : HEVC
Audio_Format_List : DTS XLL X
Audio_Format_WithHint_List : DTS XLL X
Audio_Codec_List : DTS XLL X
Audio_Language_List : en
Audio_Channels_Total : 8
Text_Format_List : PGS / PGS / PGS / PGS / PGS
Text_Format_WithHint_List : PGS / PGS / PGS / PGS / PGS
Text_Codec_List : PGS / PGS / PGS / PGS / PGS
Text_Language_List : en / es / fr / es / fr
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 : 78566185577
FileSize/String : 73.2 GiB
FileSize/String1 : 73 GiB
FileSize/String2 : 73 GiB
FileSize/String3 : 73.2 GiB
FileSize/String4 : 73.17 GiB
Duration : 10191431
Duration/String : 2h 49mn
Duration/String1 : 2h 49mn 51s 431ms
Duration/String2 : 2h 49mn
Duration/String3 : 02:49:51.431
Duration/String4 : 02:49:54;00
Duration/String5 : 02:49:51.431 (02:49:54;00)
OverallBitRate_Mode : VBR
OverallBitRate_Mode/String : VBR
OverallBitRate : 61672349
OverallBitRate/String : 61.7 Mbps
FrameRate : 23.976
FrameRate/String : 23.976 fps
FrameCount : 244350
IsStreamable : Yes
Encoded_Date : 2022-03-31 16:26:40 UTC
Encoded_Application : mkvmerge v65.0.0 ('Too Much') 64-bit
Encoded_Application/String : mkvmerge v65.0.0 ('Too Much') 64-bit
Encoded_Library : libebml v1.4.2 + libmatroska v1.6.4
Encoded_Library/String : libebml v1.4.2 + libmatroska v1.6.4
[Video]
Count : 381
StreamCount : 1
StreamKind : Video
StreamKind/String : Video
StreamKindID : 0
StreamOrder : 0
ID : 1
ID/String : 1
UniqueID : 2411314087054665001
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.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial : HDR10 / HDR10
HDR_Format_Version : 1.0 /
HDR_Format_Profile : dvhe.08 /
HDR_Format_Level : 06 /
HDR_Format_Settings : BL+RPU /
HDR_Format_Compatibility : HDR10 / HDR10
InternetMediaType : video/H265
CodecID : V_MPEGH/ISO/HEVC
Duration : 10191431.000000
Duration/String : 2h 49mn
Duration/String1 : 2h 49mn 51s 431ms
Duration/String2 : 2h 49mn
Duration/String3 : 02:49:51.431
Duration/String4 : 02:49:54;00
Duration/String5 : 02:49:51.431 (02:49:54;00)
BitRate : 55846662
BitRate/String : 55.8 Mbps
Width : 3840
Width/String : 3840 pixel
Height : 2160
Height/String : 2160 pixel
Sampled_Width : 3840
Sampled_Height : 2160
PixelAspectRatio : 1.000
DisplayAspectRatio : 1.778
DisplayAspectRatio/String : 16:9
FrameRate_Mode : CFR
FrameRate_Mode/String : CFR
FrameRate : 23.976
FrameRate/String : 23.976 (24000/1001) fps
FrameRate_Num : 24000
FrameRate_Den : 1001
FrameCount : 244350
ColorSpace : YUV
ChromaSubsampling : 4:2:0
ChromaSubsampling/String : 4:2:0 (Type 2)
ChromaSubsampling_Position : Type 2
BitDepth : 10
BitDepth/String : 10 bit
Bits-(Pixel*Frame) : 0.281
Delay : 0
Delay/String3 : 00:00:00.000
Delay/String4 : 00:00:00;00
Delay/String5 : 00:00:00.000 (00:00:00;00)
Delay_Source : Container
Delay_Source/String : Container
StreamSize : 71144676322
StreamSize/String : 66.3 GiB (91%)
StreamSize/String1 : 66 GiB
StreamSize/String2 : 66 GiB
StreamSize/String3 : 66.3 GiB
StreamSize/String4 : 66.26 GiB
StreamSize/String5 : 66.3 GiB (91%)
StreamSize_Proportion : 0.90554
Encoded_Library : ATEME Titan File 3.8.16 (4.8.16.0)
Encoded_Library/String : ATEME Titan File 3.8.16 (4.8.16.0)
Encoded_Library_Name : ATEME Titan File
Encoded_Library_Version : 3.8.16 (4.8.16.0)
Default : Yes
Default/String : Yes
Forced : No
Forced/String : No
colour_description_present : Yes
colour_description_present_Sourc : 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_ : Stream
MasteringDisplay_Luminance : min: 0.0050 cd/m2, max: 1000 cd/m2
MasteringDisplay_Luminance_Sourc : Stream
MaxCLL : 1000 cd/m2
MaxCLL_Source : Stream
MaxFALL : 155 cd/m2
MaxFALL_Source : Stream
[Audio]
Count : 285
StreamCount : 1
StreamKind : Audio
StreamKind/String : Audio
StreamKindID : 0
StreamOrder : 1
ID : 2
ID/String : 2
UniqueID : 1547417414239212438
Format : DTS
Format/String : DTS XLL X
Format/Info : Digital Theater Systems
Format/Url : https://en.wikipedia.org/wiki/DTS_(sound_system)
Format_Commercial : DTS-HD MA + DTS:X
Format_Commercial_IfAny : DTS-HD MA + DTS:X
Format_Settings_Mode : 16
Format_Settings_Endianness : Big
Format_AdditionalFeatures : XLL X
CodecID : A_DTS
Duration : 10191425.000000
Duration/String : 2h 49mn
Duration/String1 : 2h 49mn 51s 425ms
Duration/String2 : 2h 49mn
Duration/String3 : 02:49:51.425
Duration/String5 : 02:49:51.425
BitRate_Mode : VBR
BitRate_Mode/String : VBR
BitRate : 5792687
BitRate/String : 5793 Kbps
Channel(s) : 8
Channel(s)/String : 8 channel
ChannelPositions : Front: L C R, Side: L R, Back: L R, LFE, Objects
ChannelPositions/String2 : 3/2/2.1.?
ChannelLayout : C L R LFE Lb Rb Lss Rss Objects
SamplesPerFrame : 512
SamplingRate : 48000
SamplingRate/String : 48.0 KHz
SamplingCount : 489188400
FrameRate : 93.750
FrameRate/String : 93.750 fps (512 SPF)
FrameCount : 955446
BitDepth : 24
BitDepth/String : 24 bit
Compression_Mode : Lossless
Compression_Mode/String : Lossless
Delay : 0
Delay/String3 : 00:00:00.000
Delay/String5 : 00:00:00.000
Delay_Source : Container
Delay_Source/String : Container
Video_Delay : 0
Video_Delay/String3 : 00:00:00.000
Video_Delay/String5 : 00:00:00.000
StreamSize : 7379467244
StreamSize/String : 6.87 GiB (9%)
StreamSize/String1 : 7 GiB
StreamSize/String2 : 6.9 GiB
StreamSize/String3 : 6.87 GiB
StreamSize/String4 : 6.873 GiB
StreamSize/String5 : 6.87 GiB (9%)
StreamSize_Proportion : 0.09393
Language : en
Language/String : en
Language/String1 : en
Language/String2 : en
Language/String3 : eng
Language/String4 : en
Default : Yes
Default/String : Yes
Forced : No
Forced/String : No
[Text]
Count : 304
StreamCount : 5
StreamKind : Text
StreamKind/String : Text
StreamKindID : 0
StreamKindPos : 1
StreamOrder : 2
ID : 3
ID/String : 3
UniqueID : 4297161571411470724
Format : PGS
Format/String : PGS
Format_Commercial : PGS
MuxingMode : zlib
CodecID : S_HDMV/PGS
CodecID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 9737811.000000
Duration/String : 2h 42mn
Duration/String1 : 2h 42mn 17s 811ms
Duration/String2 : 2h 42mn
Duration/String3 : 02:42:17.811
Duration/String5 : 02:42:17.811
BitRate : 39134
BitRate/String : 39.1 Kbps
FrameRate : 0.494
FrameRate/String : 0.494 fps
FrameCount : 4812
ElementCount : 4812
StreamSize : 47635039
StreamSize/String : 45.4 MiB (0%)
StreamSize/String1 : 45 MiB
StreamSize/String2 : 45 MiB
StreamSize/String3 : 45.4 MiB
StreamSize/String4 : 45.43 MiB
StreamSize/String5 : 45.4 MiB (0%)
StreamSize_Proportion : 0.00061
Language : en
Language/String : en
Language/String1 : en
Language/String2 : en
Language/String3 : eng
Language/String4 : en
Default : No
Default/String : No
Forced : No
Forced/String : No
[Text]
Count : 304
StreamCount : 5
StreamKind : Text
StreamKind/String : Text
StreamKindID : 1
StreamKindPos : 2
StreamOrder : 3
ID : 4
ID/String : 4
UniqueID : 9665507166220694507
Format : PGS
Format/String : PGS
Format_Commercial : PGS
MuxingMode : zlib
CodecID : S_HDMV/PGS
CodecID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 9837369.000000
Duration/String : 2h 43mn
Duration/String1 : 2h 43mn 57s 369ms
Duration/String2 : 2h 43mn
Duration/String3 : 02:43:57.369
Duration/String5 : 02:43:57.369
BitRate : 25220
BitRate/String : 25.2 Kbps
FrameRate : 0.374
FrameRate/String : 0.374 fps
FrameCount : 3682
ElementCount : 3682
StreamSize : 31012340
StreamSize/String : 29.6 MiB (0%)
StreamSize/String1 : 30 MiB
StreamSize/String2 : 30 MiB
StreamSize/String3 : 29.6 MiB
StreamSize/String4 : 29.58 MiB
StreamSize/String5 : 29.6 MiB (0%)
StreamSize_Proportion : 0.00039
Language : es
Language/String : es
Language/String1 : es
Language/String2 : es
Language/String3 : spa
Language/String4 : es
Default : No
Default/String : No
Forced : No
Forced/String : No
[Text]
Count : 304
StreamCount : 5
StreamKind : Text
StreamKind/String : Text
StreamKindID : 2
StreamKindPos : 3
StreamOrder : 4
ID : 5
ID/String : 5
UniqueID : 10815174393955413255
Format : PGS
Format/String : PGS
Format_Commercial : PGS
MuxingMode : zlib
CodecID : S_HDMV/PGS
CodecID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 9837369.000000
Duration/String : 2h 43mn
Duration/String1 : 2h 43mn 57s 369ms
Duration/String2 : 2h 43mn
Duration/String3 : 02:43:57.369
Duration/String5 : 02:43:57.369
BitRate : 28232
BitRate/String : 28.2 Kbps
FrameRate : 0.370
FrameRate/String : 0.370 fps
FrameCount : 3636
ElementCount : 3636
StreamSize : 34717274
StreamSize/String : 33.1 MiB (0%)
StreamSize/String1 : 33 MiB
StreamSize/String2 : 33 MiB
StreamSize/String3 : 33.1 MiB
StreamSize/String4 : 33.11 MiB
StreamSize/String5 : 33.1 MiB (0%)
StreamSize_Proportion : 0.00044
Language : fr
Language/String : fr
Language/String1 : fr
Language/String2 : fr
Language/String3 : fra
Language/String4 : fr
Default : No
Default/String : No
Forced : No
Forced/String : No
[Text]
Count : 304
StreamCount : 5
StreamKind : Text
StreamKind/String : Text
StreamKindID : 3
StreamKindPos : 4
StreamOrder : 5
ID : 6
ID/String : 6
UniqueID : 939935013201878222
Format : PGS
Format/String : PGS
Format_Commercial : PGS
MuxingMode : zlib
CodecID : S_HDMV/PGS
CodecID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 4775270.000000
Duration/String : 1h 19mn
Duration/String1 : 1h 19mn 35s 270ms
Duration/String2 : 1h 19mn
Duration/String3 : 01:19:35.270
Duration/String5 : 01:19:35.270
BitRate : 91
BitRate/String : 91 bps
FrameRate : 0.001
FrameRate/String : 0.001 fps
FrameCount : 6
ElementCount : 6
StreamSize : 54465
StreamSize/String : 53.2 KiB (0%)
StreamSize/String1 : 53 KiB
StreamSize/String2 : 53 KiB
StreamSize/String3 : 53.2 KiB
StreamSize/String4 : 53.19 KiB
StreamSize/String5 : 53.2 KiB (0%)
StreamSize_Proportion : 0.00000
Language : es
Language/String : es
Language/String1 : es
Language/String2 : es
Language/String3 : spa
Language/String4 : es
Default : No
Default/String : No
Forced : No
Forced/String : No
[Text]
Count : 304
StreamCount : 5
StreamKind : Text
StreamKind/String : Text
StreamKindID : 4
StreamKindPos : 5
StreamOrder : 6
ID : 7
ID/String : 7
UniqueID : 4635498461875044010
Format : PGS
Format/String : PGS
Format_Commercial : PGS
MuxingMode : zlib
CodecID : S_HDMV/PGS
CodecID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 9837369.000000
Duration/String : 2h 43mn
Duration/String1 : 2h 43mn 57s 369ms
Duration/String2 : 2h 43mn
Duration/String3 : 02:43:57.369
Duration/String5 : 02:43:57.369
BitRate : 733
BitRate/String : 733 bps
FrameRate : 0.008
FrameRate/String : 0.008 fps
FrameCount : 80
ElementCount : 80
StreamSize : 902140
StreamSize/String : 881 KiB (0%)
StreamSize/String1 : 881 KiB
StreamSize/String2 : 881 KiB
StreamSize/String3 : 881 KiB
StreamSize/String4 : 881.0 KiB
StreamSize/String5 : 881 KiB (0%)
StreamSize_Proportion : 0.00001
Language : fr
Language/String : fr
Language/String1 : fr
Language/String2 : fr
Language/String3 : fra
Language/String4 : fr
Default : No
Default/String : No
Forced : No
Forced/String : No
[Menu]
Count : 136
StreamCount : 1
StreamKind : Menu
StreamKind/String : Menu
StreamKindID : 0
Chapters_Pos_Begin : 101
Chapters_Pos_End : 136
00:00:00.000 : Chapter 01
00:08:11.574 : Chapter 02
00:10:55.237 : Chapter 03
00:13:40.194 : Chapter 04
00:15:43.025 : Chapter 05
00:20:58.298 : Chapter 06
00:29:51.289 : Chapter 07
00:33:09.362 : Chapter 08
00:34:42.538 : Chapter 09
00:43:13.173 : Chapter 10
00:46:46.053 : Chapter 11
00:50:45.250 : Chapter 12
00:59:02.705 : Chapter 13
01:04:15.643 : Chapter 14
01:08:20.471 : Chapter 15
01:12:57.539 : Chapter 16
01:17:17.841 : Chapter 17
01:23:33.133 : Chapter 18
01:28:48.323 : Chapter 19
01:33:44.243 : Chapter 20
01:43:31.496 : Chapter 21
01:47:01.706 : Chapter 22
01:51:48.410 : Chapter 23
01:57:19.991 : Chapter 24
02:02:43.105 : Chapter 25
02:07:08.203 : Chapter 26
02:13:58.405 : Chapter 27
02:16:04.447 : Chapter 28
02:21:46.080 : Chapter 29
02:24:22.779 : Chapter 30
02:30:37.862 : Chapter 31
02:35:14.888 : Chapter 32
02:37:33.068 : Chapter 33
02:40:04.303 : Chapter 34
02:43:20.999 : Chapter 35
Re: DV with HDR Fallback
Posted: 14 Dec 2023, 21:14
by rednoah
This one looks promising:
Properties: Select all
HDR_Format : Dolby Vision / SMPTE ST 2086
HDR_Format/String : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
HDR_Format_Compatibility : HDR10 / HDR10
You can check the
HDR_Format_Compatibility property for specific values like so:

What does the raw MediaInfo table look like for a file with Dolby Vision but
without HDR fallback?
Re: DV with HDR Fallback
Posted: 15 Dec 2023, 00:10
by brijazz
That worked, thanks for the assist. Here's the MediaInfo output for a DV-only file:
https://pastebin.com/gNuJZvaE
Re: DV with HDR Fallback
Posted: 15 Dec 2023, 05:15
by rednoah
Thanks for the additional test case. The
HDR_Format_Compatibility property is missing from that file, so we can indeed use
HDR_Format_Compatibility for the task at hand, and generate different formats depending on the existence / non-existence of that property:
Properties: Select all
HDR_Format : Dolby Vision
HDR_Format/String : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Re: DV with HDR Fallback
Posted: 15 Dec 2023, 11:44
by brijazz
One further question if you don't mind: is there any way to apply
Code: Select all
{ video.HDR_Format_Compatibility =~ /HDR/ ? ' + HDR' : null }
only if Dolby Vision is present?
Files that have HDR10+ (instead of DV) implicitly have HDR fallback so it's not necessary to indicate the presence of the fallback in the filename. Not to mention that it's kind of unsightly haha - filenames for HDR10+ files end up looking like this, with a "+" sign at the end of the HDR10 format name
and the "+" sign used to append "HDR" to the end of the filename:
My Show - S01E06 - Episode Title [2160p - HDR10+ + HDR]
Since DV is not present, this would be adequate:
My Show - S01E06 - Episode Title [2160p - HDR10+]
The Pastebin for an HDR10+ file can be found at
https://pastebin.com/6i59AqUh
Re: DV with HDR Fallback
Posted: 15 Dec 2023, 19:52
by rednoah
You can probably get the behaviour you want like so:
Re: DV with HDR Fallback
Posted: 15 Dec 2023, 22:46
by brijazz
Success! Thanks again.
Re: DV with HDR Fallback
Posted: 10 Jan 2024, 20:23
by nicolasrata
I found out that SMTPE ST isn't always 2086.
Is there a way to look for 'Dolby Vision / SMPTE(and whatever is behind)' ?
Re: DV with HDR Fallback
Posted: 10 Jan 2024, 20:41
by rednoah
Yes, but if you want me to write code then I will need a representative variety of
HDR_Format sample values to code against.
Maybe like this?
Re: DV with HDR Fallback
Posted: 11 Jan 2024, 21:03
by nicolasrata
Thank you it works perfectly.
I modified it like that to work with Plex Meta Manager and his DV+HDR overlay :
Changed it after founding a movie with DV and HDR10 but no SMPTE in HDR.Format.
Re: DV with HDR Fallback
Posted: 16 Jan 2025, 01:59
by rednoah
I've added a dedicated
{hdr} binding page and added your
DV+HDR10 code to the featured examples.
[DOCS] {hdr} binding