Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

chros wrote:
Sun Nov 01, 2020 6:57 pm
Good work, @quietvoid! Can you upload the binary for Windows somewhere? Thanks
I can't build for Windows, you can just use the 2018 binary or wait for yusesope's method.
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

No worries then :)
DaMacFunkin
Posts: 312
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

ghostshadow wrote:
Sun Nov 01, 2020 5:03 pm
i don't use the Gamma 004 8.1 just 8.1
So I wonder what Yousepe did differently?
userr
Posts: 63
Joined: Sat Apr 04, 2020 7:10 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by userr »

quietvoid wrote:
Sun Nov 01, 2020 5:29 pm

Anyways, dual track profile 7 stops working at commit 70a2e1d4d99a8439b7b8087bf50dd503eeea2291
I probably missed something, but are you saying you can no longer create profile 7 DTDL as of commit 70a2e1d4d99a8439b7b8087bf50dd503eeea2291?
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

userr wrote:
Sun Nov 01, 2020 10:51 pm
I probably missed something, but are you saying you can no longer create profile 7 DTDL as of commit 70a2e1d4d99a8439b7b8087bf50dd503eeea2291?
It can be created but they don't play on the LG C8.
cugrz
Posts: 2
Joined: Sun Nov 01, 2020 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by cugrz »

yusesope wrote:
Thu Sep 17, 2020 2:59 pm

I don't have a mac and I can't (want :roll: ) compile my code for macOS users. For now the latter cannot use this version of my tool (the problem is easily solved if some of you with a mac compile my code).
@yusesope,

I came across this thread yesterday and have be reading and researching like crazy since then. I had previously been working on extracting and encoding HDR10+ data. I was very excited to learn that you and others are working on a solution for Dolby Vision and I am very interested in helping with this project. I am one of those mac users you mention above. :) If you could give me a little direction I would be happy to compile your code and get it working on a mac.
The_KiD
Posts: 1
Joined: Mon Nov 02, 2020 4:21 am

Re: Dolby Vision now possible through MP4 Mux.

Post by The_KiD »

thelittleworm wrote:
Wed Dec 26, 2018 10:37 pm
So apparently there's a method to backup UHD ISO's into MP4's that triggers Dolby Vision on an LG or Vizio television app via USB. I made this thread in the hopes we can figure out a way to reconvert this into MKV. The procecure is the following -



1. Make ISO of movie. I have only tested this with Black Panther since that's the only one I own. I will be buying Gladiator this weekend to test out though.

2. Use TS Muxer to open the ISO. Find the correct M2TS file and demux the following files:
A. HEVC1 in 4K (Base layer)
B. HEVC 2 in 1080p (this is the dolby vision enhancement layer)
C. Audio track which you will have to convert to AC3. This is a hard line limitation- you need to use AC3!!!

3. Once you have HEVC1, HEVC2, and the Audio track. Run Dolby Vision MP4Muxer (https://github.com/DolbyLaboratories/dlb_mp4base)
DolbyVision MP4 Muxer only works in Command Prompt so you have to navigate to the corresponding folders where the files are and type


mp4muxer --dv-profile 7 --input-file (baselayername.hevc1) --input-file (dvlayername.hevc2) --input-file (audio.ac3) --media-lang eng --output-file (nameofmovie).mp4


*Right now we are limited to only MP4 and AC3 audio. Hoping we figure out an MKV solution.

It sounds like its complicated, but it isn't. The entire process took me an hour to figure out, but once I did it, I sold my Xbox One X, because I'm now using my LG USB to play Dolby Vision MP4's! Hopefully this starts a discussion.
So my TV triggers the "Dolby Vision" but the video is only Purple/Green, what did i wrong?
Hi-Res
Posts: 13
Joined: Fri Mar 22, 2019 11:30 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Hi-Res »

quietvoid wrote:
Sun Nov 01, 2020 5:29 pm
yusesope wrote:
Sun Nov 01, 2020 9:56 am
It takes time (which I don't have :( ) and it would be like looking for a needle in a haystack :roll: .
I'm sure you know how to use a hex editor and maybe you could try it too and maybe you're luckier than me.
Just compare the two files (only video, no audio): if you spot a significant difference I might try to modify the behavior of my tool to emulate it!
I just went looking into the diff of the mp4muxer code 8)
Anyways, dual track profile 7 stops working at commit 70a2e1d4d99a8439b7b8087bf50dd503eeea2291
I made a change that fixed it for me, apparently the video mp4 box was never tagged as Dolby Vision (dvhe, dvh1).

I forked the repo, so you can see the diff here: https://github.com/quietvoid/dlb_mp4bas ... d1e72R1557
Disregard the spacing diff, it's really just the if condition for `dolby_vision_flag`.
Hopefully this helps you, at least now I can use my patched version instead of the 2018 commit.

Comparing mediainfos, the EL track's codec ID changes to 'dvhe' after the patch instead of 'hev1'.
So latest mp4muxer and your sample files all have the EL track codec ID as 'hev1' when it should be 'dvhe' :).
Really appreciate it. Hopefully someone can assembly a windows executable file with this change. I'm having trouble using the hex-editor and doing it manually.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

ghostshadow wrote:
Sun Nov 01, 2020 5:03 pm
i don't use the Gamma 004 8.1 just 8.1
DaMacFunkin wrote:
Sun Nov 01, 2020 9:01 pm
So I wonder what Yousepe did differently?
Hey @ghostshadow, what do you mean "just 8.1"?
Are you using BETA or GAMMA?
Could you describe the steps you follow so @DaMacFunkin can replicate them and can experiment on his Zidoo too? Thanks!


