Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
SamuriHL
Posts: 2325
Joined: Mon Jun 14, 2010 5:32 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by SamuriHL »

Yea you just have to manually set it. They're talking about auto-changing and nVidia has been clear about some very big limitations around that on the new SHIELD. It will never be truly automatic according to them. I don't think the Refresh Rate app works with DV, either, although I've not tested it. (Still have to get the app set up correctly for ANY uses, actually). But set it manually before you play your content and it's fine. Not as convenient, sure, but, it'll work.
Dolbyvisonchaser
Posts: 2
Joined: Tue Dec 31, 2019 10:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Dolbyvisonchaser »

Hi guys,

Didn't know if anyone wanted me to post the python script or a detailed guide on how to do it.

What I have done after reading all the comments is added a constant beep audio file to a Dolby vision MP4.

Then from my TV headphone port I used a audio jack to my pc mic in port.

Using the lav filters guide to play the Atmos track.. basically have a script on the pc listening for the beep, as soon as you click play my script will click play on Atmos file and the audio to my eyes look in synce.

Not the quickest way, consider can get a audio jack cheap.. best way for now get true hd audio and Dolby vision
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

SamuriHL wrote:
Tue Dec 31, 2019 9:40 pm
Yea you just have to manually set it. They're talking about auto-changing and nVidia has been clear about some very big limitations around that on the new SHIELD. It will never be truly automatic according to them. I don't think the Refresh Rate app works with DV, either, although I've not tested it. (Still have to get the app set up correctly for ANY uses, actually). But set it manually before you play your content and it's fine. Not as convenient, sure, but, it'll work.
fair enough, can't force refresh rate on the ATV stick 4k but knowing the shield has a solution is a start I guess..
Last edited by Grencola on Wed Jan 01, 2020 1:15 am, edited 1 time in total.
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

Dolbyvisonchaser wrote:
Tue Dec 31, 2019 10:57 pm
Hi guys,

Didn't know if anyone wanted me to post the python script or a detailed guide on how to do it.

What I have done after reading all the comments is added a constant beep audio file to a Dolby vision MP4.

Then from my TV headphone port I used a audio jack to my pc mic in port.

Using the lav filters guide to play the Atmos track.. basically have a script on the pc listening for the beep, as soon as you click play my script will click play on Atmos file and the audio to my eyes look in synce.

Not the quickest way, consider can get a audio jack cheap.. best way for now get true hd audio and Dolby vision
I wouldn't mind taking a peek at it, sounds promising..
Last edited by Grencola on Wed Jan 01, 2020 6:37 pm, edited 1 time in total.
extranet
Posts: 61
Joined: Mon Oct 29, 2018 7:44 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by extranet »

Hi again

There are 966 posts and counting, each either building upon or modifying previous ones. Can someone PLEASE summarise what needs to be done to:
1. Encode a DV file so that it can play a DV file on the Shield 2019?
2. Play existing DoVI files on shield 2019?

Thank you.
Dolbyvisonchaser
Posts: 2
Joined: Tue Dec 31, 2019 10:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Dolbyvisonchaser »

Managed to finish coding this... please bare in mind this is just about stable :lol:
https://www.4shared.com/rar/ubS7CcxFiq/scratch.html

Please bare in mind steps get this sorted are pain in the rear end but will work quickly when set up

What I would recommend doing first is download a mp3 of this youtube video:
https://www.youtube.com/watch?v=z96MAvcAEFA

Then copy about 3 or 4 of them audio files into a folder, then follow this guide on how to concatenate them together:
(To make a 4 hour version)
https://trac.ffmpeg.org/wiki/Concatenate
Then get the run time of your blue ray movie
ffmpeg -i bluerayloaction -f null -
Then use this time with the below code: (Enter your times this is a example)
ffmpeg -i yourfile.mp3 -ss 00:00:00.000 -t 02:01:49.09 -c copy x2.mp3

