Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Message
Author
fib1985
Posts: 16
Joined: Fri May 03, 2019 11:36 pm

Re: Dolby Vision now possible through MP4 Mux.

#256 Post by fib1985 » Fri May 03, 2019 11:47 pm

Grencola wrote:
Mon Mar 25, 2019 7:33 pm
ragico wrote:
Mon Mar 25, 2019 5:00 pm
Thank you. Unfortunately not working. I tried 2 times. First I ckeck with mediainfo the italian audio track and enter the number in the program. Then at the end the language was french. Then I tried again anch choose language according to tsmuxer and this time the language was I think polish.
So I did it again with the old system and everything runs ok.
Many thanks anyway.
haha yea no worries, I didn't think the language would match up right in eac3to. let me mess with a few movies and maybe I can find you a bulletproof way to always know the right track to pick.
Hi to all and especially to you Grencola ! Your tool is amazing :twisted:
Im from Italy too, and im spreading your tool around here eheheh :wink: . Should be perfect if it's possible to extract also different audio tracks with relative subs. Keep in touch ! Thanks for your awesome passion and work !

Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#257 Post by Grencola » Sat May 04, 2019 3:33 am

fib1985 wrote:
Fri May 03, 2019 11:47 pm
Grencola wrote:
Mon Mar 25, 2019 7:33 pm
ragico wrote:
Mon Mar 25, 2019 5:00 pm
Thank you. Unfortunately not working. I tried 2 times. First I ckeck with mediainfo the italian audio track and enter the number in the program. Then at the end the language was french. Then I tried again anch choose language according to tsmuxer and this time the language was I think polish.
So I did it again with the old system and everything runs ok.
Many thanks anyway.
haha yea no worries, I didn't think the language would match up right in eac3to. let me mess with a few movies and maybe I can find you a bulletproof way to always know the right track to pick.
Hi to all and especially to you Grencola ! Your tool is amazing :twisted: I'm from Italy too, and im spreading your tool around here eheheh :wink: .
Cool, I'm glad it helps people!
Should be perfect if it's possible to extract also different audio tracks with relative subs. Keep in touch ! Thanks for your awesome passion and work !
what I made ragico would work if you use the number based on what gets listed in the cmd prompt. unfortunately it seems it's hit or miss for whether the track says the language or not. I don't get why the mediainfo is in a different order than the app though, makes it pretty difficult / frustrating for sure. if you can think of a way to do it, I'll write you the code :?:

bgalakazam
Posts: 34
Joined: Wed May 01, 2019 6:15 pm
Location: Italy

Re: Dolby Vision now possible through MP4 Mux.

#258 Post by bgalakazam » Sat May 04, 2019 8:02 am

Grencola wrote:
Fri May 03, 2019 10:30 pm
you don't rename any extension, you just demux the dts file Xmedia spits out and it should split apart the dd+ ac3 track from the dts one so you can just delete the dts track and mp4mux the dd+ audio. maybe it's an AVR / BDP glitch?
I could investigate further by using another tool, but so far it's working for Matrix, Shutter Island and Tomb Raider so I'll stick to my method. Here are my observations:
- using TSmuxer to extract the DTS track works
- using eac3to to extract DTS -core works
- using eac3to to extract DTS -1536 caused issue for me but should work
- using Xmedia Recode 3.4.5.9 to open .dts file produces a .eac3 extension. Using the file with this extension causes mp4 muxer to error
- using TSmuxer to demux that .eac3 file results in a .ac3 file which CAN be used by mp4 muxer, but results in no audio during playback
- renaming that same .eac3 file to .ec3 causes mp4 muxer to work and audio to playback
- also Windows sees .ec3 as valid extension opposed to .eac3

Image

So my conclusion is Xmedia Recode provides a valid file with a wrong extension. The actual file works when manipulated.
Sony X700 -> Onkyo TX-RZ830 -> LG C8

Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#259 Post by Grencola » Sat May 04, 2019 4:12 pm

bgalakazam wrote:
Sat May 04, 2019 8:02 am
- using TSmuxer to demux that .eac3 file results in a .ac3 file which CAN be used by mp4 muxer, but results in no audio during playback
This is my final step as audio works for me, both from tv speakers via usb and with my AVR. I never had to mess around any further so I apologize in not realizing renaming would be your fix.
If you open Xmedia Recode\Format\eac3.ini you'll see:

