Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

RESET_9999 wrote: Sat Aug 10, 2019 7:54 pm
MastaG wrote: Sat Aug 10, 2019 5:05 pm Ah thanks again grencola for summing everything up.
So I guess for now we can use DVDFab to merge both DV video layers together into a mp4 container, then use mp4box to add the lpcm audio converted from truehd which is basically still lossless but without the atmos metadata.

Now I only need to get myself a player which can output DV and lpcm 7.1 over hdmi so I can actually enjoy it including the lossless audio.
Or wait for the C9 to drop its price some more and use e-arc.
The sony X700 works just fine and it's cinavia free via USB. That's what I'm using.

Image
or, if you have an AVR that does dolby vision, an ATV 4K running mrmc beta or an Amazon Fire TV 4K Stick running emby beta will also work.

EDIT: an avr AND a paid dvdfab license lol. x700 does dual layer dv mp4 whereas other devices need single layer. so price is sort of a wash if you were thinking of going the fire tv stick way to save money.
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

Well yeah but I'm doing it for the audio only.

I have a lg c8 oled and a denon x3300w avr.
The denon avr supports atmos audio and it can do DV passthrough to my tv.

I'm currently playing my dv+lpcm muxed movies with xplay (plex) so I only get ac3 to my avr using arc.

So using a player (sony x700 or firestick) I'd get the lossless audio, but I wonder how much difference it would make.
E.g. if I'm really able to experience better audio quality.

Also the player must support plex or emby since I'm not going to mess with usb sticks or network mountpoints.
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

Grencola wrote: Sat Aug 10, 2019 1:44 pmyusesope can manipulate them further to push lpcm 7.1 (and dts-hd perhaps?), but atmos seems like a no go.
Sad but true. The problem is represented by the mp4 container: until its specs are reviewed or until Dolby reveals the algorithm needed for muxing BL, EL, RPU, it will be difficult to play a DV track together with an TrueHD/ATMOS one.

In the meantime, I'm building my own transmission protocol: after TCP/IP there will be DVA/PP (Dolby Vision and ATMOS for Poor People). :lol: :lol: :lol: :lol:
There is already the logo :lol: :lol: :lol: :lol: :lol: !
Image

