this is great news. let's hope yusesope can do his magic.likeadoc wrote: ↑Sun Aug 25, 2019 4:07 pmHey 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!
Dolby Vision now possible through MP4 Mux.
-
- Posts: 2118
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
Last edited by RESET_9999 on Mon Aug 26, 2019 9:17 pm, edited 1 time in total.
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
Re: Dolby Vision now possible through MP4 Mux.
Lets compile!!!!
Re: Dolby Vision now possible through MP4 Mux.
Thanks for the update!likeadoc wrote: ↑Sun Aug 25, 2019 4:07 pmHey 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!
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
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
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.
-
- Posts: 2118
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
I'm getting the same result ... I'm still going to try it on the oled tonight...
EDIT:, nop, no go in the TV(which supports atmos and dts=x). no audio detected....
But it's still a step in the right direction. FFmpeg dev should be able to fix that.
EDIT:, nop, no go in the TV(which supports atmos and dts=x). no audio detected....
But it's still a step in the right direction. FFmpeg dev should be able to fix that.
Last edited by RESET_9999 on Tue Aug 27, 2019 11:10 am, edited 2 times in total.
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
Re: Dolby Vision now possible through MP4 Mux.
Please keep us postedRESET_9999 wrote: ↑Mon Aug 26, 2019 6:47 pmI'm getting the same result ... im still going to try it on the oled tonight...
Re: Dolby Vision now possible through MP4 Mux.
So I've compiled ffmpeg from git.
I now saved the truehd audio track from Alita to a new mp4 container.
It's the truehd one at 0:2.
So by simply doing:
It will mux the truehd track into a "new" container:
So now what?
I now use MP4Box to mux the truehd stream from the truehd.mp4 container into my DV mp4 container which I've created with dolby mp4muxer?
I now saved the truehd audio track from Alita to a new mp4 container.
Code: Select all
Input #0, mpegts, from 'bluray:./':
Duration: 00:03:28.21, start: 11.646667, bitrate: 2251891 kb/s
Program 1
Stream #0:0[0x1011]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:1[0x1015]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:2[0x1100]: Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 7.1, s32 (24 bit)
Stream #0:3[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
....
So by simply doing:
Code: Select all
ffmpeg -i bluray:./ -map 0:2 -c copy -strict -2 ../alita_demux/truehd.mp4
Code: Select all
Output #0, mp4, to '../alita_demux/truehd.mp4':
Metadata:
encoder : Lavf58.31.104
Stream #0:0: Audio: truehd (mlpa / 0x61706C6D), 48000 Hz, 7.1, s32 (24 bit)
Stream mapping:
Stream #0:2 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 4540858kB time=02:01:57.31 bitrate=5083.7kbits/s speed=14.2x
video:0kB audio:4506193kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.769282%
I now use MP4Box to mux the truehd stream from the truehd.mp4 container into my DV mp4 container which I've created with dolby mp4muxer?
Re: Dolby Vision now possible through MP4 Mux.
Well I tried to add the truehd track with MP4Box.
So for the record:
alita.dv.mp4 - The DV movie created with Dolby's mp4muxer (from the base-layer and enhanced-layer), only contains the two video layers
truehd.mp4 - The TrueHD audio track muxed into a mp4 container with ffmpeg: ffmpeg -i bluray:./ -map 0:2 -c copy -strict -2 truehd.mp4
dolby.ac3 - The Dolby Digital 5.1 audio track saved with ffmpeg: ffmpeg -i bluray:./ -map 0:3 -c copy dolby.ac3
I think MP4Box somehow messed up:
As it reports the truehd (mlpa) track as 2-channels instead of 7.1
EDIT:
Here's the information regarding the truehd.mp4 container which contains the truehd track:
So it looks like FFMpeg still needs some work as the codec ID should be: A_TRUEHD and it sohuld at least report 7.1 channels...
So for the record:
alita.dv.mp4 - The DV movie created with Dolby's mp4muxer (from the base-layer and enhanced-layer), only contains the two video layers
truehd.mp4 - The TrueHD audio track muxed into a mp4 container with ffmpeg: ffmpeg -i bluray:./ -map 0:2 -c copy -strict -2 truehd.mp4
dolby.ac3 - The Dolby Digital 5.1 audio track saved with ffmpeg: ffmpeg -i bluray:./ -map 0:3 -c copy dolby.ac3
Code: Select all
MP4Box -add alita.dv.mp4:rate=0 -add truehd.mp4#audio:lang=en-US -add dolby.ac3#audio:lang=en-US -no-iod Alita.Battle.Angel.2019.DV.TrueHD.AC3.mp4
[iso file] Unknown box type hvcC in parent dvhe
[iso file] dvcC reserved bytes are not zero
[iso file] Unknown box type hvcC in parent dvhe
[iso file] dvcC reserved bytes are not zero
IsoMedia import alita.dv.mp4 - track ID 1 - Video (size 3840 x 2160)
[iso file] Unknown box type hvcC in parent dvhe
[iso file] dvcC reserved bytes are not zero
IsoMedia import alita.dv.mp4 - track ID 2 - Video (size 1920 x 1080)
[iso file] Unknown box type mlpa in parent stsd
[iso file] Unknown box type mlpa in parent stsd
IsoMedia import truehd.mp4 - track ID 1 - Audio (SR 0 - 2 channels)
AC3 import - sample rate 48000 - 5.1 channels
Saving to Alita.Battle.Angel.2019.DV.TrueHD.AC3.mp4: 0.500 secs Interleaving
Code: Select all
General
Complete name : Alita.Battle.Angel.2019.DV.TrueHD.AC3.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom)
File size : 41.9 GiB
Duration : 2 h 1 min
Overall bit rate : 49.2 Mb/s
Encoded date : UTC 2019-08-27 09:08:56
Tagged date : UTC 2019-08-27 09:08:56
Video #1
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2094 App 4, Version 1, HDR10+ Profile A compatible
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Duration : 2 h 1 min
Bit rate : 41.4 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.208
Stream size : 35.2 GiB (84%)
Default : No
Encoded date : UTC 2019-08-08 13:26:09
Tagged date : UTC 2019-08-27 09:20:15
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 : 233 cd/m2
Maximum Frame-Average Light Level : 63 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 : 2 h 1 min
Bit rate : 2 135 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.043
Stream size : 1.82 GiB (4%)
Default : No
Encoded date : UTC 2019-08-08 13:26:09
Tagged date : UTC 2019-08-27 09:20:15
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 #1
ID : 3
Format : mlpa
Codec ID : mlpa
Duration : 2 h 1 min
Bit rate : 5 045 kb/s
Maximum bit rate : 9 828 kb/s
Channel(s) : 2 channels
Sampling rate : 158 kHz
Bit depth : 16 bits
Stream size : 4.30 GiB (10%)
Language : English
Default : Yes
Alternate group : 1
Tagged date : UTC 2019-08-27 09:20:15
Audio #2
ID : 4
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : ac-3
Duration : 2 h 1 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Maximum bit rate : 676 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 : 558 MiB (1%)
Title : ac3#audio:lang=en-US@GPAC0.8.0-revrelease
Language : English
Service kind : Complete Main
Encoded date : UTC 2019-08-27 09:20:14
Tagged date : UTC 2019-08-27 09:20:15
EDIT:
Here's the information regarding the truehd.mp4 container which contains the truehd track:
Code: Select all
General
Complete name : truehd.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/mp41)
File size : 4.33 GiB
Duration : 2 h 1 min
Overall bit rate : 5 084 kb/s
Writing application : Lavf58.31.104
Audio
ID : 1
Format : mlpa
Codec ID : mlpa
Duration : 2 h 1 min
Bit rate : 5 045 kb/s
Channel(s) : 2 channels
Sampling rate : 158 kHz
Bit depth : 16 bits
Stream size : 4.30 GiB (99%)
Default : Yes
Alternate group : 1
Re: Dolby Vision now possible through MP4 Mux.
@MastaG
What linux you use? maybe you can help me compile dlb_mp4base
I use 4.19.66-1-MANJARO x86_64 GNU/Linux and my error:
What linux you use? maybe you can help me compile dlb_mp4base
I use 4.19.66-1-MANJARO x86_64 GNU/Linux and my error:
Code: Select all
linux_amd64]$ make mp4muxer_release
make: *** Brak reguł do zrobienia obiektu '../../../../dlb_mp4base/frontend/mp4_muxer_app.c', wymaganego przez 'obj/mp4muxer_release/mp4_muxer_app.o'. Stop.
Re: Dolby Vision now possible through MP4 Mux.
Did you run the "make" command inside the appropriate directory?bl4ck wrote: ↑Wed Aug 28, 2019 11:28 am@MastaG
What linux you use? maybe you can help me compile dlb_mp4base
I use 4.19.66-1-MANJARO x86_64 GNU/Linux and my error:Code: Select all
linux_amd64]$ make mp4muxer_release make: *** Brak reguł do zrobienia obiektu '../../../../dlb_mp4base/frontend/mp4_muxer_app.c', wymaganego przez 'obj/mp4muxer_release/mp4_muxer_app.o'. Stop.
Code: Select all
git clone https://github.com/DolbyLaboratories/dlb_mp4base.git
cd dlb_mp4base/make/mp4muxer/linux_amd64
make mp4muxer_release
Re: Dolby Vision now possible through MP4 Mux.
Yep I tried git clone again now it is ok, thx.
Re: Dolby Vision now possible through MP4 Mux.
You're welcome!
A_TRUEHD is a codec tag used for the matroska container. I think the MPLA id is the right one. I don't know if out there there is a player that can start playing an audio track with this codec descriptor: if a device (like ours TVs) is unable to do so, it will need a firmware update (don't worry...it won't happen).
It seems to me that we're stuck at the same point...
-
- Posts: 2
- Joined: Thu Aug 29, 2019 8:12 pm
Re: Dolby Vision now possible through MP4 Mux.
I used DVDFab's UHD Copy to burn a movie file onto a blank Blu-ray disc yesterday and, as it turns out, it keeps the Dolby Vision AND the lossless Dolby Atmos track. I downloaded Rocketman (found an HEVC upload of it, which is the entire disc including Dolby Vision), and after burning a copy onto the blank disc, I played it on my Sony UBP-X700 Blu-ray player. Sure enough, this popped up. I have yet to test a rip of one of my 4K Blu-rays, but I'm sure it'll work roughly the same.
- Attachments
-
- 20190829_161047.jpg (876.11 KiB) Viewed 27853 times
-
- Posts: 32
- Joined: Sun Dec 09, 2018 10:26 pm
Re: Dolby Vision now possible through MP4 Mux.
Just a lurker here just paying attention to see if this ever really works fully. Sorry to ask a quick hijacking question but I wonder if it might be answered by what is necessary in the efforts of those trying to figure this out: Is it possible with freeware (or cheapware) to convert lpcm (actually flac) to Dolby true HD losslessly? Obviously wouldn't have Atmos metadata. Thanks.
-
- Posts: 2118
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
I do the same when a movie fit a BD-50 but almost all the movies are larger than that(even without all the audio and menu) and triple-layer BD-R are very expensive. yes, you can encode it to fit a BD-50 or even a BD-25 but it's not an option when you only want to watch the best quality possible.mercwithamouth wrote: ↑Thu Aug 29, 2019 9:02 pmI used DVDFab's UHD Copy to burn a movie file onto a blank Blu-ray disc yesterday and, as it turns out, it keeps the Dolby Vision AND the lossless Dolby Atmos track. I downloaded Rocketman (found an HEVC upload of it, which is the entire disc including Dolby Vision), and after burning a copy onto the blank disc, I played it on my Sony UBP-X700 Blu-ray player. Sure enough, this popped up. I have yet to test a rip of one of my 4K Blu-rays, but I'm sure it'll work roughly the same.
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
Re: Dolby Vision now possible through MP4 Mux.
Freeware, no. Dolby TrueHD is proprietary, and there is no current free alternative to buying a license from Dolby.Redhawk2000 wrote: ↑Thu Aug 29, 2019 10:38 pmIs it possible with freeware (or cheapware) to convert lpcm (actually flac) to Dolby true HD losslessly?
MakeMKV Frequently Asked Questions
FAQ about BETA and PERMANENT keys.
How to aid in finding the answer to your problem: Activating Debug Logging
FAQ about BETA and PERMANENT keys.
How to aid in finding the answer to your problem: Activating Debug Logging