cugrz wrote:
Mon Nov 02, 2020 3:20 am
yusesope wrote:
Thu Sep 17, 2020 2:59 pm

I don't have a mac and I can't (want :roll: ) compile my code for macOS users. For now the latter cannot use this version of my tool (the problem is easily solved if some of you with a mac compile my code).
@yusesope,

I came across this thread yesterday and have be reading and researching like crazy since then. I had previously been working on extracting and encoding HDR10+ data. I was very excited to learn that you and others are working on a solution for Dolby Vision and I am very interested in helping with this project. I am one of those mac users you mention above. :) If you could give me a little direction I would be happy to compile your code and get it working on a mac.
I'm sorry, but after the October 2nd update of BETA there is no longer any source code for MacOS that can be compiled.



quietvoid wrote:
Sun Nov 01, 2020 5:29 pm
So latest mp4muxer and your sample files all have the EL track codec ID as 'hev1' when it should be 'dvhe' :).
A small change for a great result :D .
Thank you for saving me a lot of time :mrgreen: !
It will take me a couple of seconds to correct the problem.
In the evening I will upload a sample so that all of you can try it (remembering that LG >= 2020 may still not be able to play the file unlike LG <= 2019. Also, DTDL files can only be played on LG TVs and bluray players like X700).

@quietvoid, if the file works, would you like to test everything before I make it public?
So I can be sure that the new process works on a full movie and on an LG TV.
Thanks!
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

yusesope wrote:
Mon Nov 02, 2020 11:52 am
@quietvoid, if the file works, would you like to test everything before I make it public?
So I can be sure that the new process works on a full movie and on an LG TV.
Thanks!
Sure.
ghostshadow
Posts: 55
Joined: Sun Sep 13, 2020 10:25 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ghostshadow »

yusesope wrote:
Mon Nov 02, 2020 11:52 am
ghostshadow wrote:
Sun Nov 01, 2020 5:03 pm
i don't use the Gamma 004 8.1 just 8.1
DaMacFunkin wrote:
Sun Nov 01, 2020 9:01 pm
So I wonder what Yousepe did differently?
Hey @ghostshadow, what do you mean "just 8.1"?
Are you using BETA or GAMMA?
Could you describe the steps you follow so @DaMacFunkin can replicate them and can experiment on his Zidoo too? Thanks!

Hello yusesope, I am using your 8.1 Beta method:

Code: Select all

UHD-BD TO PROFILE 8.1

You can use both UHD-BD MEL and FEL

    In the case of a Dual Track Dual Layer DV file (e.g. an m2ts file in the BDMV\STREAM folder)
        Extract the base layer and the enhancement layer

        Code: Select all

        ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:0 -c copy path\to\BL.hevc
        ffmpeg -i path\to\the\file.m2ts -ss 0 -t 120 -map 0:1 -c copy path\to\EL.hevc

        Using my tool, double click on the MUX_AND_CONVERT_TO_PROFILE_81.bat file and follow the instructions on the screen.
        You will get a BL_EL_RPU.hevc file.
        Actually, the file does not contain EL (it's just BL+RPU).
        BL_EL_RPU is just the filename !!!
        Let's put it this way, you are too lazy to use the command line and I am too lazy to add lines of code for the purpose of renaming a file
        EXTRA (MKV):
Simply, create an ISO using BL_EL_RPU and TsMuxeR.
Open the ISO with MakeMKV and create mkv
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

PlatypusW wrote:
Thu Oct 29, 2020 5:40 pm
quietvoid wrote:
Thu Oct 29, 2020 7:30 pm
daddy wrote:
Fri Oct 30, 2020 6:16 am
kws53 wrote:
Fri Oct 30, 2020 9:51 pm
I took @quietvoid's advice and THESE should be the last samples to test ... I hope so :mrgreen: !

There are two samples (I still have a little doubt).
Try them both and let me know.
Thank you for your time!




ghostshadow wrote:
Mon Nov 02, 2020 3:10 pm
Hello yusesope, I am using your 8.1 Beta method:
Thanks for the reply
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

yusesope wrote:
Mon Nov 02, 2020 5:45 pm
There are two samples (I still have a little doubt).
Both seem to work and playback the same, triggering Dolby Vision on the C8.
cuculain
Posts: 12
Joined: Fri Oct 09, 2020 6:28 am

Re: Dolby Vision now possible through MP4 Mux.

Post by cuculain »

neither of the new files are recognized by the internal Panasonic Z1000 oled (did still show earlier versions on the drive)
edit
renamed files and recognized this time
both files played as HDR only (tested vs Alita mkv which does bring up DV/DA)

both files played as HDR only with audio on the Zidoo Z9x (should be new firmware this week,so hopefully they fix the DV/DA issues )
Last edited by cuculain on Mon Nov 02, 2020 9:31 pm, edited 1 time in total.
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by kws53 »

yusesope wrote:
Mon Nov 02, 2020 5:45 pm
kws53 wrote:
Fri Oct 30, 2020 9:51 pm
I took @quietvoid's advice and THESE should be the last samples to test ... I hope so :mrgreen: !

There are two samples (I still have a little doubt).
Try them both and let me know.
Thank you for your time!
After installing Shield 8.8.1...
All MKV samples play DV - all MP4 samples (including the new 021120 ones) only play HDR. MP4 and Shield apparently do not play well together.

I've now standardized on using the GAMMA method. I'd like to add Chapters to the MKV file. Any thoughts on how I should proceed?
Post Reply