My PC (like everyone else's PC) can easily send a TrueHD/ATMOS signal to my AVR.
If only there was a way to let my TV communicate with my PC!

So I got the idea of ​​using the TV headphone output to control my PC.
In fact, I created a synchronization wave (an audio track) that can be muxed using mp4muxer or mp4box and which acts as a sort of metronome.
The PC is thus able to understand at what point the TV player has arrived and to synchronize the TrueHD/ATMOS track (to be sent to the AVR)
Image

All this in theory!
Right now I'm experimenting with the PC: using "Stereo Mix" (more information HERE) I can simulate an input device. In this situation (without noise on the transmission line and without appreciable latency) my program, in the worst case, is out of sync of about 30ms (0.030sec). I think it's an encouraging result. Let's see how it will behave when I use a real cable (right now I have neither a 4K DV TV nor an AVR available).

If anyone is interested and wants to know more or wants to test or wants to help me improve the code (written in Python), let me know!
mrhollywood
Posts: 16
Joined: Thu May 02, 2019 7:01 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by mrhollywood »

yusesope wrote: Tue Aug 13, 2019 3:20 pm
Grencola wrote: Sat Aug 10, 2019 1:44 pmyusesope can manipulate them further to push lpcm 7.1 (and dts-hd perhaps?), but atmos seems like a no go.
Sad but true. The problem is represented by the mp4 container: until its specs are reviewed or until Dolby reveals the algorithm needed for muxing BL, EL, RPU, it will be difficult to play a DV track together with an TrueHD/ATMOS one.

In the meantime, I'm building my own transmission protocol: after TCP/IP there will be DVA/PP (Dolby Vision and ATMOS for Poor People). :lol: :lol: :lol: :lol:
There is already the logo :lol: :lol: :lol: :lol: :lol: !
Image

My PC (like everyone else's PC) can easily send a TrueHD/ATMOS signal to my AVR.
If only there was a way to let my TV communicate with my PC!

So I got the idea of ​​using the TV headphone output to control my PC.
In fact, I created a synchronization wave (an audio track) that can be muxed using mp4muxer or mp4box and which acts as a sort of metronome.
The PC is thus able to understand at what point the TV player has arrived and to synchronize the TrueHD/ATMOS track (to be sent to the AVR)
Image

All this in theory!
Right now I'm experimenting with the PC: using "Stereo Mix" (more information HERE) I can simulate an input device. In this situation (without noise on the transmission line and without appreciable latency) my program, in the worst case, is out of sync of about 30ms (0.030sec). I think it's an encouraging result. Let's see how it will behave when I use a real cable (right now I have neither a 4K DV TV nor an AVR available).

If anyone is interested and wants to know more or wants to test or wants to help me improve the code (written in Python), let me know!
This would be pretty neat if it worked out.
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

I reported the issue where plex for lg webos transcodes the hd-audio stream on their forums.
https://forums.plex.tv/t/please-dont-in ... dio/445944

I hope they'll fix it.
mrhollywood
Posts: 16
Joined: Thu May 02, 2019 7:01 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by mrhollywood »

MastaG wrote: Wed Aug 14, 2019 4:29 pm I reported the issue where plex for lg webos transcodes the hd-audio stream on their forums.
https://forums.plex.tv/t/please-dont-in ... dio/445944

I hope they'll fix it.
No LG TVs support TrueHD, and it seems like the TV itself downsamples DTS-HD to DTS
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

mrhollywood wrote: Thu Aug 15, 2019 12:50 pm
MastaG wrote: Wed Aug 14, 2019 4:29 pm I reported the issue where plex for lg webos transcodes the hd-audio stream on their forums.
https://forums.plex.tv/t/please-dont-in ... dio/445944

I hope they'll fix it.
No LG TVs support TrueHD, and it seems like the TV itself downsamples DTS-HD to DTS
Yes thats why the LG plex app shouldn't tell the plex server to start transcoding the audio.
Because when transcoding the audio the DV metadata gets lost and it plays only the hdr10 base layer.
redscott
Posts: 3
Joined: Wed Aug 21, 2019 6:37 am

Re: Dolby Vision now possible through MP4 Mux.

Post by redscott »

Spent the last week or so making my way through the thread trying various things, and wanted to report another victory.

I have an LG C8, a Yamaha RX-V685, and a 5.1 Surround set up.

Using MakeMKV to do disk backup, ffmpeg to do demuxing, and mp4muxer to add ac3 or eac3 audio, I can play Dolby Vision UHD files from my plex server to my WebOS Plex client in the C8.

And it works in an Apple only environment! Where a lot of these programs (BDInfo, DVDFab) don't work great.

The Plex client in the Apple TV 4K reverts to HDR10, still need to figure out what's going on there.
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

redscott wrote: Sat Aug 24, 2019 8:28 am Spent the last week or so making my way through the thread trying various things, and wanted to report another victory.

I have an LG C8, a Yamaha RX-V685, and a 5.1 Surround set up.

Using MakeMKV to do disk backup, ffmpeg to do demuxing, and mp4muxer to add ac3 or eac3 audio, I can play Dolby Vision UHD files from my plex server to my WebOS Plex client in the C8.

And it works in an Apple only environment! Where a lot of these programs (BDInfo, DVDFab) don't work great.

The Plex client in the Apple TV 4K reverts to HDR10, still need to figure out what's going on there.
hdr10 isn't really 'getting it working' ;) your TV simply supports DV Profile 7, whereas the ATV 4K does not; it only supports single layer dvhe.05.06. so to get DV working with your rips you need to use dvdfab to make it one layer, then play it in the latest MrMC beta.
redscott
Posts: 3
Joined: Wed Aug 21, 2019 6:37 am

Re: Dolby Vision now possible through MP4 Mux.

Post by redscott »

Grencola wrote: Sat Aug 24, 2019 3:34 pm
redscott wrote: Sat Aug 24, 2019 8:28 am Spent the last week or so making my way through the thread trying various things, and wanted to report another victory.

I have an LG C8, a Yamaha RX-V685, and a 5.1 Surround set up.

Using MakeMKV to do disk backup, ffmpeg to do demuxing, and mp4muxer to add ac3 or eac3 audio, I can play Dolby Vision UHD files from my plex server to my WebOS Plex client in the C8.

And it works in an Apple only environment! Where a lot of these programs (BDInfo, DVDFab) don't work great.

The Plex client in the Apple TV 4K reverts to HDR10, still need to figure out what's going on there.
hdr10 isn't really 'getting it working' ;) your TV simply supports DV Profile 7, whereas the ATV 4K does not; it only supports single layer dvhe.05.06. so to get DV working with your rips you need to use dvdfab to make it one layer, then play it in the latest MrMC beta.
I wasn't implying hdr10 was "working". As I said:
redscott wrote: Sat Aug 24, 2019 8:28 am I can play Dolby Vision UHD files from my plex server to my WebOS Plex client in the C8
It works as is when played through the WebOS Plex client in my LG C8. The Dolby vision logo shows up and it direct plays the file and the eac3 audio.

Apple TV 4k does *not* work, resorting to HDR10, which obviously MakeMKV can do on its own fine. Frankly none of the windows-centric programs (BDInfo, DVDFab) have worked reliably for me on Mac, so I'll play through WebOS for the time being until there's a way to do this through MakeMKV, ffmpeg, mp4box or similar.
likeadoc
Posts: 3
Joined: Mon Aug 05, 2019 1:39 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by likeadoc »

Hey yusesope
my ffmpeg bug (https://trac.ffmpeg.org/ticket/8051) regarding implementation of a truehd substream just got closed with this commit http://git.videolan.org/?p=ffmpeg.git;a ... 7f4973d619 - TRUE HD ist now a supported format in the mp4 container!
yusesope wrote: Tue Aug 13, 2019 3:20 pm
Grencola wrote: Sat Aug 10, 2019 1:44 pmyusesope can manipulate them further to push lpcm 7.1 (and dts-hd perhaps?), but atmos seems like a no go.
Sad but true. The problem is represented by the mp4 container: until its specs are reviewed or until Dolby reveals the algorithm needed for muxing BL, EL, RPU, it will be difficult to play a DV track together with an TrueHD/ATMOS one.

In the meantime, I'm building my own transmission protocol: after TCP/IP there will be DVA/PP (Dolby Vision and ATMOS for Poor People). :lol: :lol: :lol: :lol:
There is already the logo :lol: :lol: :lol: :lol: :lol: !
Image

My PC (like everyone else's PC) can easily send a TrueHD/ATMOS signal to my AVR.
If only there was a way to let my TV communicate with my PC!

So I got the idea of ​​using the TV headphone output to control my PC.
In fact, I created a synchronization wave (an audio track) that can be muxed using mp4muxer or mp4box and which acts as a sort of metronome.
The PC is thus able to understand at what point the TV player has arrived and to synchronize the TrueHD/ATMOS track (to be sent to the AVR)
Image

All this in theory!
Right now I'm experimenting with the PC: using "Stereo Mix" (more information HERE) I can simulate an input device. In this situation (without noise on the transmission line and without appreciable latency) my program, in the worst case, is out of sync of about 30ms (0.030sec). I think it's an encouraging result. Let's see how it will behave when I use a real cable (right now I have neither a 4K DV TV nor an AVR available).

If anyone is interested and wants to know more or wants to test or wants to help me improve the code (written in Python), let me know!
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

redscott wrote: Sat Aug 24, 2019 5:07 pm
Grencola wrote: Sat Aug 24, 2019 3:34 pm
redscott wrote: Sat Aug 24, 2019 8:28 am Spent the last week or so making my way through the thread trying various things, and wanted to report another victory.

I have an LG C8, a Yamaha RX-V685, and a 5.1 Surround set up.

Using MakeMKV to do disk backup, ffmpeg to do demuxing, and mp4muxer to add ac3 or eac3 audio, I can play Dolby Vision UHD files from my plex server to my WebOS Plex client in the C8.

And it works in an Apple only environment! Where a lot of these programs (BDInfo, DVDFab) don't work great.

The Plex client in the Apple TV 4K reverts to HDR10, still need to figure out what's going on there.
hdr10 isn't really 'getting it working' ;) your TV simply supports DV Profile 7, whereas the ATV 4K does not; it only supports single layer dvhe.05.06. so to get DV working with your rips you need to use dvdfab to make it one layer, then play it in the latest MrMC beta.
I wasn't implying hdr10 was "working". As I said:
redscott wrote: Sat Aug 24, 2019 8:28 am I can play Dolby Vision UHD files from my plex server to my WebOS Plex client in the C8
It works as is when played through the WebOS Plex client in my LG C8. The Dolby vision logo shows up and it direct plays the file and the eac3 audio.

Apple TV 4k does *not* work, resorting to HDR10, which obviously MakeMKV can do on its own fine. Frankly none of the windows-centric programs (BDInfo, DVDFab) have worked reliably for me on Mac, so I'll play through WebOS for the time being until there's a way to do this through MakeMKV, ffmpeg, mp4box or similar.
heh, that's exactly why I bolded your words 'it works on Apple' in 'hdr10'. so I said 'working in hdr10 doesn't mean it's working ;)' then you say 'no no it does not work on Apple TV, I was implying it worked on webos plex.' but you never said that :roll: anyway no matter lol don't worry it. it's in DV on your TV plex but not on ATV 4K, just like everyone else with an oled. got it :) if you try like I wrote above with MrMC, it will then work on both for you. that's all.
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

likeadoc wrote: Sun Aug 25, 2019 4:07 pm Hey yusesope
my ffmpeg bug (https://trac.ffmpeg.org/ticket/8051) regarding implementation of a truehd substream just got closed with this commit http://git.videolan.org/?p=ffmpeg.git;a ... 7f4973d619 - TRUE HD ist now a supported format in the mp4 container!
this is great news. let's hope yusesope can do his magic.
Last edited by RESET_9999 on Mon Aug 26, 2019 9:17 pm, edited 1 time in total.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
MastaG
Posts: 98
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

Lets compile!!!!
yusesope
Posts: 221
Joined: Sun Jul 28, 2019 3:34 am

Re: Dolby Vision now possible through MP4 Mux.

Post by yusesope »

likeadoc wrote: Sun Aug 25, 2019 4:07 pm Hey yusesope
my ffmpeg bug (https://trac.ffmpeg.org/ticket/8051) regarding implementation of a truehd substream just got closed with this commit http://git.videolan.org/?p=ffmpeg.git;a ... 7f4973d619 - TRUE HD ist now a supported format in the mp4 container!
Thanks for the update!

I did a test using the "Amaze ATMOS" demo and compiling FFmpeg from the Git repository (master branch).
The following command allows you to mux the ATMOS track inside the mp4 container

Code: Select all

ffmpeg.exe -i amaze.mkv -c copy -strict -2 amaze.mp4
There seems to be some issue with the output (take a look at the mediainfo).
I could not play the audio of the file (neither on the PC using the latest LAV Filters nor on the TV).

ORIGINAL FILE (HERE)

Code: Select all

Nome completo                           : amaze.mkv
Formato                                 : Matroska
Versione formato                        : Version 4 / Version 2
Dimensione                              : 140MiB
Durata                                  : 1 min 3s
Modo bitrate generale                   : Variabile
Bitrate totale                          : 18,4 Mb/s
Data codifica                           : UTC 2015-08-29 18:05:24
Creato con                              : mkvmerge v8.3.0 ('Over the Horizon') 64bit
Compressore                             : libebml v1.3.1 + libmatroska v1.4.2

Video
ID                                      : 1
Formato                                 : AVC
Formato/Informazioni                    : Advanced Video Codec
Profilo formato                         : High@L4.1
Impostazioni formato, CABAC             : Si
Impostazioni formato, ReFrames          : 4 frame
ID codec                                : V_MPEG4/ISO/AVC
Durata                                  : 1 min 3s
Modalità bitrate                        : Variabile
Bitrate                                 : 11,7 Mb/s
Bitrate massimo                         : 40,0 Mb/s
Larghezza                               : 1.920 pixel
Altezza                                 : 1.080 pixel
Rapporto aspetto visualizzazione        : 16:9
Modalità frame rate                     : Costante
Frame rate                              : 24,000 FPS
Spazio colore                           : YUV
Croma subsampling                       : 4:2:0
Profondità bit                          : 8 bit
Tipo scansione                          : Progressivo
Bit/(pixel*frame)                       : 0.235
Dimensione della traccia                : 88,4MiB (63%)
Lingua                                  : Inglese
Default                                 : Si
Forced                                  : No

Audio
ID                                      : 2
Formato                                 : TrueHD
Profilo formato                         : TrueHD+Atmos / TrueHD
ID codec                                : A_TRUEHD
Durata                                  : 1 min 3s
Modalità bitrate                        : Variabile
Bitrate                                 : 6.694 kb/s
Bitrate massimo                         : 9.096 kb/s
Canali                                  : Object Based / 8 canali
Posizione canali                        : Object Based / Front: L C R, Side: L R, Back: L R, LFE
Frequenza campionamento                 :  / 48,0 kHz
Frame rate                              : 1.200,000 FPS (40 spf)
Modo compressione                       : Senza perdita
Dimensione della traccia                : 50,7MiB (36%)
Default                                 : Si
Forced                                  : No
MP4 MUX (HERE)

Code: Select all

Nome completo                           : amaze.mp4
Formato                                 : MPEG-4
Profilo formato                         : Base Media
ID codec                                : isom (isom/iso2/avc1/mp41)
Dimensione                              : 139MiB
Durata                                  : 1 min 3s
Modo bitrate generale                   : Variabile
Bitrate totale                          : 18,4 Mb/s
Creato con                              : Lavf58.31.104

Video
ID                                      : 1
Formato                                 : AVC
Formato/Informazioni                    : Advanced Video Codec
Profilo formato                         : High@L4.1
Impostazioni formato, CABAC             : Si
Impostazioni formato, ReFrames          : 4 frame
ID codec                                : avc1
ID codec/Informazioni                   : Advanced Video Coding
Durata                                  : 1 min 3s
Modalità bitrate                        : Variabile
Bitrate                                 : 11,7 Mb/s
Bitrate massimo                         : 40,0 Mb/s
Larghezza                               : 1.920 pixel
Altezza                                 : 1.080 pixel
Rapporto aspetto visualizzazione        : 16:9
Modalità frame rate                     : Variabile
Frame rate                              : 24,000 FPS
Frame rate minimo                       : 23,634 FPS
Frame rate massimo                      : 24,390 FPS
Spazio colore                           : YUV
Croma subsampling                       : 4:2:0
Profondità bit                          : 8 bit
Tipo scansione                          : Progressivo
Bit/(pixel*frame)                       : 0.235
Dimensione della traccia                : 88,4MiB (63%)
Lingua                                  : Inglese

Audio
ID                                      : 2
Formato                                 : mlpa
ID codec                                : mlpa
Durata                                  : 1 min 3s
Bitrate                                 : 6.694 kb/s
Canali                                  : 2 canali
Frequenza campionamento                 : 0 Hz
Profondità bit                          : 16 bit
Dimensione della traccia                : 50,7MiB (36%)
Default                                 : Si
AlternateGroup/String                   : 1

MP4Box recognizes the mlpa track and allows the mux inside the mp4 container but, as I said before, I can't play audio.
Post Reply