## Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

### Re: Dolby Vision now possible through MP4 Mux.

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 ) 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 .
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!
quietvoid
Posts: 79
Joined: Sun Apr 19, 2020 4:15 pm

### Re: Dolby Vision now possible through MP4 Mux.

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.
Posts: 55
Joined: Sun Sep 13, 2020 10:25 am

### Re: Dolby Vision now possible through MP4 Mux.

yusesope wrote:
Mon Nov 02, 2020 11:52 am
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.

PlatypusW wrote:
Thu Oct 29, 2020 5:40 pm
quietvoid wrote:
Thu Oct 29, 2020 7:30 pm
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 !

There are two samples (I still have a little doubt).
Try them both and let me know.

Mon Nov 02, 2020 3:10 pm
Hello yusesope, I am using your 8.1 Beta method:
quietvoid
Posts: 79
Joined: Sun Apr 19, 2020 4:15 pm

### Re: Dolby Vision now possible through MP4 Mux.

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.

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.

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 !

There are two samples (I still have a little doubt).
Try them both and let me know.
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?
DaMacFunkin
Posts: 285
Joined: Tue Oct 30, 2018 4:17 pm

### Re: Dolby Vision now possible through MP4 Mux.

kws53 wrote:
Mon Nov 02, 2020 8:54 pm
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 !

There are two samples (I still have a little doubt).
Try them both and let me know.
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?
Drop your new mkv in mkvtoolnix then either add the original mpls file or mkv rip and delete everything except the chapters then remix together.
DaMacFunkin
Posts: 285
Joined: Tue Oct 30, 2018 4:17 pm

### Re: Dolby Vision now possible through MP4 Mux.

Mon Nov 02, 2020 3:10 pm
yusesope wrote:
Mon Nov 02, 2020 11:52 am
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
Thanks for this, I will try when I get time.
I have also submitted a sample of FEL to MEL 8.1 made with Gamma 004 to Zidoo vie Mark Swift, hopefully they can adapt the sdk to recognise this method, if they can I think we are onto a winner.
PlatypusW
Posts: 40
Joined: Mon Aug 03, 2020 2:14 pm

### Re: Dolby Vision now possible through MP4 Mux.

yusesope wrote:
Mon Nov 02, 2020 5:45 pm

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.
I think you already knew the result but just for completion sake:

On my CX both files did the usual "This file cannot be recognised. Do you want to play the next file?"
FDM80
Posts: 1
Joined: Sat Oct 17, 2020 11:38 pm

### Re: Dolby Vision now possible through MP4 Mux.

yusesope wrote:
Mon Nov 02, 2020 5:45 pm
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.
Both files properly trigger DV mode and play on the LG C7.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

### Re: Dolby Vision now possible through MP4 Mux.

quietvoid wrote:
Mon Nov 02, 2020 2:02 pm
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.
I just sent you a PM with what you need!
When you feel like it, give it a try!
Thanks!

PlatypusW wrote:
Mon Nov 02, 2020 9:29 pm
I think you already knew the result but just for completion sake:
On my CX both files did the usual "This file cannot be recognised. Do you want to play the next file?"
FDM80 wrote:
Mon Nov 02, 2020 10:55 pm
Both files properly trigger DV mode and play on the LG C7.
quietvoid wrote:
Mon Nov 02, 2020 6:51 pm
Both seem to work and playback the same, triggering Dolby Vision on the C8.
It seems that 2020 LG TVs actually have some issues with the DTDL mp4 files generated by both Dolby's mp4muxer and my tool.
I advise the owners of the latter to use files with profile 8.1 (as soon as I have some time, I will update the GAMMA post with instructions to generate MP4 files).

cuculain wrote:
Mon Nov 02, 2020 8:12 pm
neither of the new files are recognized by the internal Panasonic Z1000 oled / Zidoo Z9x ......... both files played as HDR only
kws53 wrote:
Mon Nov 02, 2020 8:54 pm
all MP4 samples (including the new 021120 ones) only play HDR. MP4 and Shield apparently do not play well together.
DTDL files can only be played on LG TVs and bluray players.

kws53 wrote:
Mon Nov 02, 2020 8:54 pm
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?
I haven't tried it yet. Try like this:
using GAMMA, in the second command line:
• replace

