Page 36 of 654

Re: Dolby Vision now possible through MP4 Mux.

Posted: Mon Aug 05, 2019 7:17 pm
by RESET_9999
Hi, Thank you for the new method to add lossless audio.

I'm using a Sony x700 with an OLED TV and so far, only the file with 7.1 lpcm works. When I make a DV mp4 with DTS-X, DTS-HD or even DTS, it plays in DV without sound. It doesn't even say '' audio not supported'', just like there isn't any audio in the file.

btw, I watched two complete movies in Dual layer with lossless 7.1 lpcm without any issue. this is really awesome.

Image

Re: Dolby Vision now possible through MP4 Mux.

Posted: Tue Aug 06, 2019 7:28 am
by yusesope
likeadoc wrote:
Mon Aug 05, 2019 1:43 pm
Hey guys,
I found an interesting paper on including TrueHD (MLP) bitstreams into ISO base media file format(mp4) - https://developer.dolby.com/globalasset ... format.pdf - I already contacted Dolby regarding a sample implementation :)
Interesting. I had already tried it but I can't find a valid Meridian audio encoder.


RESET_9999 wrote:
Mon Aug 05, 2019 7:17 pm
Hi, Thank you for the new method to add lossless audio.
You're welcome.
RESET_9999 wrote:
Mon Aug 05, 2019 7:17 pm
I'm using a Sony x700 with an OLED TV and so far, only the file with 7.1 lpcm works. When I make a DV mp4 with DTS-X, DTS-HD or even DTS, it plays in DV without sound. It doesn't even say '' audio not supported'', just like there isn't any audio in the file.
According to the instructions in the manual, it should not even recognize an mp4 with LPCM audio.
Image

Re: Dolby Vision now possible through MP4 Mux.

Posted: Tue Aug 06, 2019 9:21 am
by daddy
Hi guys
Here's an example of how to remux a dv movie composed with multiple m2ts file with the yusesope method.
Usefull programs to install in windows:
- BDInfo => https://www.videohelp.com/software/BDInfo
- MPCBE => https://www.videohelp.com/software/MPC-BE

The programs you need to make mp4 DV:
- ffmpeg => https://ffmpeg.zeranoe.com/builds/
- mp4muxer => (use the first version) https://mega.nz/file/Jawn3ADa#vN1ai3llv ... ktTQ4uFYkk
- mp4box => https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/

The make those CLI tools easy to use, it s better to install ffmpeg, mp4muxer and mp4box in the same folder.


exemple: How to create the DV mp4 file with audio in French for Alita Battle Angel.
1/ launch BDinfo to see what files compose the movie
Image

2/ with MPCBE watch the differents M2TS of the differents playlist (800,801,802,803)
If you look 800,801,802,803.MPLS ... you can see that the playlist is composed of 4 files, with differents first file and last file.
On 803.mpls, the first 00006.M2TS have the introducing text in french. So, 803.MPLS is the playlist for the movie in french.
Now if you look at the "AUDio" list, you can note that the french DTS track is numbered 1104.

Image

3/ now we need to find the corresponding "map" number for the audio track we want to demux

Code: Select all

ffprobe -i F:\BDMV\STREAM\00006.m2ts
Image

French = 1104 => in ffprobe this give a map number 0:7

4/ To assemble the full movie we need to create a "m2ts_list.txt" file, and list inside the differents .m2ts files

Code: Select all

file 'F:\BDMV\STREAM\00006.m2ts'
file 'F:\BDMV\STREAM\00688.m2ts'
file 'F:\BDMV\STREAM\00021.m2ts'
file 'F:\BDMV\STREAM\00689.m2ts'
5/ now here's the magical command to demux the list of the m2ts as BL and EL hevc files and audio.mp4 (containing the french dts track)

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
6/ assemble the DV .mp4 file

Code: Select all

mp4muxer_64bits.exe --dv-profile 7 --input-file BL.hevc --input-file EL.hevc --output-file mp4_dv.mp4
7/ add the audio to the DV .mp4 file

Code: Select all

mp4box.exe -add mp4_dv.mp4:rate=0 -add audio.mp4#audio:lang=fr-FR -no-iod mp4_dv_movie.mp4
8/ Et voila !

Code: Select all

Général
Nom complet                              : C:\ESD\mp4_dv_movie.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


Re: Dolby Vision now possible through MP4 Mux.

Posted: Tue Aug 06, 2019 11:11 am
by RESET_9999
According to the instructions in the manual, it should not even recognize an mp4 with LPCM audio.
Well, the x700 supports the following audio format/combination(the one I tried):