Code: Select all

[Main]
Name=E-AC-3
Format=eac3
ExtName=eac3

A1Codec=eac3
A1SampleRateDefault=48000
A1BitrateDefault=192000

AChannelDefault=stereo
You should try changing the ExtName=eac3 to ec3 then launch it and see if the pull down has changed. or you could probably add your own preset by pasting this into an ec3.ini file you create and change all eac3 instances to ec3 and up the A1BitrateDefault to 1536000 and stereo to surround etc :)

szymon
Posts: 5
Joined: Sun May 05, 2019 11:19 am

Re: Dolby Vision now possible through MP4 Mux.

#260 Post by szymon » Sun May 05, 2019 11:29 am

How can I demux mp4? I have DV mp4 in which somebody put only audio for visually impaired instead encoding proper audio from TrueHD to AC3. I want demux HEVC+DV and remux with proper audio but looks like all tools here (dv-mp4-maker, tsMuxer, aeac3to) can work only with TS or MKV. I tried convert mp4 to mkv with mkvtoolnix (DV track is wrongly remuxed), MediaCoder (only premium version is working with UHD), Total Video Converter 6, Avidemux (both don't sees DV track). Maybe is possible to add support for mp4 input into dv-mp4-maker? Or maybe there is a tool which can just add another audio to mp4 without messing with rest tracks?

Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#261 Post by Grencola » Sun May 05, 2019 4:42 pm

szymon wrote:
Sun May 05, 2019 11:29 am
How can I demux mp4? I have DV mp4 in which somebody put only audio for visually impaired instead encoding proper audio from TrueHD to AC3. I want demux HEVC+DV and remux with proper audio but looks like all tools here (dv-mp4-maker, tsMuxer, aeac3to) can work only with TS or MKV. I tried convert mp4 to mkv with mkvtoolnix (DV track is wrongly remuxed), MediaCoder (only premium version is working with UHD), Total Video Converter 6, Avidemux (both don't sees DV track). Maybe is possible to add support for mp4 input into dv-mp4-maker? Or maybe there is a tool which can just add another audio to mp4 without messing with rest tracks?
This should work: https://www.videohelp.com/download/mp4muxer-0.9.3.zip
if not, then this will:
http://ffmpeg.org/download.html

szymon
Posts: 5
Joined: Sun May 05, 2019 11:19 am

Re: Dolby Vision now possible through MP4 Mux.

#262 Post by szymon » Sun May 05, 2019 5:49 pm

Great! Thank you! mp4muxer just added second audio at the end of 50gb file, so no 50gb copying. After this file is crashing my MPC-BE but MPC-HC is working and most important file is working on LG and new track is in sync :D

fib1985
Posts: 16
Joined: Fri May 03, 2019 11:36 pm

Re: Dolby Vision now possible through MP4 Mux.

#263 Post by fib1985 » Sun May 05, 2019 9:21 pm

Hi to all,

I got a few mkv remux with the second DV layer enhancement. Then i remuxed with only the ITA track and in some case separate .srt file (or embedded). Should i able to use your program for convert the file in mp4 and eventually convert the audio format (if not AC3) ? And for the subs the other app will work too ? Thanks.

Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#264 Post by Grencola » Sun May 05, 2019 9:51 pm

szymon wrote:
Sun May 05, 2019 5:49 pm
Great! Thank you! mp4muxer just added second audio at the end of 50gb file, so no 50gb copying. After this file is crashing my MPC-BE but MPC-HC is working and most important file is working on LG and new track is in sync :D
Glad I could help!

Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#265 Post by Grencola » Mon May 06, 2019 3:45 am

fib1985 wrote:
Sun May 05, 2019 9:21 pm
Hi to all,

I got a few mkv remux with the second DV layer enhancement. Then i remuxed with only the ITA track and in some case separate .srt file (or embedded). Should i able to use your program for convert the file in mp4 and eventually convert the audio format (if not AC3) ? And for the subs the other app will work too ? Thanks.
not exactly sure I understand your question, but I think my tools will work for you..

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

Re: Dolby Vision now possible through MP4 Mux.

#266 Post by deadchip12 » Mon May 06, 2019 4:53 am

benhur wrote:
Fri May 03, 2019 10:56 am
deadchip12 wrote:
Thu May 02, 2019 2:55 am
I’m having an issue with Dolby Vision movies on the c7. Black bars are perfect black, but the picture which is supposed to be perfect black is only dark grey. If I look closely, there are some kinda lines running diagonally. Not sure if the remuxing process causes this. The movie I’m testing is Rampage (2018). At the beginning of the movie where there are some white texts against a supposedly black background, the background is grey instead of black. This does not happen with the hdr10 version which is perfect black.
I watched carefully the start of the movie and i saw no problem at all with Rampage on my C7.
Black are perfectly black under the introduction text.
here's my mediainfo if you want to compare.

Code: Select all

Général
Nom complet                              : Z:\Rampage [ac3][4k][DV]\Rampage [ac3][4k][DV].mp4
Format                                   : MPEG-4
Profil du format                         : Base Media / Version 2
Identifiant du codec                     : mp42 (mp42/dby1/isom)
Taille du fichier                        : 45,1 Gio
Durée                                    : 1 h 47 min
Débit global moyen                       : 60,2 Mb/s
Date d'encodage                          : UTC 2019-04-27 07:42:34
Date de marquage                         : UTC 2019-04-27 07:42:34

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 2086, HDR10 compatible
Identifiant du codec                     : hev1
Identifiant du codec/Info                : High Efficiency Video Coding
Durée                                    : 1 h 47 min
Débit                                    : 59,5 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.299
Taille du flux                           : 44,6 Gio (99%)
Default                                  : Non
Date d'encodage                          : UTC 2019-04-27 07:42:34
Date de marquage                         : UTC 2019-04-27 07:42:34
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                                   : 494 cd/m2
MaxFALL                                  : 364 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                                    : 1 h 47 min
Débit                                    : 65,8 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.001
Taille du flux                           : 50,5 Mio (0%)
Default                                  : Non
Date d'encodage                          : UTC 2019-04-27 07:42:34
Date de marquage                         : UTC 2019-04-27 07:42:34
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                                   : AC-3
Format/Info                              : Audio Coding 3
Nom commercial                           : Dolby Digital
Identifiant du codec                     : ac-3
Durée                                    : 1 h 47 min
Type de débit                            : Constant
Débit                                    : 640 kb/s
Canaux                                   : 6 canaux
ChannelLayout                            : L R C LFE Ls Rs
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 31,250 Im/s (1536 SPF)
Profondeur des couleurs                  : 16 bits
Mode de compression                      : Avec perte
Taille du flux                           : 491 Mio (1%)
Langue                                   : Français
ServiceKind/String                       : Complete Main
Default                                  : Non
Date d'encodage                          : UTC 2019-04-27 07:42:34
Date de marquage                         : UTC 2019-04-27 07:42:34

note: No problem also for Justice League. Wonderfull picture like Aquaman and Bumblebee.
I almost done the DV versions for 30+ files, but i did it mostly from m2ts (i think 90%).
The only problem is that sometime tsmuxergui (2.6.12) is unable to extract 2hevc+1audio tracks at the same time.
The solution for this is to extract one by one all the tracks you want to use.
So I finished remuxing the dolby vision mp4 of the movie Rampage using m2ts file and the result is the same. Still raised black. If I increase brightness from the default 50 to 60 you can see the picture part gets brighter than the black bars, indicating raised black level: https://i.imgur.com/Dgs4gRZ.jpg. I do the same thing for the dolby vision of Robin Hood and the brightness of both picture and black bars increase at the same rate: https://i.imgur.com/e6XwEey.jpg, so no raised black there. So I believe it’s because of the movie itself. I’m surprised you don’t see raised black in Rampage. Did you watch it in a completely dark room (because it is unnoticeable with any sort of ambient light)?

Below is my media info:

Code: Select all

General
Complete name                            : G:\DVREMUX\Rampage.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/dby1/isom)
File size                                : 45.0 GiB
Duration                                 : 1 h 47 min
Overall bit rate                         : 60.0 Mb/s
Encoded date                             : UTC 2019-05-06 03:35:47
Tagged date                              : UTC 2019-05-06 03:35:47

Video #1
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 1 h 47 min
Bit rate                                 : 59.5 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.299
Stream size                              : 44.6 GiB (99%)
Default                                  : No
Encoded date                             : UTC 2019-05-06 03:35:47
Tagged date                              : UTC 2019-05-06 03:35:47
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 494 cd/m2
Maximum Frame-Average Light Level        : 364 cd/m2
Codec configuration box                  : hvcC

Video #2
ID                                       : 2
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, EL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 1 h 47 min
Bit rate                                 : 65.8 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.001
Stream size                              : 50.5 MiB (0%)
Default                                  : No
Encoded date                             : UTC 2019-05-06 03:35:47
Tagged date                              : UTC 2019-05-06 03:35:47
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
Codec configuration box                  : hvcC+dvcC

Audio
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : ac-3
Duration                                 : 1 h 47 min
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 344 MiB (1%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Encoded date                             : UTC 2019-05-06 03:35:47
Tagged date                              : UTC 2019-05-06 03:35:47


Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#267 Post by Grencola » Mon May 06, 2019 1:18 pm

benhur wrote:
Mon May 06, 2019 7:40 am
Grencola wrote:
Sun May 05, 2019 4:42 pm
szymon wrote:
Sun May 05, 2019 11:29 am
How can I demux mp4? I have DV mp4 in which somebody put only audio for visually impaired instead encoding proper audio from TrueHD to AC3. I want demux HEVC+DV and remux with proper audio but looks like all tools here (dv-mp4-maker, tsMuxer, aeac3to) can work only with TS or MKV. I tried convert mp4 to mkv with mkvtoolnix (DV track is wrongly remuxed), MediaCoder (only premium version is working with UHD), Total Video Converter 6, Avidemux (both don't sees DV track). Maybe is possible to add support for mp4 input into dv-mp4-maker? Or maybe there is a tool which can just add another audio to mp4 without messing with rest tracks?
This should work: https://www.videohelp.com/download/mp4muxer-0.9.3.zip
if not, then this will:
http://ffmpeg.org/download.html
To demux there is the mp4demux program from DolbyLaboratories too : https://github.com/DolbyLaboratories/dlb_mp4demux
yea this too could work, just wasn't sure if the visually impaired audio track was ac3 or something unsupported, so figured he'd be better off with the others.

Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

#268 Post by Grencola » Mon May 06, 2019 6:34 pm

benhur wrote:
Mon May 06, 2019 6:06 pm
I did two remux with the mp4demux and it works really good.
step1 : put a dv.mp4 file in the working directory
step2 : demux the mp4 file => mp4demuxer_64bits.exe --input-file dv.mp4

At the end of the process you have 3 files:
- out_1.h265 : the hdr10 track (bl.hevc)
- dv_el_out_2.h265 : the dv track (el.hevc)
- out_3.dat : the audio track

I made a zip file with the mux and demux tools : https://uptobox.com/3hfxq39xllsm
cool man, good to know. maybe I'll add the mp4demux files to my tool for when it detects an mp4 file it demuxes it, and still muxes if it sees mkv or m2ts.. or maybe not 8) not sure how many people would need to demux their mp4s :lol:

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

Re: Dolby Vision now possible through MP4 Mux.

#269 Post by deadchip12 » Tue May 07, 2019 12:24 am

So after lots of testing, it seems that this process of demuxing and remuxing into mp4 does sth weird to the file. I’m watching the movies on my oled c7, and every single dolby vision movie created using this method has some kind of noise (diagonal lines running continuously). Now you may not notice this if you don’t watch movies in a completely dark room, so one way to see this issue is to turn up the brightness from the default 50 to around 55-60, put your eyes near the screen and you will see the lines. Yesterday I downloaded several dolby vision demos online which were not created using this method and they do not have this kind of picture noise. Can anyone confirm?

Ray80
Posts: 2
Joined: Thu Mar 21, 2019 2:55 pm

Re: Dolby Vision now possible through MP4 Mux.

#270 Post by Ray80 » Tue May 07, 2019 11:52 am

szymon wrote:
Sun May 05, 2019 5:49 pm
Great! Thank you! mp4muxer just added second audio at the end of 50gb file, so no 50gb copying. After this file is crashing my MPC-BE but MPC-HC is working and most important file is working on LG and new track is in sync :D
Hi. When I add a second audio with mp4muxer, my LG C7 shows both tracks, but only plays the first audio (even when I select the second track in the LG internal player). Have you done any aditional task to play both tracks in the LG TV?

Thanks

Post Reply