I can't build for Windows, you can just use the 2018 binary or wait for yusesope's method.
Dolby Vision now possible through MP4 Mux.
Re: Dolby Vision now possible through MP4 Mux.
No worries then 
-
DaMacFunkin
- Posts: 312
- Joined: Tue Oct 30, 2018 4:17 pm
Re: Dolby Vision now possible through MP4 Mux.
So I wonder what Yousepe did differently?
Re: Dolby Vision now possible through MP4 Mux.
@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.
Re: Dolby Vision now possible through MP4 Mux.
So my TV triggers the "Dolby Vision" but the video is only Purple/Green, what did i wrong?thelittleworm wrote: ↑Wed Dec 26, 2018 10:37 pmSo 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.
Re: Dolby Vision now possible through MP4 Mux.
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.quietvoid wrote: ↑Sun Nov 01, 2020 5:29 pmI just went looking into the diff of the mp4muxer codeyusesope wrote: ↑Sun Nov 01, 2020 9:56 amIt takes time (which I don't have) and it would be like looking for a needle in a haystack
.
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!![]()
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'.
Re: Dolby Vision now possible through MP4 Mux.
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!
I'm sorry, but after the October 2nd update of BETA there is no longer any source code for MacOS that can be compiled.cugrz wrote: ↑Mon Nov 02, 2020 3:20 am@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.
A small change for a great result
Thank you for saving me a lot of time
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!
-
ghostshadow
- Posts: 55
- Joined: Sun Sep 13, 2020 10:25 am
Re: Dolby Vision now possible through MP4 Mux.
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 mkvRe: Dolby Vision now possible through MP4 Mux.
I took @quietvoid's advice and THESE should be the last samples to test ... I hope so
There are two samples (I still have a little doubt).
Try them both and let me know.
Thank you for your time!
Thanks for the reply
Re: Dolby Vision now possible through MP4 Mux.
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 )
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.
Re: Dolby Vision now possible through MP4 Mux.
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?