Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Message
Author
LV8HD
Posts: 50
Joined: Tue Jan 11, 2022 3:48 pm

Re: Dolby Vision now possible through MP4 Mux.

#9736 Post by LV8HD » Tue Mar 05, 2024 6:14 pm

Hi everyone, since the topic of HDR metadata is well know in this forum I wanted to ask a question about it.

While I was browsing some trackers I've found one release group which seems to be really aware of what they are doing with video and audio related stuff. In particular, they managed to change MDL and MaxCLL/MaxFALL values within the hevc stream itself.
How is this even possible to do?

Here's the releaser's words:
"As usual we checked the static metadata and surprise-surprise, it was wrong again after doing a complete frame by frame analysis using industry standard methods. Dune has a supremely well done, highly dynamic 4000-nit mastered HDR grade, so having accurate grade specific static metadata for the base HDR presentation is very important. Not just to maximize the viewing experience, but also to correctly inform the display of the precise range of the content being played. The stock metadata had 1000-nit limited values despite the film and HDR grade on the disc being mastered at 4000-nit by the studio. We suspect the discrepancy came from values left over from the theatrical 1.90:1 IMAX, or far more likely: metadata for a 1000-nit tonemapped variation that somehow got in there. In either case, the actual measured uncapped values were applied. MaxCLL/MaxFALL coming from frames 4549 and 55532 respectively, properly ratio output blanked and at native UHD resolution of course."

This is a comparison of the video track before and after:

Stock video

Code: Select all

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 35 min
Bit rate                                 : 59.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
Bits/(Pixel*Frame)                       : 0.300
Stream size                              : 64.9 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        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 787 cd/m2
Maximum Frame-Average Light Level        : 239 cd/m2

Edited video

Code: Select all

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 35 min
Bit rate                                 : 59.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
Bits/(Pixel*Frame)                       : 0.301
Stream size                              : 64.9 GiB (92%)
Language                                 : English
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              : 1804 cd/m2
Maximum Frame-Average Light Level        : 501 cd/m2

skull88
Posts: 69
Joined: Mon Mar 27, 2023 3:08 pm

Re: Dolby Vision now possible through MP4 Mux.

#9737 Post by skull88 » Tue Mar 05, 2024 7:27 pm