Now after all that have a constant beep audio file same run time as your film

Then just combine it with your dolby vision mp4

ffmpeg -i F:\yourblueray.mp4 -i x2.mp3 -c copy F:\finishedfilm.mp4

Next need the atmos file so follow this:
https://forum.mrmc.tv/viewtopic.php?f=1 ... 425#p25425
Command:
-map 0:AUDIO_STREAM_ID -c copy -strict -2 \path\to\audio.mp4

Then set up mpc-be on your pc:
https://t3chguides.wordpress.com/2015/0 ... v-filters/

Please note can not have a HDMI plug in the arc port of the tv, change it if it is in that.

Plug a audio jack from your TV headphone port and select it from the audio section and then plug it in your pc mic port.
Before playing the film on tv, open my script and run scratch.exe from cmd, select your microphone port should be number one unless using a sound card.

Then open the atmos file in mpc and make sure it is on 0 and also my script will click space to play need to keep on the play can not click of it. Then just play the film on the tv and it will start playing the atmos file at the exact same time :D
box4m
Posts: 68
Joined: Tue Sep 10, 2019 7:23 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by box4m »

extranet wrote:
Wed Jan 01, 2020 10:08 am
Hi again

There are 966 posts and counting, each either building upon or modifying previous ones. Can someone PLEASE summarise what needs to be done to:
1. Encode a DV file so that it can play a DV file on the Shield 2019?
2. Play existing DoVI files on shield 2019?

Thank you.
+1 ...
scradion
Posts: 5
Joined: Thu Jan 02, 2020 9:25 am

Re: Dolby Vision now possible through MP4 Mux.

Post by scradion »

extranet wrote:
Wed Jan 01, 2020 10:08 am
Hi again

There are 966 posts and counting, each either building upon or modifying previous ones. Can someone PLEASE summarise what needs to be done to:
1. Encode a DV file so that it can play a DV file on the Shield 2019?
2. Play existing DoVI files on shield 2019?

Thank you.
The only way to get DV to play via Plex on the Nvidia Shield 2019 is to use DVDFab UHD Ripper which is worth it. You have to merge the two layers into a single layer which means it will only play on a DV capable display. It also plays on the TCL R617 as well which doesn't support Dual Layer Dolby Vision a Google limitation on Android based devices including the Shield.
piidii
Posts: 1
Joined: Thu Jan 02, 2020 1:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by piidii »

Grencola wrote:
Wed Jan 30, 2019 7:54 pm
Fuso90 wrote:
Wed Jan 30, 2019 6:05 pm
Grencola wrote:
Sun Jan 27, 2019 7:12 pm
make this script:
open a new text file and paste in:

ren *track1.hevc baselayer.hevc
ren *track2.hevc dvlayer.hevc
ren *.ac3 audio.ac3
mp4muxer_64bits.exe --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.eac3 --media-lang eng --output-file movie.mp4

save it to where you keep your mp4muxer exe, and rename it to startmux.cmd

then whenever you're done demuxing a movie and converting audio, just place a copy of mp4muxer and startmux.cmd into your chosen demux folder and double click on startmux.cmd :)
I've just tried that but nothing happens. It starts to write to my HDD, creates the file movie.mp4, after ~15 mins the cmd prompt closes and the output file movie.mp4 is 0 bytes in size...

oh oops, thx for pointing this out, I edited my original post. put this in startmux.cmd instead:

ren *.hevc baselayer.hevc
ren 0*.hevc dvlayer.hevc
ren *.ac3 audio.ac3
mp4muxer_64bits.exe --dv-profile 7 --input-file baselayer.hevc --input-file dvlayer.hevc --input-file audio.eac3 --media-lang eng --output-file movie.mp4
I have exactly the same problem. Still 0 kB. If i close CMD after while it will have a size 1 kB. I really dont know what im doing wrong. Can you help me please? Im trying that on Windows 10. Thank You!
Last edited by piidii on Thu Jan 02, 2020 3:17 pm, edited 1 time in total.
deadchip12
Posts: 285
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

