Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
darrrkmanxxx
Posts: 95
Joined: Mon Apr 13, 2020 9:55 am

Re: Dolby Vision now possible through MP4 Mux.

Post by darrrkmanxxx »

ans40 wrote: Mon Oct 21, 2024 9:31 pm
Jimbo21 wrote: Mon Oct 21, 2024 9:31 am Hi all

Does anyone know if there is a Mac app that converts HDR10+ to Dolby Vision?

Have used Nekno's "DV7 to DV8" MacOS app (as the name implies, to convert DV7 to DV8). It works well. But am trying to find something for HDR10+ to DV. Have seen Reset's DoVi scripts, but unfortunately don't have Windows.

Thanks!
I'm not sure about Mac options, but you could use the tools with a Windows virtual machine, too.
sorry late to the party but you can do everything on macos, besides the madvr measureing.
- extract hevc file from the container with Tsmuxer
- extract the hdr10+ json from the hevc with: https://github.com/quietvoid/hdr10plus_tool
- convert to dvp8 rpu with: https://github.com/quietvoid/dovi_tool look for From an existing HDR10+ metadata JSON file
- adjust CMv4.0 and L5 Active area if not OpenMatte, see https://github.com/quietvoid/dovi_tool look for editor with data from MedIaInfo (see Mastering display luminance etc.)
- mux back the new dvp8.hevc files into the container with MKVToolsnix

hdr10plus_tool, dovi_tool, MKVToolnix and TsMuxeR are working native on macOS
ColonelBlimp043
Posts: 33
Joined: Wed Jan 19, 2022 3:30 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ColonelBlimp043 »

If I run 3-1 to generate a new RPU for a profile 7 FEL MKV with static metadata, will the FEL be analyzed together with the BL by CM Analyzer?

I tried bake encoding the BL+FEL into a ProRes .mov with 8-2 and then running 3-1 on the resulting ProRes .mov, but I received an error message that the ProRes file was not HDR.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

If I run 3-1 to generate a new RPU for a profile 7 FEL MKV with static metadata, will the FEL be analyzed together with the BL by CM Analyzer?
No, 3-1 doesnt bake FEL.
I tried bake encoding the BL+FEL into a ProRes .mov with 8-2 and then running 3-1 on the resulting ProRes .mov, but I received an error message that the ProRes file was not HDR.
You'll probably have to provide the shot list. If the original static RPU has proper scene cuts, just rename it the same as your prores file and try 3-1 again.
If the original has no scene cut, you can try to add ''transfer=hdr matrix=2020'' in your prores filename but I'm not sure if generating new scene cuts for FEL is right because of the reshaping metadata.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
ColonelBlimp043
Posts: 33
Joined: Wed Jan 19, 2022 3:30 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ColonelBlimp043 »

Thanks. Even if I successfully run 3-1 on the baked pro-res file, though, is there any way to inject the generated RPU into the original profile 7 FEL mkv? As I understand workflow 1’s inject function, it would discard the FEL video track and create a profile 8 mkv with the BL and new rpu.

Essentially, I want to mux the new rpu with original BL and EL video tracks.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

You have to transfer the generated metadata levels to the original P7 RPU with workflow 2-3. You'll have to transfer levels 12389 but you may have to transfer 12 and then 389(I'm not sure if 12389 will work).
If you didn't use the original scene cuts, you have to transfer them too but as I said earlier I'm not sure it is right to change the original FEL scene cuts.

Then you can inject the new P7 RPU to the original P7 mkv rip with workflow 1
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
ColonelBlimp043
Posts: 33
Joined: Wed Jan 19, 2022 3:30 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ColonelBlimp043 »

Thanks. I genuinely appreciate the help. This is only a problem on a handful of FEL rips with static/missing metadata. Criterion seems to be the worst offender as a publisher, and the recent Cameron releases also have static trims. Thankfully they all seem to be mastered at low nit levels and don’t use the FEL to raise brightness, so this may all be academic.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

RESET_9999 wrote: Sat Nov 09, 2024 1:50 pm anyway the problem is the EL and german discs
I wonder if all the French UHD-BD should be verified now. It looks like Blade 1998 FEL FRA BD has the same issue :(

https://slow.pics/c/YzYgHn4x
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
jayper
Posts: 335
Joined: Sat Sep 29, 2012 5:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jayper »

RESET_9999 wrote: Tue Nov 26, 2024 3:55 pm
RESET_9999 wrote: Sat Nov 09, 2024 1:50 pm anyway the problem is the EL and german discs
I wonder if all the French UHD-BD should be verified now. It looks like Blade 1998 FEL FRA BD has the same issue :(

https://slow.pics/c/YzYgHn4x
So, to be clear, is this a disc mastering issue? A MakeMKV issue? Or a combination?

Sorry to be late on this. What's the best way to verify our backups? Thanks!
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

It's a disc authoring/encoding issue.
To verify your makemkv rip, just extract the RPU, info/plot it with dovi_tool, and check if the framecount matches the video.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
jayper
Posts: 335
Joined: Sat Sep 29, 2012 5:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jayper »

RESET_9999 wrote: Tue Nov 26, 2024 4:54 pm It's a disc authoring/encoding issue.
To verify your makemkv rip, just extract the RPU, info/plot it with dovi_tool, and check if the framecount matches the video.
Thanks so much! Much appreciated.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

PS: I added a new tab to my Excel sheet for the problematic discs:
https://docs.google.com/spreadsheets/d/ ... 2109165913
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
DiscoD
Posts: 5
Joined: Sun May 29, 2022 12:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by DiscoD »

Is there a setting somewhere i can change to save the log file of the entire process when i run 8-2-1.
i would like to save it to a txt file if possible in the same folder.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

DiscoD wrote: Wed Nov 27, 2024 5:32 pm Is there a setting somewhere i can change to save the log file of the entire process when i run 8-2-1.
i would like to save it to a txt file if possible in the same folder.
I could but it makes the x265.exe progress bar to display a new line for each few frames. I don't know how to keep the progress bar on the same line and export the log at the same time.

If you still want it, you can modify line 17370

Code: Select all

"%x265_path%" %settings% %static_metadata% %P8RPU% --input "%TEMP%script.avs" --output "%output_path%%filename%%encodetype%.hevc" & echo off & set HDR="%output_path%%filename%%encodetype%.hevc"& goto :MUXER
change it to:

Code: Select all

"%x265_path%" %settings% %static_metadata% %P8RPU% --input "%TEMP%script.avs" --output "%output_path%%filename%%encodetype%.hevc" 2>&1 | PowerShell -Command "$input | Tee-Object -FilePath \"%output_path%%filename%_encode_log.txt\""
@echo off
set HDR="%output_path%%filename%%encodetype%.hevc"& goto :MUXER


EDIT:
added an option to export x265 encoding logs at line 167 (off by default)
https://drive.google.com/file/d/128gq8a ... drive_link
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
dkangel
Posts: 5
Joined: Sun Oct 23, 2022 12:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by dkangel »

hello everybody
can someone explain step by step how to make mkv remux from these bluray with bad authoring ?
thank you very much

EDIT : I think i've found, just import m2ts file in dovi_scripts, so simple as that ?
LV8HD
Posts: 53
Joined: Tue Jan 11, 2022 3:48 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by LV8HD »

@RESET_9999 can the RPU coming from the korean UHD Blu-ray be injected in the french UHD Blu-ray in your opinion?

Plots: https://slow.pics/c/fDGDHo8Y

PQ: https://slow.pics/c/TiKmEYmY

I'm not 100% sure because there's a slight PQ difference between the two. For example in comparison number 12 you can clearly see it in the color of the red pencil.