Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
darrrkmanxxx
Posts: 55
Joined: Mon Apr 13, 2020 9:55 am

Re: Dolby Vision now possible through MP4 Mux.

Post by darrrkmanxxx »

Epedemic wrote:
Wed May 20, 2020 10:56 am
deadchip12 wrote:
Wed May 20, 2020 12:47 am
MastaG wrote:
Tue Mar 17, 2020 1:05 pm
For Dolby Vision + Atmos:

Here's my success story for Gemini Man 2019 which is a 60fps movie which plays much more fluent.
I'm using Fedora 31 Linux but I've also posted windows links

Tools:
- ffmpeg - compiled from latest git (Windows build: https://ffmpeg.zeranoe.com/builds/)
- yusesope - tool V3: https://www.makemkv.com/forum/viewtopic ... 335#p85413
- eac3to portable version with wine - https://www.videohelp.com/software/eac3to
- tsmuxer modified for DV by a5180007/justdan96 - compiled from his github https://github.com/justdan96/tsMuxer (Windows build: https://bintray.com/justdan96/tsMuxer/t ... UI-Nightly) (Original forum thread: http://forum.doom9.org/showthread.php?t=176668&page=31)
Use the latest nightly tsMuxerGUI from this link, it's more recent compared the one posted a few pages back! and a5180007 also added support for eac3 dolby digital plus! (only 5.1)

First I demux the original bluray (will only work if I compile the latest FFMpeg git from source):

Code: Select all

ffmpeg -i bluray:/path/to/my/bluray -map 0:0 -c copy ./BL.hevc -map 0:1 -c copy ./EL.hevc -map 0:2 -c:a copy -strict -2 ./atmos.mp4
Now I have:
BL.hevc - Base Layer
EL.hevc - Enhanced Layer
atmos.mp4 - Dolby TrueHD Atmos audio

Now I use yusescope V3 tool to create a single layer DV file:

Code: Select all

python src/bl_el_rpu_builder.py -bl ./BL.hevc -el ./EL.hevc -of gemini_dv.hevc -mode 1
Now I also have:
gemini_dv.hevc - Full movie Single Layer DV

Now I use eac3to Gui to convert the atmos.mp4 to a compatible truehd+ac3 track for use with TSMuxeR:

Code: Select all

wine UsEac3To.exe
- Click Input File and select atmos.mp4
- Under Track Input and Output format change "ac3" to "thd+ac3" then click Add
- In the bottom click RUN CL and wait
When finished you will have a "atmos.mp4_.thd+ac3" file, rename this to "atmos.ac3"

Now launch justdan96's version of TsMuxerGUI then add your movie file: "gemini_dv.hevc" and audio file: "atmos.ac3".
So I have tried this method for Gemini man and Sonic 2019 and both of them freeze every 2 seconds during playback. My tv is lg oled c9. The files were stored in an external hdd connected to the tv via usb. All other souble layered dolby vision mp4 files created using the original method in the first post of this thread play fine. Maybe my tv can't properly play .ts file/single layered dolby vision file?
Well, i'm not sure, but it sounds like what my E6 did when i accidentially fed it a .mp4 with a Atmos thd+ac3 file renamed to .ac3 waaaay back.... My suggestion: Try with a clean ac3 file and see if that helps, and then figure out how to do a proper thd+ac3 track afterwards (or put both in and switch between them and see if one or both works)
Why don't just demux TrueHD track with tsmuxer? It's perfectly recognised, when muxing back with DV hevc file.
deadchip12
Posts: 285
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

Epedemic wrote:
Wed May 20, 2020 10:56 am
deadchip12 wrote:
Wed May 20, 2020 12:47 am
MastaG wrote:
Tue Mar 17, 2020 1:05 pm
For Dolby Vision + Atmos:

Here's my success story for Gemini Man 2019 which is a 60fps movie which plays much more fluent.
I'm using Fedora 31 Linux but I've also posted windows links

Tools:
- ffmpeg - compiled from latest git (Windows build: https://ffmpeg.zeranoe.com/builds/)
- yusesope - tool V3: https://www.makemkv.com/forum/viewtopic ... 335#p85413
- eac3to portable version with wine - https://www.videohelp.com/software/eac3to
- tsmuxer modified for DV by a5180007/justdan96 - compiled from his github https://github.com/justdan96/tsMuxer (Windows build: https://bintray.com/justdan96/tsMuxer/t ... UI-Nightly) (Original forum thread: http://forum.doom9.org/showthread.php?t=176668&page=31)
Use the latest nightly tsMuxerGUI from this link, it's more recent compared the one posted a few pages back! and a5180007 also added support for eac3 dolby digital plus! (only 5.1)

First I demux the original bluray (will only work if I compile the latest FFMpeg git from source):

Code: Select all

ffmpeg -i bluray:/path/to/my/bluray -map 0:0 -c copy ./BL.hevc -map 0:1 -c copy ./EL.hevc -map 0:2 -c:a copy -strict -2 ./atmos.mp4
Now I have:
BL.hevc - Base Layer
EL.hevc - Enhanced Layer
atmos.mp4 - Dolby TrueHD Atmos audio

Now I use yusescope V3 tool to create a single layer DV file:

Code: Select all

python src/bl_el_rpu_builder.py -bl ./BL.hevc -el ./EL.hevc -of gemini_dv.hevc -mode 1
Now I also have:
gemini_dv.hevc - Full movie Single Layer DV

Now I use eac3to Gui to convert the atmos.mp4 to a compatible truehd+ac3 track for use with TSMuxeR:

Code: Select all

wine UsEac3To.exe
- Click Input File and select atmos.mp4
- Under Track Input and Output format change "ac3" to "thd+ac3" then click Add
- In the bottom click RUN CL and wait
When finished you will have a "atmos.mp4_.thd+ac3" file, rename this to "atmos.ac3"

Now launch justdan96's version of TsMuxerGUI then add your movie file: "gemini_dv.hevc" and audio file: "atmos.ac3".
So I have tried this method for Gemini man and Sonic 2019 and both of them freeze every 2 seconds during playback. My tv is lg oled c9. The files were stored in an external hdd connected to the tv via usb. All other souble layered dolby vision mp4 files created using the original method in the first post of this thread play fine. Maybe my tv can't properly play .ts file/single layered dolby vision file?
Well, i'm not sure, but it sounds like what my E6 did when i accidentially fed it a .mp4 with a Atmos thd+ac3 file renamed to .ac3 waaaay back.... My suggestion: Try with a clean ac3 file and see if that helps, and then figure out how to do a proper thd+ac3 track afterwards (or put both in and switch between them and see if one or both works)
I don't think the problem lies with the audio track because when I tried excluding the audio track the file still stuttered during playback.
Domo0826
Posts: 2
Joined: Wed May 20, 2020 1:07 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Domo0826 »

Trujax wrote:
Mon May 11, 2020 9:31 am
I have compiled a TsMuxer that forces dvhe.05.06 profile. It works nice where 08.06 played choppy in my Lg. You can find it here http://katfile.com/1uvd80v1b0zd/tsMuxer ... ).zip.html
First of all, hello everyone. Recently I bought a LG C9 and I've been reading this thread for hours. I managed to get a MEL Dolby Vision film working well in my LG internal player with eac3to, yusesope 0.0.4 and then newest nightly tsmuxer. But when I do the same thing with a FEL film (Top Gun 4K Remastered) it stutters terribly (while triggering DV). So I tried your tsMuxeR that forces profile 05.06. and it plays without stutter, but the enhancement layer is completely off. It's treated as an 8K one I think, and I only see the top left cropped part of it, on top of the base layer stream. Any idea how to fix this?
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

If your only playback device is an LG internal player, stick with the mp4 method mentioned in the first few pages of this thread. TSMuxer is a means to get lossless Atmos+DV into a container; you’re gaining nothing from this if your player is the TV. Stuttering with certain titles is a known issue when played back on the LG player.
Domo0826
Posts: 2
Joined: Wed May 20, 2020 1:07 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Domo0826 »

shawnc22 wrote:
Wed May 20, 2020 1:58 pm
If your only playback device is an LG internal player, stick with the mp4 method mentioned in the first few pages of this thread. TSMuxer is a means to get lossless Atmos+DV into a container; you’re gaining nothing from this if your player is the TV. Stuttering with certain titles is a known issue when played back on the LG player.
I want multiple audio tracks and I have no clue how to do it with mp4. I'd love to know, if anyone could help me. Also I prefer DTS-HD MA over a Core 640 AC3 (for English). Also when I tried the mp4muxer (might be an old one, but it worked with a MEL flm before) method, the file wouldn't play at all :( .
What I did:

- eac3to demux BL and EL and ac3
- mp4muxer mux those 3 together with dv profile 7

Has there been any recent updates to this method? It's the only one I know that worked for me. I read about some mp4box method but that destroyed the DV metadata, somehow.
Also, how exactly do I add more audio tracks? Because when I tried Birds of Prey (MEL) with one track, played amazingly. When I tried adding another track, it wouldn't play at all.

Thanks for any advice on this.
Trujax
Posts: 8
Joined: Fri May 01, 2020 9:44 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Trujax »

Domo0826 wrote:
Wed May 20, 2020 1:18 pm
Trujax wrote:
Mon May 11, 2020 9:31 am
I have compiled a TsMuxer that forces dvhe.05.06 profile. It works nice where 08.06 played choppy in my Lg. You can find it here http://katfile.com/1uvd80v1b0zd/tsMuxer ... ).zip.html
First of all, hello everyone. Recently I bought a LG C9 and I've been reading this thread for hours. I managed to get a MEL Dolby Vision film working well in my LG internal player with eac3to, yusesope 0.0.4 and then newest nightly tsmuxer. But when I do the same thing with a FEL film (Top Gun 4K Remastered) it stutters terribly (while triggering DV). So I tried your tsMuxeR that forces profile 05.06. and it plays without stutter, but the enhancement layer is completely off. It's treated as an 8K one I think, and I only see the top left cropped part of it, on top of the base layer stream. Any idea how to fix this?
Sorry, my modification only forces profile 05.06, the processing is the one programmed by tsmuxer. Changing that is beyond my understanding.
deadchip12
Posts: 285
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

Domo0826 wrote:
Wed May 20, 2020 1:18 pm
Trujax wrote:
Mon May 11, 2020 9:31 am
I have compiled a TsMuxer that forces dvhe.05.06 profile. It works nice where 08.06 played choppy in my Lg. You can find it here http://katfile.com/1uvd80v1b0zd/tsMuxer ... ).zip.html
First of all, hello everyone. Recently I bought a LG C9 and I've been reading this thread for hours. I managed to get a MEL Dolby Vision film working well in my LG internal player with eac3to, yusesope 0.0.4 and then newest nightly tsmuxer. But when I do the same thing with a FEL film (Top Gun 4K Remastered) it stutters terribly (while triggering DV). So I tried your tsMuxeR that forces profile 05.06. and it plays without stutter, but the enhancement layer is completely off. It's treated as an 8K one I think, and I only see the top left cropped part of it, on top of the base layer stream. Any idea how to fix this?
Right. I just tried this version of tsmuxer and the picture is broken. It does play in dolby vision without stutter though.
tr000
Posts: 71
Joined: Thu Jul 18, 2019 11:03 am

Re: Dolby Vision now possible through MP4 Mux.

Post by tr000 »

Anyone try out "The Invisible Man" in DV? It's got a nice juicy FEL by the looks of it.
Arbigator
Posts: 32
Joined: Fri Feb 28, 2020 9:16 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Arbigator »

What's the proper way to get TrueHD Atmos in to a DV movie? Every movie I've tried has been unplayable when playing back the Atmos track, but if I switch the DTS-HD it plays back perfectly. I've been using tsMuxer to demux the audio and the two video layers, then using yusesope's tool to create a profile 5 file, then muxing the audio and video tracks together. Do I need to do something special if I want Atmos?

All of these movies playback without issue in their original m2ts, with Atmos audio. I feel like tsMuxer is doing something to the Atmos track when muxing.

Using a 2019 Shield TV.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

Arbigator wrote:
Wed May 20, 2020 9:26 pm
What's the proper way to get TrueHD Atmos in to a DV movie? Every movie I've tried has been unplayable when playing back the Atmos track, but if I switch the DTS-HD it plays back perfectly. I've been using tsMuxer to demux the audio and the two video layers, then using yusesope's tool to create a profile 5 file, then muxing the audio and video tracks together. Do I need to do something special if I want Atmos?

All of these movies playback without issue in their original m2ts, with Atmos audio. I feel like tsMuxer is doing something to the Atmos track when muxing.

Using a 2019 Shield TV.

Thanks
Why are you creating profile 5 videos if you have the shield? But regardless, that sounds like you're doing all the right steps, especially if it's working with DTS. If the mediainfo also looks good, then it's likely an issue with your setup. What is your shield plugged into? It has to be a device that's capable of decoding a truehd atmos signal.
Arbigator
Posts: 32
Joined: Fri Feb 28, 2020 9:16 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Arbigator »

shawnc22 wrote:
Wed May 20, 2020 10:13 pm
Arbigator wrote:
Wed May 20, 2020 9:26 pm
What's the proper way to get TrueHD Atmos in to a DV movie? Every movie I've tried has been unplayable when playing back the Atmos track, but if I switch the DTS-HD it plays back perfectly. I've been using tsMuxer to demux the audio and the two video layers, then using yusesope's tool to create a profile 5 file, then muxing the audio and video tracks together. Do I need to do something special if I want Atmos?

All of these movies playback without issue in their original m2ts, with Atmos audio. I feel like tsMuxer is doing something to the Atmos track when muxing.

Using a 2019 Shield TV.

Thanks
Why are you creating profile 5 videos if you have the shield? But regardless, that sounds like you're doing all the right steps, especially if it's working with DTS. If the mediainfo also looks good, then it's likely an issue with your setup. What is your shield plugged into? It has to be a device that's capable of decoding a truehd atmos signal.
I haven't had any luck with profile 4 videos playing for whatever reason, though I haven't tried it in a while. Maybe it's related to this Atmos issue I'm having... I have the shield plugged in to a Denon x3600, normal mkv and m2ts files playback Atmos correctly, I really don't get why it's not working with these remuxed files.

Here's the audio section of mediainfo for Ready Player One which does not playback properly

Code: Select all

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3 MLP FBA 16-ch
Format/Info                              : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : 131
Duration                                 : 2 h 19 min
Bit rate mode                            : Variable
Bit rate                                 : 448 kb/s
Maximum bit rate                         : 5 004 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 448 MiB (1%)
Service kind                             : Complete Main
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

Arbigator wrote:
Thu May 21, 2020 12:31 am
shawnc22 wrote:
Wed May 20, 2020 10:13 pm
Arbigator wrote:
Wed May 20, 2020 9:26 pm
What's the proper way to get TrueHD Atmos in to a DV movie? Every movie I've tried has been unplayable when playing back the Atmos track, but if I switch the DTS-HD it plays back perfectly. I've been using tsMuxer to demux the audio and the two video layers, then using yusesope's tool to create a profile 5 file, then muxing the audio and video tracks together. Do I need to do something special if I want Atmos?

All of these movies playback without issue in their original m2ts, with Atmos audio. I feel like tsMuxer is doing something to the Atmos track when muxing.

Using a 2019 Shield TV.

Thanks
Why are you creating profile 5 videos if you have the shield? But regardless, that sounds like you're doing all the right steps, especially if it's working with DTS. If the mediainfo also looks good, then it's likely an issue with your setup. What is your shield plugged into? It has to be a device that's capable of decoding a truehd atmos signal.
I haven't had any luck with profile 4 videos playing for whatever reason, though I haven't tried it in a while. Maybe it's related to this Atmos issue I'm having... I have the shield plugged in to a Denon x3600, normal mkv and m2ts files playback Atmos correctly, I really don't get why it's not working with these remuxed files.

Here's the audio section of mediainfo for Ready Player One which does not playback properly

Code: Select all

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3 MLP FBA 16-ch
Format/Info                              : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : 131
Duration                                 : 2 h 19 min
Bit rate mode                            : Variable
Bit rate                                 : 448 kb/s
Maximum bit rate                         : 5 004 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 448 MiB (1%)
Service kind                             : Complete Main
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
That does look good, and my shield is also fed into an x3600. Please give this demo file a try:

https://mega.nz/file/YSxhkSLK#fkfy54tYV ... xIOBZLyGR4

If it works, then something is off in your remux process. If not, then it's something with the setup.
Arbigator
Posts: 32
Joined: Fri Feb 28, 2020 9:16 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Arbigator »

shawnc22 wrote:
Thu May 21, 2020 12:36 am
Arbigator wrote:
Thu May 21, 2020 12:31 am
shawnc22 wrote:
Wed May 20, 2020 10:13 pm

Why are you creating profile 5 videos if you have the shield? But regardless, that sounds like you're doing all the right steps, especially if it's working with DTS. If the mediainfo also looks good, then it's likely an issue with your setup. What is your shield plugged into? It has to be a device that's capable of decoding a truehd atmos signal.
I haven't had any luck with profile 4 videos playing for whatever reason, though I haven't tried it in a while. Maybe it's related to this Atmos issue I'm having... I have the shield plugged in to a Denon x3600, normal mkv and m2ts files playback Atmos correctly, I really don't get why it's not working with these remuxed files.

Here's the audio section of mediainfo for Ready Player One which does not playback properly

Code: Select all

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3 MLP FBA 16-ch
Format/Info                              : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : 131
Duration                                 : 2 h 19 min
Bit rate mode                            : Variable
Bit rate                                 : 448 kb/s
Maximum bit rate                         : 5 004 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 448 MiB (1%)
Service kind                             : Complete Main
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
That does look good, and my shield is also fed into an x3600. Please give this demo file a try:

https://mega.nz/file/YSxhkSLK#fkfy54tYV ... xIOBZLyGR4

If it works, then something is off in your remux process. If not, then it's something with the setup.
Well that file plays perfectly, and it's even profile 4. Thanks for sharing that. Can you verify my process is correct?

1. Load original m2ts in to tsMuxer, demux video and audio streams. (I've also tried demuxing only the video, then loading the new file back in.)
2. Run the video files through yusesope's tool
3. Load newly created file in tsMuxer and mux with original audio stream to .ts format.

It seems like such a simple process that I'm not sure how I could screw it up...

Can you share the version of tsMuxer you're using? I've tried a few different ones, all with the same result.

Thanks for your help!
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

That process looks fine except I never demux the audio file to begin with, just the video tracks.

https://drive.google.com/file/d/1q5v4-J ... gPqCD/view

That's the version of tsmuxer that most have been using. For the last step, just load in yusecope's resulting HEVC file and then the original mpls file, uncheck the two original hevc tracks, and mux. If this doesnt work, you might want to also try the newer mkv method.
daddy
Posts: 77
Joined: Sat Jul 06, 2019 8:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by daddy »

VictorLemon wrote:
Tue May 19, 2020 1:08 pm
Hello, a question to see who can help me, when the movie is in several m2ts, how can I extract the BL and EL files to mount with the tool?
a greeting
to demux multi m2ts

Code: Select all

ffmpeg -f concat -safe 0 -i m2ts_list.txt -map 0:0 -c copy BL.hevc -map 0:1 -c copy EL.hevc -map 0:7 -c copy audio.mp4
with m2ts_list.txt containing the list of m2ts files
file '00075.M2TS'
file '00056.M2TS'
file '00057.M2TS'
file '00076.M2TS'
file '00060.M2TS'
file '00077.M2TS'
file '00062.M2TS'
file '00078.M2TS'
file '00064.M2TS'
file '00079.M2TS'
file '00066.M2TS'
file '00080.M2TS'
file '00068.M2TS'
file '00081.M2TS'
file '00070.M2TS'
file '00082.M2TS'
file '00072.M2TS'
file '00083.M2TS'
file '00074.M2TS'
file '00120.M2TS'
file '00119.M2TS'
Post Reply