Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
stn17
Posts: 6
Joined: Tue Dec 14, 2021 5:31 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by stn17 »

It's not really correct place to ask, but I figure the best, since many of you did analyze various aspect of streaming services content.

Is lossy dolby atmos from streaming mixed the same way as lossless dolby atmos from disk?

In other words, which one is better:

Dolby vision FEL + Dolby Atmos DD+ from streaming
Dolby vision FEL + 5.1 DD+ 1536kb/s from Dolby Atmos 7.1 disk track
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

deadchip12 wrote:
Wed May 18, 2022 1:15 am
Most, if not all, of the profile 7 Dolby Vision films that I see show Video #1 and Video #2. Does this mean they are dual track? Is there any particular film that is profile 7 single track?
DV profile 7 is intended for UHDBD. It holds a base-layer and enhancement layer, which are muxed as separate videotracks in a m2ts container. So indeed that is called "dual track dual layer". I've never seen a Dolby Vision UHDBD that has one videotrack. MP4 can also be muxed as dual track dual layer.

Software like MakeMKV interleaves the two layers into one videotrack. The result still is a DV profile 7 mkv, but obviously now it's called "single track dual layer".
deadchip12
Posts: 379
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

Does anyone know a way to reduce the brightness of subtitles in hdr? They are blinding in dark scenes.
uhdiznotenough4mee
Posts: 17
Joined: Mon Aug 30, 2021 9:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by uhdiznotenough4mee »

deadchip12 wrote:
Wed May 18, 2022 9:49 am
Does anyone know a way to reduce the brightness of subtitles in hdr? They are blinding in dark scenes.
Thanks to quietvoid you can use this great tool: https://github.com/quietvoid/subtitle_tonemap

- put "BDSup2Sub512.jar" inside the folder with "subtitle_tonemap.exe"

- example of usage: subtitle_tonemap.exe "folder_with_pgs_subs" -o "folder_with_tonemapped_subs" -p 62

- the path to folders with .pgs subs should end without "\"
deadchip12
Posts: 379
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

uhdiznotenough4mee wrote:
Wed May 18, 2022 2:48 pm
deadchip12 wrote:
Wed May 18, 2022 9:49 am
Does anyone know a way to reduce the brightness of subtitles in hdr? They are blinding in dark scenes.
Thanks to quietvoid you can use this great tool: https://github.com/quietvoid/subtitle_tonemap

- put "BDSup2Sub512.jar" inside the folder with "subtitle_tonemap.exe"

- example of usage: subtitle_tonemap.exe "folder_with_pgs_subs" -o "folder_with_tonemapped_subs" -p 62

- the path to folders with .pgs subs should end without "\"
sorry but I downloaded the zip file but there's no subtitle_tonemap.exe. Could you let me know where it is?

Also, how do we extract the pgs sub and reattach the tonemapped version to the film afterwards?
Last edited by deadchip12 on Wed May 18, 2022 4:04 pm, edited 1 time in total.
uhdiznotenough4mee
Posts: 17
Joined: Mon Aug 30, 2021 9:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by uhdiznotenough4mee »

deadchip12 wrote:
Wed May 18, 2022 3:41 pm
uhdiznotenough4mee wrote:
Wed May 18, 2022 2:48 pm
deadchip12 wrote:
Wed May 18, 2022 9:49 am
Does anyone know a way to reduce the brightness of subtitles in hdr? They are blinding in dark scenes.
Thanks to quietvoid you can use this great tool: https://github.com/quietvoid/subtitle_tonemap

- put "BDSup2Sub512.jar" inside the folder with "subtitle_tonemap.exe"

- example of usage: subtitle_tonemap.exe "folder_with_pgs_subs" -o "folder_with_tonemapped_subs" -p 62

- the path to folders with .pgs subs should end without "\"
sorry but I downloaded the zip file but there's no subtitle_tonemap.exe. Could you let me know where it is?

Also, how do we find the folder that contains pgs subs?
You need to tonemap your pgs subs before you mux them.

Here (of course if you are using Win): https://github.com/quietvoid/subtitle_t ... s-msvc.zip
deadchip12
Posts: 379
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

uhdiznotenough4mee wrote:
Wed May 18, 2022 4:04 pm

You need to tonemap your pgs subs before you mux them.