Could someone take a look at this and see if there's anything that can be done:

Instead of a dedicated dolby atmos home theater system, I'm using Dolby Atmos for Headphone (DAfH), hoping that I can get that atmos experience watching ultra hd movies. The thing is: almost no media player on pc can decode dolby atmos and make it work with DAfH (all they can do is sending 7.1 data without atmos to DAfH and DAfH will upmix the signal). The only media player that can decode dolby atmos is Windows 10 Movies & TV app, but it can only decode DD+ based dolby atmos, not TrueHD 7.1 based dolby atmos, and all ultra hd movies only have TrueHD 7.1 based dolby atmos. Is there a way to convert the truehd 7.1 dolby atmos stream to e-ac3 (DD+) dolby atmos stream so I can get dolby atmos using Movies & TV app?

Some videos for reference:
-Dolby Atmos test tone: https://download.dolby.com/us/en/test-t ... _9_1_6.mp4 (this video has DD+ based dolby atmos stream, so watch this with Dolby Atmos for Headphone using Movies & TV app, you will hear that the height channel is there)
- A comparison video I made: https://youtu.be/LRTCv1WcPfI (you can hear that using dvdfab (or any other media players like vlc, mpc, powerdvd etc.), the height channel is not there, but using Movies & TV app brings back the height channel)
extranet
Posts: 61
Joined: Mon Oct 29, 2018 7:44 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by extranet »

scradion wrote:
Thu Jan 02, 2020 9:30 am
The only way to get DV to play via Plex on the Nvidia Shield 2019 is to use DVDFab UHD Ripper which is worth it. You have to merge the two layers into a single layer which means it will only play on a DV capable display. It also plays on the TCL R617 as well which doesn't support Dual Layer Dolby Vision a Google limitation on Android based devices including the Shield.
OK so I ripped Godzilla KOTM and it works but the audio defaults to AAC. So even though it probably won't work, I'm going to try Atmos. Interestingly it works on the default player but not on VLC, Kodi or my file manager. Later on, I'm going to try it also on my Apple 4K.

*edit
Nvidia Shield & Apple TV 4k Play the Dolby Vision rips from DVDFab. I use EAC3 which effectively gives me lossy Atmos.

On the shield, Plex & MX Player play Dolby Vision with EAC3 and DTS.
Apple TV also plays the above with MrMC.
deadchip12
Posts: 285
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

It's possible that tvs will support both dolby vision and hdr10+ in the very near future. Is there a way to make hdr10+ work through mp4 mux like dolby vision? I checked the Alien 4k Remastered disc (an hdr10+ title) and it seems there is only 1 video stream (compared to usually 2 streams in a dolby vision disk).
daddy
Posts: 77
Joined: Sat Jul 06, 2019 8:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by daddy »

Alita have HDR10+ and DV
Vidéo #1: MPTE ST 2094 App 4, Version 1, HDR10+ Profile A compatible
Vidéo #2: Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible

Code: Select all

Général
Nom complet                              : Z:\Alita - Battle Angel.mp4
Format                                   : MPEG-4
Profil du format                         : Base Media
Identifiant du codec                     : isom (isom)
Taille du fichier                        : 37,8 Gio
Durée                                    : 2 h 1 min
Débit global moyen                       : 44,3 Mb/s
Date d'encodage                          : UTC 2019-08-06 08:24:02
Date de marquage                         : UTC 2019-08-06 08:24:02