Code: Select all

-i \path\to\your\original\file.m2ts
with

Code: Select all

-i bluray:\path\to\bluray
where \path\to\bluray must be the address of the folder that contains the BDMV folder.

.
• before -c copy add the switch -map_chapters 1

EXPLANATION:
On blu-ray chapters are stored in mpls files.
With the "-i bluray:" switch you tell FFmpeg to read the longest playlist (mpls).
With the -map_chapters switch instead you tell FFmpeg to copy the chapters from the second input and insert them in the output file. Remember that, as in programming languages, the first element is always zero. So, in this case, the second input is one (-map_chapters 1)!

I invite you to read how these switches work (bluray and map_chapters).
With FFmpeg you can do whatever you want. It's up to you to read the documentation.
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

### Re: Dolby Vision now possible through MP4 Mux.

DaMacFunkin wrote:
Mon Nov 02, 2020 9:06 pm
kws53 wrote:
Mon Nov 02, 2020 8:54 pm
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?
Drop your new mkv in mkvtoolnix then either add the original mpls file or mkv rip and delete everything except the chapters then remix together.
I considered this originally, but thought that a REMUX would remove the relevant internal metadata/coding. However, a test has confirmed this works!
I now have a Jack Reacher MKV with Chapters triggering DV...
kws53
Posts: 49
Joined: Sun May 04, 2014 9:09 pm

### Re: Dolby Vision now possible through MP4 Mux.

yusesope wrote:
Tue Nov 03, 2020 10:46 am
kws53 wrote:
Mon Nov 02, 2020 8:54 pm
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?
I haven't tried it yet. Try like this:
using GAMMA, in the second command line:
• replace

Code: Select all

-i \path\to\your\original\file.m2ts
with

Code: Select all

-i bluray:\path\to\bluray
where \path\to\bluray must be the address of the folder that contains the BDMV folder.
• before -c copy add the switch -map_chapters 1

EXPLANATION:
On blu-ray chapters are stored in mpls files.
With the "-i bluray:" switch you tell FFmpeg to read the longest playlist (mpls).
With the -map_chapters switch instead you tell FFmpeg to copy the chapters from the second input and insert them in the output file. Remember that, as in programming languages, the first element is always zero. So, in this case, the second input is one (-map_chapters 1)!

I invite you to read how these switches work (bluray and map_chapters).
With FFmpeg you can do whatever you want. It's up to you to read the documentation.
I'll give this a try (including changing the appropriate code in first command line) and report back. If this works, it will solve another potential problem - UHD with seamless branching (multiple m2ts components).
DaMacFunkin
Posts: 285
Joined: Tue Oct 30, 2018 4:17 pm

### Re: Dolby Vision now possible through MP4 Mux.

kws53 wrote:
Tue Nov 03, 2020 5:41 pm
yusesope wrote:
Tue Nov 03, 2020 10:46 am
kws53 wrote:
Mon Nov 02, 2020 8:54 pm
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?
I haven't tried it yet. Try like this:
using GAMMA, in the second command line:
• replace

Code: Select all

-i \path\to\your\original\file.m2ts
with

Code: Select all

-i bluray:\path\to\bluray
where \path\to\bluray must be the address of the folder that contains the BDMV folder.
• before -c copy add the switch -map_chapters 1

EXPLANATION:
On blu-ray chapters are stored in mpls files.
With the "-i bluray:" switch you tell FFmpeg to read the longest playlist (mpls).
With the -map_chapters switch instead you tell FFmpeg to copy the chapters from the second input and insert them in the output file. Remember that, as in programming languages, the first element is always zero. So, in this case, the second input is one (-map_chapters 1)!

I invite you to read how these switches work (bluray and map_chapters).
With FFmpeg you can do whatever you want. It's up to you to read the documentation.
I'll give this a try (including changing the appropriate code in first command line) and report back. If this works, it will solve another potential problem - UHD with seamless branching (multiple m2ts components).
If there are multiple main movie playlists, ie 0800, 0801, 0802 and you specifically know you want 0801, cut the other 2 out of the playlist folder, this way ffmpeg will choose 0801 as the only main movie playlist in the folder