Here (of course if you are using Win): https://github.com/quietvoid/subtitle_t ... s-msvc.zip
Thanks for the exe file. How do I extract the original pgs sub file from the film's bluray folder and reattach the tonemapped version to the film?
Last edited by deadchip12 on Wed May 18, 2022 4:19 pm, edited 1 time in total.
rco133
Posts: 8
Joined: Thu Jan 18, 2018 7:38 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by rco133 »

Hi.

This thread has become massive, and I am not sure if this is the right place to ask, since it is probably not makemkv related, but DV related.

I got a mkv file showing the following in mediainfo:

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

How it has been made I have no idea, and I don't know if the EL is MEL or FEL. All I know is that the BL has been encoded. If this has been done with the EL still inside the source file, or if they have been demuxed and just the BL encoded and the EL injected afterwards I don't know.

The mkv file itself is cropped to 3840x1636 with no black areas top/bottom.

When I do a frameinfo (from DVT tools) of frame 1000 I see the following:

"Level5": {
"active_area_left_offset": 0,
"active_area_right_offset": 0,
"active_area_top_offset": 263,
"active_area_bottom_offset": 263
}

Is it really correct that top/bottom should be set to 263, when the BL has been encoded and been cropped. Does it not mean that the DV in the EL will only have an active area of 3577x1899, and the top/bottom 263 pixels will have no DV? Should top and bottom not be set to zero, when the BL has been cropped.

This might very well be a stupid question, but I am just trying to get my head around all this DV stuff :-)

Thanks in advance.

rco133
uhdiznotenough4mee
Posts: 17
Joined: Mon Aug 30, 2021 9:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by uhdiznotenough4mee »

deadchip12 wrote:
Wed May 18, 2022 4:08 pm
uhdiznotenough4mee wrote:
Wed May 18, 2022 4:04 pm

You need to tonemap your pgs subs before you mux them.

Here (of course if you are using Win): https://github.com/quietvoid/subtitle_t ... s-msvc.zip
Thanks for the exe file. How do I extract the pgs sub file from the film's bluray folder and reattach the tonemapped version to the film?
Demux them using eac3to or DGDemux for example -> put them in some folder named "subs" -> create another folder inside folder "subs" named "tonemapped" -> open subtitle_tonemap.exe in cmd.exe and use this command: subtitle_tonemap.exe "C:\bin\subs" -o "C:\bin\subs\tonemapped" -p 60
-o = output
-p = % to multiply the final color of the subtitle. Defaults to 60%

-> mux them with MKVToolnix to your video file... that's it, done.
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

rco133 wrote:
Wed May 18, 2022 4:11 pm
Is it really correct that top/bottom should be set to 263, when the BL has been encoded and been cropped.
nop, that's incorrect and if you play the file on an LG OLED, it will display the movie overcropped in 3840x1110...
Profile 7 BL, shouldn't be re-encoded. I read somewhere here that the BL contains EL residues(which are lost when you re-encode).

EDIT: because the EL is not cropped, L5 of 263/263 should not overcrop...
Last edited by RESET_9999 on Wed May 18, 2022 5:01 pm, edited 1 time in total.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
deadchip12
Posts: 379
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

uhdiznotenough4mee wrote:
Wed May 18, 2022 4:23 pm
deadchip12 wrote:
Wed May 18, 2022 4:08 pm
uhdiznotenough4mee wrote:
Wed May 18, 2022 4:04 pm

You need to tonemap your pgs subs before you mux them.

Here (of course if you are using Win): https://github.com/quietvoid/subtitle_t ... s-msvc.zip
Thanks for the exe file. How do I extract the pgs sub file from the film's bluray folder and reattach the tonemapped version to the film?
Demux them using eac3to or DGDemux for example -> put them in some folder named "subs" -> create another folder inside folder "subs" named "tonemapped" -> open subtitle_tonemap.exe in cmd.exe and use this command: subtitle_tonemap.exe "C:\bin\subs" -o "C:\bin\subs\tonemapped" -p 60
-o = output
-p = % to multiply the final color of the subtitle. Defaults to 60%

-> mux them with MKVToolnix to your video file... that's it, done.
My films are in bluray folder structure, so I used tsmuxer to demux the subtitle file. I followed the instructions but got this error:
Image
Last edited by deadchip12 on Wed May 18, 2022 4:48 pm, edited 1 time in total.
uhdiznotenough4mee
Posts: 17
Joined: Mon Aug 30, 2021 9:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by uhdiznotenough4mee »