Vidéo #1
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Profil du format                         : Main 10@L5.1@High
HDR_Format/String                        : SMPTE ST 2094 App 4, Version 1, HDR10+ Profile A compatible
Identifiant du codec                     : hev1
Identifiant du codec/Info                : High Efficiency Video Coding
Durée                                    : 2 h 1 min
Débit                                    : 41,4 Mb/s
Largeur                                  : 3 840 pixels
Hauteur                                  : 2 160 pixels
Format à l'écran                         : 16/9
Type d'images/s                          : Constant
Images par seconde                       : 23,976 (24000/1001) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0 (Type 2)
Profondeur des couleurs                  : 10 bits
Bits/(Pixel*Image)                       : 0.208
Taille du flux                           : 35,3 Gio (93%)
Default                                  : Non
Date d'encodage                          : UTC 2019-08-06 07:57:34
Date de marquage                         : UTC 2019-08-06 08:28:16
Gamme de couleurs                        : Limited
Coordonnées de chromaticité              : BT.2020
Caractéristiques du transfert            : PQ
Coefficients de la matrice               : BT.2020 non-constant
MasteringDisplay_ColorPrimaries          : Display P3
MasteringDisplay_Luminance               : min: 0.0001 cd/m2, max: 1000 cd/m2
MaxCLL                                   : 326 cd/m2
MaxFALL                                  : 63 cd/m2
Codec configuration box                  : hvcC

Vidéo #2
ID                                       : 2
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Profil du format                         : Main 10@L5.1@High
HDR_Format/String                        : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible
Identifiant du codec                     : dvhe
Identifiant du codec/Info                : High Efficiency Video Coding with Dolby Vision
Durée                                    : 2 h 1 min
Débit                                    : 2 134 kb/s
Largeur                                  : 1 920 pixels
Hauteur                                  : 1 080 pixels
Format à l'écran                         : 16/9
Type d'images/s                          : Constant
Images par seconde                       : 23,976 (24000/1001) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0 (Type 2)
Profondeur des couleurs                  : 10 bits
Bits/(Pixel*Image)                       : 0.043
Taille du flux                           : 1,82 Gio (5%)
Default                                  : Non
Date d'encodage                          : UTC 2019-08-06 07:57:34
Date de marquage                         : UTC 2019-08-06 08:28:16
Gamme de couleurs                        : Limited
Coordonnées de chromaticité              : BT.2020
Caractéristiques du transfert            : PQ
Coefficients de la matrice               : BT.2020 non-constant
MasteringDisplay_ColorPrimaries          : Display P3
MasteringDisplay_Luminance               : min: 0.0001 cd/m2, max: 1000 cd/m2
Codec configuration box                  : hvcC+dvcC

Audio
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Identifiant du codec                     : mp4a-A9
Durée                                    : 2 h 1 min
Durée de la source duration              : 2 h 1 min
Type de débit                            : Constant
Débit                                    : 768 kb/s
Débit maximum                            : 778 kb/s
Canaux                                   : 6 canaux
ChannelLayout                            : C L R Ls Rs LFE
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 93,750 Im/s (512 SPF)
Profondeur des couleurs                  : 24 bits
Mode de compression                      : Avec perte
Taille du flux                           : 670 Mio (2%)
Taille du flux source                    : 670 Mio (2%)
Langue                                   : Français
Default                                  : Oui
AlternateGroup/String                    : 1
Date de marquage                         : UTC 2019-08-06 08:28:16

deadchip12
Posts: 285
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

daddy wrote:
Mon Jan 06, 2020 7:00 am
Alita have HDR10+ and DV
Vidéo #1: MPTE ST 2094 App 4, Version 1, HDR10+ Profile A compatible
Vidéo #2: Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible

Code: Select all

Général
Nom complet                              : Z:\Alita - Battle Angel.mp4
Format                                   : MPEG-4
Profil du format                         : Base Media
Identifiant du codec                     : isom (isom)
Taille du fichier                        : 37,8 Gio
Durée                                    : 2 h 1 min
Débit global moyen                       : 44,3 Mb/s
Date d'encodage                          : UTC 2019-08-06 08:24:02
Date de marquage                         : UTC 2019-08-06 08:24:02