works
MKV: AC3, AAC,DTS, DTS-HD, DTS-x
M2TS/TS: AC3, AAC, DTS, DTS-HD, DTS-X, TrueHD Atmos, e-ac3
MP4: AAC, AC3, LPCM

player says unsupported format:
MKV: EAC3, TrueHD Atmos(because mkv split the core from the truehd)

player says nothing(like if there is no audio at all):
MP4: DTS family

all cinavia free via USB.

Re: Dolby Vision now possible through MP4 Mux.

Posted: Tue Aug 06, 2019 4:21 pm
by Grencola
RESET_9999 wrote:
Mon Aug 05, 2019 7:17 pm
I'm using a Sony x700 with an OLED TV and so far, only the file with 7.1 lpcm works. When I make a DV mp4 with DTS-X, DTS-HD or even DTS, it plays in DV without sound. It doesn't even say '' audio not supported'', just like there isn't any audio in the file.

btw, I watched two complete movies in Dual layer with lossless 7.1 lpcm without any issue. this is really awesome.

Image
just to clarify, and remind myself, dual layer mp4s show dolby vision on both the tv and the player? and m2ts / mkv is only hdr10?

Re: Dolby Vision now possible through MP4 Mux.

Posted: Tue Aug 06, 2019 4:36 pm
by RESET_9999
Grencola wrote:
Tue Aug 06, 2019 4:21 pm
RESET_9999 wrote:
Mon Aug 05, 2019 7:17 pm
I'm using a Sony x700 with an OLED TV and so far, only the file with 7.1 lpcm works. When I make a DV mp4 with DTS-X, DTS-HD or even DTS, it plays in DV without sound. It doesn't even say '' audio not supported'', just like there isn't any audio in the file.

btw, I watched two complete movies in Dual layer with lossless 7.1 lpcm without any issue. this is really awesome.
just to clarify, and remind myself, dual layer mp4s show dolby vision on both the tv and the player? and m2ts / mkv is only hdr10?
Hi
yes, all the mp4 trigger DV and play fine with 7.1 lpcm on the TV and x700 player.
my setup is:
Sony X700 -----> Denon X3200W ------> LG OLED C8

m2ts and mkv only play in HDR because there's nothing yet to author DV in these containers. I think the best solution would be in a .TS container since that supports all the lossless audio and DV single layer(I would guess dual-layer too).

Re: Dolby Vision now possible through MP4 Mux.

Posted: Tue Aug 06, 2019 11:32 pm
by Grencola
RESET_9999 wrote:
Tue Aug 06, 2019 4:36 pm
Hi
yes, all the mp4 trigger DV and play fine with 7.1 lpcm on the TV and x700 player.
my setup is:
Sony X700 -----> Denon X3200W ------> LG OLED C8
ok cool thx!
RESET_9999 wrote:
Tue Aug 06, 2019 4:36 pm
m2ts and mkv only play in HDR because there's nothing yet to author DV in these containers. I think the best solution would be in a .TS container since that supports all the lossless audio and DV single layer(I would guess dual-layer too).
yeah exactly, that's why I've already asked DVDFab to change from mp4 to ts container weeks ago, but they never responded :roll:
hey you don't have a fire tv stick 4k by chance do you? :)

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 12:27 am
by Redhawk2000
Grencola wrote:
Tue Aug 06, 2019 11:32 pm
RESET_9999 wrote:
Tue Aug 06, 2019 4:36 pm
Hi
yes, all the mp4 trigger DV and play fine with 7.1 lpcm on the TV and x700 player.
my setup is:
Sony X700 -----> Denon X3200W ------> LG OLED C8
ok cool thx!
RESET_9999 wrote:
Tue Aug 06, 2019 4:36 pm
m2ts and mkv only play in HDR because there's nothing yet to author DV in these containers. I think the best solution would be in a .TS container since that supports all the lossless audio and DV single layer(I would guess dual-layer too).
yeah exactly, that's why I've already asked DVDFab to change from mp4 to ts container weeks ago, but they never responded :roll:
hey you don't have a fire tv stick 4k by chance do you? :)
I have firestick 4k attached to an LG C9 if you want me to try a test file sometime.

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 2:33 am
by Grencola
Grencola wrote:
Tue Aug 06, 2019 11:32 pm
hey you don't have a fire tv stick 4k by chance do you? :)
Redhawk2000 wrote:
Wed Aug 07, 2019 12:27 am
I have firestick 4k attached to an LG C9 if you want me to try a test file sometime.