deadchip12 wrote:
Wed May 18, 2022 4:33 pm
uhdiznotenough4mee wrote:
Wed May 18, 2022 4:23 pm
deadchip12 wrote:
Wed May 18, 2022 4:08 pm

Thanks for the exe file. How do I extract the pgs sub file from the film's bluray folder and reattach the tonemapped version to the film?
Demux them using eac3to or DGDemux for example -> put them in some folder named "subs" -> create another folder inside folder "subs" named "tonemapped" -> open subtitle_tonemap.exe in cmd.exe and use this command: subtitle_tonemap.exe "C:\bin\subs" -o "C:\bin\subs\tonemapped" -p 60
-o = output
-p = % to multiply the final color of the subtitle. Defaults to 60%

-> mux them with MKVToolnix to your video file... that's it, done.
actually my films are in bluray folder structure, so does this method still work?
Are those udh blu-rays in folder structure? Those should already have tonemapped subs so watching them in HDR should not be a problem . Only subtitles from regular blu-rays ought to be tonemapped when putting them to HDR video.
You can still create a folder structure using TSmuxer if I am not mistaken.
rco133
Posts: 8
Joined: Thu Jan 18, 2018 7:38 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by rco133 »

RESET_9999 wrote:
Wed May 18, 2022 4:24 pm
rco133 wrote:
Wed May 18, 2022 4:11 pm
Is it really correct that top/bottom should be set to 263, when the BL has been encoded and been cropped.
nop, that's incorrect and if you play the file on an LG OLED, it will display the movie overcropped in 3840x1373...

Profile 7 BL, shouldn't be re-encoded. I read somewhere here that the BL contains EL residues(which are lost when you re-encode).
Thank you very much for the answer.

What if the BL and the EL is demuxed, the BL encoded (cropped) and then after encoding, either inject the static RPU data, with top/bottom set to 0, or join the encoded BL with the non encoded EL (FEL/MEL) and then mux with mkvmerge afterwards?

Or is it just a doomedays project to make a encoded and cropped Single Track / Dual Layer mkv file with DV data that actually works (there are plenty of them to be found, but how they are made I don't know).

Looking in mediainfo all looks fine and dandy. But the question should be wether the files actually works or not.

All this DV stuff makes my head spin :-)

rco133
deadchip12
Posts: 379
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

uhdiznotenough4mee wrote:
Wed May 18, 2022 4:46 pm
Are those udh blu-rays in folder structure? Those should already have tonemapped subs so watching them in HDR should not be a problem . Only subtitles from regular blu-rays ought to be tonemapped when putting them to HDR video.
You can still create a folder structure using TSmuxer if I am not mistaken.
Yes they are uhd blurays. Some movies still have overly bright subtitles in hdr - Disney movies like Black Widow or Spider-Man: Far From Home. You don't see any uhd movies with such issue on your end? This seems to be quite a common complaints, especially among people who watch movies in the dark.

I used tsmuxer to demux the pgs subtitle file, followed your instructions but got this error:
Image

Edit: wait, maybe I demuxed the wrong sub. Let me try again.
Last edited by deadchip12 on Wed May 18, 2022 5:06 pm, edited 4 times in total.
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

rco133 wrote:
Wed May 18, 2022 4:51 pm

Thank you very much for the answer.

What if the BL and the EL is demuxed, the BL encoded (cropped) and then after encoding, either inject the static RPU data, with top/bottom set to 0, or join the encoded BL with the non encoded EL (FEL/MEL) and then mux with mkvmerge afterwards?

Or is it just a doomedays project to make a encoded and cropped Single Track / Dual Layer mkv file with DV data that actually works (there are plenty of them to be found, but how they are made I don't know).

Looking in mediainfo all looks fine and dandy. But the question should be wether the files actually works or not.

All this DV stuff makes my head spin :-)

rco133
L5 should be set to 0 when the video is cropped. And profile 8 should be used.
The BL of a FEL bluray should not be re-encoded at all( even if the file works). see viewtopic.php?p=94396#p94396
Last edited by RESET_9999 on Wed May 18, 2022 5:02 pm, edited 1 time in total.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Post Reply