Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
RESET_9999
Posts: 2094
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.
deadchip12
Posts: 285
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: 14
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: 7
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: 285
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: 2094
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.
uhdiznotenough4mee
Posts: 14
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:51 pm
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?

I use tsmuxer to demux the pgs subtitle file, followed the instructions but got this error:
Image
Did you put "BDSup2Sub512.jar" to the same directory as subtitle_tonemap.exe?

https://www.videohelp.com/download/BDSup2Sub512.jar
deadchip12
Posts: 285
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:58 pm
deadchip12 wrote:
Wed May 18, 2022 4:51 pm
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?

I use tsmuxer to demux the pgs subtitle file, followed the instructions but got this error:
Image
Did you put "BDSup2Sub512.jar" to the same directory as subtitle_tonemap.exe?

https://www.videohelp.com/download/BDSup2Sub512.jar
Yep. Still the same error.

Image

Image

Image
uhdiznotenough4mee
Posts: 14
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 5:30 pm
uhdiznotenough4mee wrote:
Wed May 18, 2022 4:58 pm
deadchip12 wrote:
Wed May 18, 2022 4:51 pm

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?

I use tsmuxer to demux the pgs subtitle file, followed the instructions but got this error:
Image
Did you put "BDSup2Sub512.jar" to the same directory as subtitle_tonemap.exe?

https://www.videohelp.com/download/BDSup2Sub512.jar
Yep. Still the same error.

Image

Image

Image
Maybe there is a issue with those subs demuxed using tsmuxer... Try with eac3to: http://madshi.net/eac3to.zip

in cmd: eac3to.exe "blu-ray_folder" [choose 1) or 2) or different choice if blu-rays got more playlists] and then number for subtitles you want with the path where you want it

example: eac3to.exe "black_widow_uhd" 1) 6:C:\bin\english.sup 7:C:\bin\spanish.sup etc.

EDIT: CAN YOU UPLOAD THAT .sup file somewhere for me? you can PM me if you want.
deadchip12
Posts: 285
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 5:38 pm

Maybe there is a issue with those subs demuxed using tsmuxer... Try with eac3to: http://madshi.net/eac3to.zip

in cmd: eac3to.exe "blu-ray_folder" [choose 1) or 2) or different choice if blu-rays got more playlists] and then number for subtitles you want with the path where you want it

example: eac3to.exe "black_widow_uhd" 1) 6:C:\bin\english.sup 7:C:\bin\spanish.sup etc.

EDIT: CAN YOU UPLOAD THAT .sup file somewhere for me? you can PM me if you want.
I sent you a pm.
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

rco133 wrote:
Wed May 18, 2022 4:51 pm
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
if it's mel dual layer on the disc you can encode base layer and convert mel p7 extension layer to p8 rpu and inject that into encoded bl

fel has to remain untouched (unless access to pro tools?) from what i've seen

this is what I do with my UHD files

something to note found over on Plex forums someone here might find useful

apple tv users can only stream p5 to apple tv if codec id is dvh1, not with dvhe as mp4muxer puts out

see this post here for more: https://forums.plex.tv/t/plex-displays- ... =staknhalo
djanvi2020
Posts: 7
Joined: Thu Apr 30, 2020 10:35 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by djanvi2020 »

I do need a little help from whoever made that Dolby Vision Tools script,

Can i just say HOW AMAZING IS THAT SCRIPT.

One particular time i was able to have Spiderman Far From Home in Dolby TrueHD and DV in the one file under TS i think when it automatically brought up Mkvmerge for me but.....

Thing is i forgot the workflow on how to do that, i totally forgot it, can someone please remind me the workflow for it cause atm I have been using MP4 and in DD+ and thats been fine but i much prefer the TS version.

i have the new version 10 one can anyone help me remind me on the workflow i have to use???
RESET_9999
Posts: 2094
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

djanvi2020 wrote:
Thu May 19, 2022 12:24 pm
One particular time i was able to have Spiderman Far From Home in Dolby TrueHD and DV in the one file under TS i think when it automatically brought up Mkvmerge for me but.....
Thing is i forgot the workflow on how to do that, i totally forgot it, can someone please remind me the workflow for it cause atm I have been using MP4 and in DD+ and thats been fine but i much prefer the TS version.
i have the new version 10 one can anyone help me remind me on the workflow i have to use???
I assume you want a profile 8 TS file??
Bluray disc to P8: MODE.P7 ===> MODE.1 ===> Workflow.2
MKV P7 DV to P8: MODE.P7 ===> MODE.2 ===> Workflow.4

if you want tsmuxer to popup after the process, you have to edit the bat file with notepad and set tsmuxer.popup=YES and the other muxer to NO
default is set to noGUIpopup=YES ... not sure why your version default to mkvtoolnix.

Image
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

@RESET_9999

Not sure if you already tested this, but apparently there's a new developer setting in the latest Shield firmware that lets you toggle on a "default to rec.709" setting for hd videos that fixes the Shield's color issues (not sure if it's the red push specifically). Might be worth a test if you haven't tried it already? See here: https://www.youtube.com/watch?v=oK-L2Rx7P0A
RESET_9999
Posts: 2094
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

shawnc22 wrote:
Thu May 19, 2022 5:33 pm
@RESET_9999

Not sure if you already tested this, but apparently there's a new developer setting in the latest Shield firmware that lets you toggle on a "default to rec.709" setting for hd videos that fixes the Shield's color issues (not sure if it's the red push specifically). Might be worth a test if you haven't tried it already? See here: https://www.youtube.com/watch?v=oK-L2Rx7P0A
It looks like he's talking about SDR ?
The shield never had color issues with SDR/HDR10... It's the PLEX app that has color issues and only in SDR. HDR10 is fine.
If you use the apps like kodi, netflix, disney plus, MA, vudu etc, the colors in SDR are accurate.
here's how the color shift in SDR using the PLEX app on the shield: https://slow.pics/c/In4cvIsi

I'm still going to test the new firmware when I get home but with the pattern I did, anyone can test DV now and you cannot miss the issue (unlike the real scene in movies).
DV P8 pattern: https://drive.google.com/file/d/1huJtU6 ... sp=sharing
reference images: https://slow.pics/c/ga3ytybR
Post Reply