Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

Hello friends!
Who wants some TrueHD/ATMOS inside an mp4? :lol: :lol: :lol: :lol:
Image

I don't have an AVR available right now so I don't know if ATMOS metadata has been preserved.
By simulating an audio output on Windows I can state that the TrueHD stream has been correctly integrated into the mp4 container.
Image

If someone wants to do some tests, I attach a sample file (HERE).
To play the file and allow the Bitstream passthrough you have to use the LAV Filters (I used the version 0.74.1-29 Nightly) and MPC-BE (v 1.5.3).
Follow the tutorial you find HERE.

For those who ask: "Why does mediainfo show only two channels?"
Image


Greetings to all and see you soon.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

yusesope wrote: Fri Nov 01, 2019 5:48 pm Hello friends!
Who wants some TrueHD/ATMOS inside an mp4? :lol: :lol: :lol: :lol:


I don't have an AVR available right now so I don't know if ATMOS metadata has been preserved.
By simulating an audio output on Windows I can state that the TrueHD stream has been correctly integrated into the mp4 container.


If someone wants to do some tests, I attach a sample file (HERE).
To play the file and allow the Bitstream passthrough you have to use the LAV Filters (I used the version 0.74.1-29 Nightly) and MPC-BE (v 1.5.3).
Follow the tutorial you find HERE.

For those who ask: "Why does mediainfo show only two channels?"



Greetings to all and see you soon.
did you use the latest ffmpeg to create the mp4 from atmos?
Because I also tried that(i try every time there is a new version) and it wouldn't bitstream atmos to my AVR but it played correctly in mpc(showing 7.1channels) when lavfilter bitstream is unchecked.
and unlike an mp4/DTS-X, my Oled tv was unable to play the audio.

I'm still going to try your sample. thanks!
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

RESET_9999 wrote: Fri Nov 01, 2019 7:14 pmdid you use the latest ffmpeg to create the mp4 from atmos?
Yep!
RESET_9999 wrote: Fri Nov 01, 2019 7:14 pmBecause I also tried that(i try every time there is a new version) and it wouldn't bitstream atmos to my AVR but it played correctly in mpc(showing 7.1channels) when lavfilter bitstream is unchecked.
and unlike an mp4/DTS-X, my Oled tv was unable to play the audio.
The important thing is that the LAV Audio Decoder is able to process the TrueHD stream.

As you say, mpc recognizes the stream: this is potentially a fantastic news for those who own or who will buy the new Shield TV.
The PLEX Client is in fact based on the ExoPlayer library which can be associated with FFmpeg (compiled for Android).
RESET_9999 wrote: Fri Nov 01, 2019 7:14 pm I'm still going to try your sample. thanks!
Let me Know.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

lifeolife wrote: Sat Nov 02, 2019 3:55 am Guys,
I have used the below command to merge/rip the video tracks from 4K Disk m2ts file. But after ripping I found there are still two tracks are there. Any help?
In my LG 49UH75 TV, other DV demo files are playing correctly. When I try to play this kind of file then entire screen is greenish.
Command (I did not include audio track intentionally) - "G:\test\dlb_mp4base-master\bin\mp4muxer_64bits.exe --dv-profile 7 --input-file G:\test\00234.track_4113.hevc --input-file G:\tesyyy\00234.track_4117.hevc --output-file H:\dv_video.mp4"

Thanks...
sounds like the same issue the LG C6 has with certain movies (4000nits P3 movies i think).
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
superfans124
Posts: 33
Joined: Fri Oct 04, 2019 3:26 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by superfans124 »

yusesope wrote: Fri Nov 01, 2019 5:48 pm Hello friends!
Who wants some TrueHD/ATMOS inside an mp4? :lol: :lol: :lol: :lol:
yusescope at work once again! appreciate all your trailblazing works and future developments.
powdeau
Posts: 57
Joined: Sat Jan 12, 2019 1:01 am