In my opinion, this group only "seems" or "acts" like they know it all, and they tend to just write very long and nerdy release notes and talk about using "industry" tools etc, but I've seen mistakes by them with audio and Dolby Vision metadata before (even plain converting HDR10plus to DV before, which is a no-no). Considering maxCLL and maxFALL metadata values for HDR BL (and L6 for DV too) are often inaccurate or even completely absent for many studio releases including UHD BDs, they clearly don't have the impact the group states during playback in all cases and MDL matters most (RESET_9999 confirmed they do matter in some cases in post below). I believe how all of these values impact PQ varies by playback device/TV and if in TV-LED or LLDV mode (for L6/DV), but statistically speaking, MDL is usually correct and matches the HDR grading monitor used, at least for retail UHD BD (don't forget that technically, a colourist can use a 4K mastering display but grade for peaks of 1K maxCLL still), and cannot be modified without re-encoding. More importantly, Dolby Vision metadata can have different internal MDL than the HDR BL metadata shows, and that is what counts for DV playback, which is quickly becoming the standard for majority of releases. As for your example, I don't see that they changed MDL, it's 4K in both before/after, they only modified the maxCLL and maxFALL values, which maybe is done using ffmpeg to do a "pass-through" re-encode and only modify those values? Maybe there's another way to do it though? Cheers!
Last edited by skull88 on Tue Mar 05, 2024 7:56 pm, edited 5 times in total.

RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#9738 Post by RESET_9999 » Tue Mar 05, 2024 7:50 pm

On LG TVs, for HDR10 it uses maxcll if it's under MDL otherwise it uses MDL. But yeah that sounds like the crappy group WiLDCAT/EPS. I remember a while ago , they even tried to convince people that the HDRplus_tools was wrong which is totally false. I wouldn't believe a word they say. and once again they proved it...

As for Dune, I just measured it with madVR and I get a maxcll of 1127nits so the original static metadata is clearly a studio decision that makes sense, and using a maxcll of 1804nits is complete non-sense and will force the TV to use a more aggressive tone mapping curve when in fact 99% of the movie is under 1000nits.



Image


Image
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices

skull88
Posts: 69
Joined: Mon Mar 27, 2023 3:08 pm

Re: Dolby Vision now possible through MP4 Mux.

#9739 Post by skull88 » Tue Mar 05, 2024 7:59 pm

Thanks for clarifying and confirming for Dune, RESET. I should also add that in some cases, the highest peak brightness found is actually in the studio logos or some 1-2 second blinding shot, and that is probably why studios don't always set maxCLL to match the brightest single frame in the entire master encode, but rather use other judgement/decision process, as that would not be a good idea for tonemapping if majority of the film is WAY below those tiny outliers.

LV8HD
Posts: 50
Joined: Tue Jan 11, 2022 3:48 pm

Re: Dolby Vision now possible through MP4 Mux.

#9740 Post by LV8HD » Tue Mar 05, 2024 8:03 pm

I see, thank you for the clarifications. Still, I don't understand how it is possible to change MDL or MaxCLL/FALL without re-encoding the video, but if it doesn't practically impact playback at all i think I'll get over this thought.

quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

#9741 Post by quietvoid » Wed Mar 06, 2024 5:05 pm

LV8HD wrote:
Tue Mar 05, 2024 8:03 pm
Still, I don't understand how it is possible to change MDL or MaxCLL/FALL without re-encoding the video, but if it doesn't practically impact playback at all i think I'll get over this thought.
It's just SEI in the bitstream.

There's been some other people asking me for a tool to do it, and I had started working on one long time ago (October 2022 from my git logs)
I just don't really care enough since it doesn't matter that much and I had other priorities.

skull88
Posts: 69
Joined: Mon Mar 27, 2023 3:08 pm

Re: Dolby Vision now possible through MP4 Mux.

#9742 Post by skull88 » Wed Mar 06, 2024 5:14 pm

Makes sense, I don't blame you either for leaving it in the past. Not to mention, a tool like that may have an unintended consequence of more "experts" and groups around the interwebz to modify retail values and spread misinformation about what they should or should not be.

speeddemon
Posts: 77
Joined: Wed Oct 16, 2019 3:44 am

Re: Dolby Vision now possible through MP4 Mux.

#9743 Post by speeddemon » Thu Mar 07, 2024 2:13 am

RESET_9999 wrote:
Tue Feb 13, 2024 1:43 pm
please ask any further questions related to the dovi_scripts here: https://forum.doom9.org/showthread.php? ... ost1997616

thanks.
Is this still a thing?

RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#9744 Post by RESET_9999 » Thu Mar 07, 2024 12:00 pm

speeddemon wrote:
Thu Mar 07, 2024 2:13 am
Is this still a thing?
of course
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices

sw5163
Posts: 146
Joined: Sat Jun 25, 2022 7:28 am

Re: Dolby Vision now possible through MP4 Mux.

#9745 Post by sw5163 » Fri Mar 08, 2024 2:23 am

Cannikin wrote:
Tue Mar 05, 2024 5:46 pm
Is there an easy ffmpeg command to convert an .mp4 with embedded DV (profile 5) to .mkv?
Looks like ffmpeg doesn't support dvh1 codec in mkv.
Try something like:

Code: Select all

ffmpeg -i dvh1.mp4 -c copy -vtag dvhe dvhe.mkv
I don't know if the mkv will play proper Dolby Vision though.

MartyMcNuts
Posts: 4590
Joined: Wed Nov 22, 2017 11:45 pm

Re: Dolby Vision now possible through MP4 Mux.

#9746 Post by MartyMcNuts » Fri Mar 08, 2024 6:52 am

sw5163 wrote:
Fri Mar 08, 2024 2:23 am
Cannikin wrote:
Tue Mar 05, 2024 5:46 pm
Is there an easy ffmpeg command to convert an .mp4 with embedded DV (profile 5) to .mkv?
Looks like ffmpeg doesn't support dvh1 codec in mkv.
Try something like:

Code: Select all

ffmpeg -i dvh1.mp4 -c copy -vtag dvhe dvhe.mkv
I don't know if the mkv will play proper Dolby Vision though.
Try using mkvtoolnix
Cheers :D
----------------------------------------------------------------------------------------------------------------------------
For UHD enabled drives (AU/NZ/SG + Others) & DIY Single Drive Flasher (WW): https://uhdenableddrives.com

Cannikin
Posts: 186
Joined: Tue Aug 18, 2020 11:54 pm

Re: Dolby Vision now possible through MP4 Mux.

#9747 Post by Cannikin » Fri Mar 08, 2024 10:07 pm

MartyMcNuts wrote:
Fri Mar 08, 2024 6:52 am
Try using mkvtoolnix
This worked! I didn't realize MKVToolNix could open files other than MKV, but sure enough it can!

tjreis2
Posts: 21
Joined: Sat Oct 29, 2022 3:40 pm

Re: Dolby Vision now possible through MP4 Mux.

#9748 Post by tjreis2 » Sun Mar 10, 2024 12:11 am

RESET_9999 wrote:
Wed Jan 24, 2024 7:47 pm
tjreis2 wrote:
Wed Jan 24, 2024 5:09 pm
Regarding the setup im using, do you think i need to change anything?
No , it sounds right but you should try DV MKV with kodi on your C2, it works great on my end (PGS and SRT).
https://kodi.wiki/view/HOW-TO:Install_Kodi_for_webOS
Hi again @RESET_9999!

I followed your advice and installed Kodi in the my C2 but im having some problems regarding the resolution and refresh rate options in the app..

In the display settings, only the 1920x1080p resolution is available, and in the whitelist options it only shows 1 available (1920x1080, 0Hz). When i playback some movies, i managed to get DV but the refresh rate doesnt switch, even though i turned on that setting in the player. Using the player info, i can see that it reads correctly the video stream (4k) but the screen information says 1080p and 60hz. It doesnt seem like an error because the movie is looking a bit blurry indeed..

Are you able to get 4k resolution and 24hz refresh rate in your setup?

RESET_9999
Posts: 2410
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#9749 Post by RESET_9999 » Sun Mar 10, 2024 12:53 pm

tjreis2 wrote:
Sun Mar 10, 2024 12:11 am

Hi again @RESET_9999!

I followed your advice and installed Kodi in the my C2 but im having some problems regarding the resolution and refresh rate options in the app..

In the display settings, only the 1920x1080p resolution is available, and in the whitelist options it only shows 1 available (1920x1080, 0Hz). When i playback some movies, i managed to get DV but the refresh rate doesnt switch, even though i turned on that setting in the player. Using the player info, i can see that it reads correctly the video stream (4k) but the screen information says 1080p and 60hz. It doesnt seem like an error because the movie is looking a bit blurry indeed..
no idea
Are you able to get 4k resolution and 24hz refresh rate in your setup?
yes
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices

tjreis2
Posts: 21
Joined: Sat Oct 29, 2022 3:40 pm

Re: Dolby Vision now possible through MP4 Mux.

#9750 Post by tjreis2 » Sun Mar 10, 2024 2:11 pm

Can you tell me what is the version of kodi that you installed, and if it was via webos dev manager?

I also have my lg c2 connected to an avr and i think it might be something related to its connection..

Post Reply