Vidéo #1
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Profil du format                         : Main 10@L5.1@High
HDR_Format/String                        : SMPTE ST 2094 App 4, Version 1, HDR10+ Profile A compatible
Identifiant du codec                     : hev1
Identifiant du codec/Info                : High Efficiency Video Coding
Durée                                    : 2 h 1 min
Débit                                    : 41,4 Mb/s
Largeur                                  : 3 840 pixels
Hauteur                                  : 2 160 pixels
Format à l'écran                         : 16/9
Type d'images/s                          : Constant
Images par seconde                       : 23,976 (24000/1001) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0 (Type 2)
Profondeur des couleurs                  : 10 bits
Bits/(Pixel*Image)                       : 0.208
Taille du flux                           : 35,3 Gio (93%)
Default                                  : Non
Date d'encodage                          : UTC 2019-08-06 07:57:34
Date de marquage                         : UTC 2019-08-06 08:28:16
Gamme de couleurs                        : Limited
Coordonnées de chromaticité              : BT.2020
Caractéristiques du transfert            : PQ
Coefficients de la matrice               : BT.2020 non-constant
MasteringDisplay_ColorPrimaries          : Display P3
MasteringDisplay_Luminance               : min: 0.0001 cd/m2, max: 1000 cd/m2
MaxCLL                                   : 326 cd/m2
MaxFALL                                  : 63 cd/m2
Codec configuration box                  : hvcC

Vidéo #2
ID                                       : 2
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Profil du format                         : Main 10@L5.1@High
HDR_Format/String                        : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible
Identifiant du codec                     : dvhe
Identifiant du codec/Info                : High Efficiency Video Coding with Dolby Vision
Durée                                    : 2 h 1 min
Débit                                    : 2 134 kb/s
Largeur                                  : 1 920 pixels
Hauteur                                  : 1 080 pixels
Format à l'écran                         : 16/9
Type d'images/s                          : Constant
Images par seconde                       : 23,976 (24000/1001) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0 (Type 2)
Profondeur des couleurs                  : 10 bits
Bits/(Pixel*Image)                       : 0.043
Taille du flux                           : 1,82 Gio (5%)
Default                                  : Non
Date d'encodage                          : UTC 2019-08-06 07:57:34
Date de marquage                         : UTC 2019-08-06 08:28:16
Gamme de couleurs                        : Limited
Coordonnées de chromaticité              : BT.2020
Caractéristiques du transfert            : PQ
Coefficients de la matrice               : BT.2020 non-constant
MasteringDisplay_ColorPrimaries          : Display P3
MasteringDisplay_Luminance               : min: 0.0001 cd/m2, max: 1000 cd/m2
Codec configuration box                  : hvcC+dvcC

Audio
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Identifiant du codec                     : mp4a-A9
Durée                                    : 2 h 1 min
Durée de la source duration              : 2 h 1 min
Type de débit                            : Constant
Débit                                    : 768 kb/s
Débit maximum                            : 778 kb/s
Canaux                                   : 6 canaux
ChannelLayout                            : C L R Ls Rs LFE
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 93,750 Im/s (512 SPF)
Profondeur des couleurs                  : 24 bits
Mode de compression                      : Avec perte
Taille du flux                           : 670 Mio (2%)
Taille du flux source                    : 670 Mio (2%)
Langue                                   : Français
Default                                  : Oui
AlternateGroup/String                    : 1
Date de marquage                         : UTC 2019-08-06 08:28:16

OK so does this mean if we view this mp4 file on an hdr10+ tv then we will get hdr10+?
Donpablo80
Posts: 26
Joined: Sat May 25, 2019 7:04 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Donpablo80 »

Anyone tried to mux Gemini Man to a Dolby vision MP4? I got massive stutter on my LG OLED with DV-Maker and DVDFab. Maybe because of the 60fps video.
Post Reply