Re: Dolby Vision now possible through MP4 Mux.

Post by powdeau »

yusesope wrote: Fri Nov 01, 2019 5:48 pm Hello friends!
Who wants some TrueHD/ATMOS inside an mp4? :lol: :lol: :lol: :lol:

I don't have an AVR available right now so I don't know if ATMOS metadata has been preserved.
By simulating an audio output on Windows I can state that the TrueHD stream has been correctly integrated into the mp4 container.

If someone wants to do some tests, I attach a sample file (HERE).
To play the file and allow the Bitstream passthrough you have to use the LAV Filters (I used the version 0.74.1-29 Nightly) and MPC-BE (v 1.5.3).
Follow the tutorial you find HERE.

For those who ask: "Why does mediainfo show only two channels?"


Greetings to all and see you soon.
I have tried your sample on X700 and unfortunately the audio does not work :/
FusionNeo
Posts: 21
Joined: Sat Nov 02, 2019 1:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by FusionNeo »

I have the new Shield 2019 Pro, I will test it when I’m home. If this works you have no idea how happy I’ll be!
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

powdeau wrote: Sat Nov 02, 2019 4:19 pm I have tried your sample on X700 and unfortunately the audio does not work :/
I repeat myself:
the only way to play the file is to use a PC with MPC + LAV Filters.
To test everything:
PC --> HDMI --> AVR.
The file cannot work on any other device (TV, BD Player, Console, etc.)

At the moment I don't have an AVR available and therefore I can't say that the metadata has been stored correctly.

If the file works, then all that remains is to implement FFmpeg on a device capable of reproducing
Dolby Vision movies (ex: Shield TV 2019)
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

yusesope wrote: Fri Nov 01, 2019 7:42 pm
Let me Know.
it works, AVR show atmos with my htpc.

Oled cant play the file at all. no video/audio

I tried again with a movie and it works with the htpc. i wonder why it didnt work when i tried a couple days ago(didnt update any software since then)
this one plays on the oled without audio (say unsupported)

Image
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
FusionNeo
Posts: 21
Joined: Sat Nov 02, 2019 1:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by FusionNeo »

Yusesope, you are the man!

Just tried the new Plex beta out on my Shield 2019 with your Dolby Vision DTS-X and DTS-HD MA and both files played back in Dolby Vision with DTS-X and DTS-HD MA audio.

The new file you just posted has proper ATMOS support too when played back on a HTPC using your tutorial. Confirmed I am getting ATMOS audio and I was able to hear sound come out of my ATMOS speakers.

That same file will NOT play back on my NVIDIA Shield vía Plex, it says my server has been disconnected, but when looking at playback info it says the audio is attempting to transcode due to the audio codec not being in a compatible container. I’m kind of a noob, so what’s left to get this file playing back properly on the SHIELD? Does Android need to support it? Do the PLEX devs need to add support?

Once this file plays back on the SHIELD, then I would assume it would be trivial to use a Dolby Vision video track in place of the video track you used in that file for full TRUEHD + Dolby Vision support, is that correct?

Thanks again for all of your hard work. Amazing stuff.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