whoa cool, my new TV arrives Friday so I'm in between testing right now. I've read that the new emby beta app for it will do single layer dvhe.05.06 with 7.1 pcm audio as it's based on exoplayer2. I'm not sure if you've made any single layer mp4s with dvdfab yet and put lpcm into them, but if so it would definitely be cool to try out.. I feel like you could probably then just set kodi's external player in the xml to emby/exo and get DV working in that even! here's a quick discussion with a link to the beta if any of that sounds enticing: https://emby.media/community/index.php? ... -4k/page-1

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 2:37 am
by Donpoku
Is Dvdfab single layer or dual layers and is there quality difference in between the two and profiles e.g 5 ,7 etc

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 2:55 am
by Grencola
Donpoku wrote:
Wed Aug 07, 2019 2:37 am
Is Dvdfab single layer or dual layers and is there quality difference in between the two and profiles e.g 5 ,7 etc
it has an option for both, and if you choose copy-video there's no perceivable quality difference.

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 2:58 am
by Redhawk2000
Grencola wrote:
Wed Aug 07, 2019 2:33 am
Grencola wrote:
Tue Aug 06, 2019 11:32 pm
hey you don't have a fire tv stick 4k by chance do you? :)
Redhawk2000 wrote:
Wed Aug 07, 2019 12:27 am
I have firestick 4k attached to an LG C9 if you want me to try a test file sometime.

whoa cool, my new TV arrives Friday so I'm in between testing right now. I've read that the new emby beta app for it will do single layer dvhe.05.06 with 7.1 pcm audio as it's based on exoplayer2. I'm not sure if you've made any single layer mp4s with dvdfab yet and put lpcm into them, but if so it would definitely be cool to try out.. I feel like you could probably then just set kodi's external player in the xml to emby/exo and get DV working in that even! here's a quick discussion with a link to the beta if any of that sounds enticing: https://emby.media/community/index.php? ... -4k/page-1
The problem that I'll have that I foolishly didn't think of is this: yes I have the stick and the C9, but I don't have a receiver that will pass through DV, only hdr10. So I have the stick attached to the TV. The tv does support eARC but my receiver doesn't. This doesn't affect me currently because I don't get lossless audio through the stick. I can get DD+/Atmos (lossy) with it via regular ARC. But even if my AVR did support eARC, the C9 for some reason currently will only passthrough PCM as stereo. It's an issue that is known of and complained about on forums as apparently the new Sony handles it fine. So in summary, I guess I would only be able to test for DV, but not audio. I haven't been motivated enough to try this yet due to my setup. If DV becomes fully playable via windows 10 htpc with lossless audio, I'll be very tempted to get a new AVR.

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 3:08 am
by Grencola
Redhawk2000 wrote:
Wed Aug 07, 2019 2:58 am
The problem that I'll have that I foolishly didn't think of is this: yes I have the stick and the C9, but I don't have a receiver that will pass through DV, only hdr10. So I have the stick attached to the TV. The tv does support eARC but my receiver doesn't. This doesn't affect me currently because I don't get lossless audio through the stick. I can get DD+/Atmos (lossy) with it via regular ARC. But even if my AVR did support eARC, the C9 for some reason currently will only passthrough PCM as stereo. It's an issue that is known of and complained about on forums as apparently the new Sony handles it fine. So in summary, I guess I would only be able to test for DV, but not audio. I haven't been motivated enough to try this yet due to my setup. If DV becomes fully playable via windows 10 htpc with lossless audio, I'll be very tempted to get a new AVR.
Ah no worries, I totally get it.

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 2:08 pm
by RESET_9999
Grencola wrote:
Tue Aug 06, 2019 11:32 pm
hey you don't have a fire tv stick 4k by chance do you? :)
no, I have only the appleTV 4K but I don't think it supports dual-layer mp4 and I don't have dvdfab for the single-layer mp4.
Grencola wrote:
Tue Aug 06, 2019 11:32 pm
yeah exactly, that's why I've already asked DVDFab to change from mp4 to ts container weeks ago, but they never responded :roll:
great!! if someone can figure it out, it's them. I hope they are working on it.

Re: Dolby Vision now possible through MP4 Mux.

Posted: Wed Aug 07, 2019 4:40 pm
by Grencola
RESET_9999 wrote:
Wed Aug 07, 2019 2:08 pm
no, I have only the appleTV 4K but I don't think it supports dual-layer mp4 and I don't have dvdfab for the single-layer mp4.
Nah it only supports single layer, using MrMC:
https://forum.mrmc.tv/viewtopic.php?f=1 ... &start=320