RESET_9999 wrote: Sat Nov 02, 2019 7:58 pmit works, AVR show atmos with my htpc.
FusionNeo wrote: Sun Nov 03, 2019 1:16 amThe new file you just posted has proper ATMOS support too when played back on a HTPC using your tutorial. Confirmed I am getting ATMOS audio and I was able to hear sound come out of my ATMOS speakers.
Thank you both for your feedback.
RESET_9999 wrote: Sat Nov 02, 2019 7:58 pmI tried again with a movie and it works with the htpc. i wonder why it didnt work when i tried a couple days ago(didnt update any software since then)
it's magic!
FusionNeo wrote: Sun Nov 03, 2019 1:16 amYusesope, you are the man!
Thanks but the credit also goes to the user likeadoc (look HERE).
FusionNeo wrote: Sun Nov 03, 2019 1:16 amJust tried the new Plex beta out on my Shield 2019 with your Dolby Vision DTS-X and DTS-HD MA and both files played back in Dolby Vision with DTS-X and DTS-HD MA audio.
I assume, the Single Layer files. Excellent news anyway!
FusionNeo wrote: Sun Nov 03, 2019 1:16 amThat same file will NOT play back on my NVIDIA Shield vía Plex...Do the PLEX devs need to add support?
Correct . We must inform the developers (Plex, MrMC, etc.) about the existence of this possibility and they will implement the correct decoding (as did the developers of LAV Filters).
FusionNeo wrote: Sun Nov 03, 2019 1:16 amOnce this file plays back on the SHIELD, then I would assume it would be trivial to use a Dolby Vision video track in place of the video track you used in that file for full TRUEHD + Dolby Vision support, is that correct?
Correct again. I've just updated my "HOW TO".
1000010
Posts: 19
Joined: Sun Nov 03, 2019 12:18 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by 1000010 »

yusesope wrote: Sun Nov 03, 2019 10:24 am Correct . We must inform the developers (Plex, MrMC, etc.) about the existence of this possibility and they will implement the correct decoding (as did the developers of LAV Filters).
so Plex is ffmpeg based? this would mean it will eventually make it's way to the app anyway. I haven't found any open issue tracker, maybe we should gang up and start posting and sending emails?

I've also tried your method of creating a single layer DV with Atmos->lpcm sound, but I lost the central channel somewhere in the process and I can't hear voices anymore. trying it out on Last Jedi bluray and testing the mp4 file out in VLC, media info says: Codec: PCM S24 BE (in24), Channels: 3F2M2R/LFE. any ideas on what might have gone wrong?
bgalakazam
Posts: 34
Joined: Wed May 01, 2019 6:15 pm
Location: Italy

Re: Dolby Vision now possible through MP4 Mux.

Post by bgalakazam »

This is good news, I suppose. DV titles are growing and nowadays a lot of movies come with Atmos. I am reluctant to give up lossless audio & Atmos for DV. I can settle for DD+ & Atmos, but that doesn't look like is happening anytime soon for ripped UHDs. That just leaves the .mp4 container DV with TrueHD Atmos open. Once there is a fully working example of UHD rip playing with DV and THD Atmos I'll buy said streaming box. For now still my trusty X700 for lossless audio.

edit: there is also the Oppo Chinese clone for $400 which plays back BD ISO, but I am not trying to spend that much.
Sony X700 -> Onkyo TX-RZ830 -> LG C8
1000010
Posts: 19
Joined: Sun Nov 03, 2019 12:18 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by 1000010 »

yusesope I tried your method of converting into a single layer DV mp4 and got it working, but it results in a ~200ms delay of audio stream, which is really annoying. I converted Atmos/TrueHD stream to non-apple lpcm. is there any way of preventing this delay? or at least finding out the exact offset for every conversions, so delay can be automatically fixed with ffmpeg?

I'm also looking into alternatives for creating a single-layer DV stream out of dual-layer DV stream. is there anything available on unix, preferably open-source? otherwise I'm going to start looking at the specs/reverse engineering and tackle the thing myself. since I'm new to this, can somebody point me into good direction regarding documentation?
Fieldy
Posts: 2
Joined: Sun Nov 03, 2019 2:33 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Fieldy »

yusesope wrote: Sun Nov 03, 2019 10:24 am Correct . We must inform the developers (Plex, MrMC, etc.) about the existence of this possibility and they will implement the correct decoding (as did the developers of LAV Filters).
... hey. I only registered to be informed about this very interesting topic.
However, unfortunately it seems that nobody of the Plex developers is interested in this issue.
I just opened a feature request topic...

https://forums.plex.tv/t/dual-layer-dol ... ort/485093

No reactions :(

Sorry for bad English and regards from Germany
Post Reply