Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
hepe9
Posts: 71
Joined: Mon Jun 03, 2019 11:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by hepe9 »

yusesope wrote:
Thu Feb 27, 2020 7:25 pm
Hello everyone!
I am happy to see that there have been developments.
I haven't tried the new method (tsMuxeR) yet but it looks promising.

Not to be outdone, MAYBE, I found a way to combine the base layer, the enhancement layer (both MEL and FEL) and RPU metadata in a single layer from a dual layer Blu-ray disc.

I did some tests with the latest Terminator (BL on one layer and FEL + RPU on the other)

Code: Select all

MPEG-H HEVC Video
48713 kbps          2160p / 23.976 fps / 16:9 / Main 10 @ Level 5.1 @ High / 4:2:0 / 10 bits / 1000nits / HDR10 / BT.2020

* MPEG-H HEVC Video     
5128 kbps (9.53%)   1080p / 23.976 fps / 16:9 / Main 10 @ Level 5.1 @ High / 4:2:0 / 10 bits / 1000nits / Dolby Vision FEL / BT.2020
and HERE you can find some test files.


I have created a custom tool (for now, a bunch of disorganized lines of code) and , without using DVDFab, these are the results (files without audio tracks):

Code: Select all

Formato                                 : MPEG-4
Nome commereciale                       : HDR10
Profilo formato                         : Base Media / Version 2
ID codec                                : mp42 (mp42/dby1/isom)
Dimensione                              : 78,1MiB
Durata                                  : 11s 470 ms
Bitrate totale                          : 57,1 Mb/s
Data codifica                           : UTC 2020-02-27 17:24:54
Data                                    : UTC 2020-02-27 17:24:54

Video
ID                                      : 1
Formato                                 : HEVC
Formato/Informazioni                    : High Efficiency Video Coding
Nome commereciale                       : HDR10
Profilo formato                         : Main 10@L5.1@High
Dolby Vision                            : 1.0, dvhe.04.06, BL+EL+RPU
ID codec                                : hev1
ID codec/Informazioni                   : High Efficiency Video Coding
Durata                                  : 11s 470 ms
Bitrate                                 : 57,1 Mb/s
Larghezza                               : 3.840 pixel
Altezza                                 : 2.160 pixel
Rapporto aspetto visualizzazione        : 16:9
Modalità frame rate                     : Costante
Frame rate                              : 23,976 (24000/1001) FPS
Spazio colore                           : YUV
Croma subsampling                       : 4:2:0 (Type 2)
Profondità bit                          : 10 bit
Bit/(pixel*frame)                       : 0.287
Dimensione della traccia                : 78,1MiB (100%)
Default                                 : Si
AlternateGroup/String                   : 1
Data codifica                           : UTC 2020-02-27 17:24:54
Data                                    : UTC 2020-02-27 17:24:54
colour_range                            : Limited
Colori primari                          : BT.2020
Caratteristiche trasferimento           : PQ
Coefficienti matrici                    : BT.2020 non-constant
MasteringDisplay_ColorPrimaries         : Display P3
MasteringDisplay_Luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
MaxCLL                                  : 1000 cd/m2
MaxFALL                                 : 446 cd/m2
Codec configuration box                 : hvcC+dvcC+hvcE



Each file is made with a different profile (dvhe.04.06, dvhe.05.06, dvhe.07.06) and all of them are organized in a single Dolby Vision layer (BL + EL + RPU).

The Terminator intro isn't the best way to test this kind of thing, but you can't have it all from life.

As always, let me know!
So you say you can create a single layer DV with correct colors?

Dvdfab is a crap, he puts wrong colors

I tried it the 3 files and here is the results, proved on Sony Android TV

- 4.06 Black Screen
- 5.06 Works
- 7.06 No DV
hepe9
Posts: 71
Joined: Mon Jun 03, 2019 11:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by hepe9 »

hepe9 wrote:
Wed Jun 05, 2019 9:16 pm
Ok

Final results, the rip of the movie in DV single layer its play but bad, all colors are green.

So this method doesn't work for Sony Tvs

Looking the mediainfo of the demos, they play good, has 2 differences. Codec ID : mp42 (mp42/isom/dby1) vs mp42 (mp42/dby1/isom) and HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU vs 1.0, dvhe.05.09, BL+RPU.

I don't know if is important or no, just is a crap and dont work on the fucking Sony tv

This is the mediainfo posted by Donpablo80 created in DVDFab;

Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/isom/dby1)
File size : 48,8 GiB
Duration : 2 h 23 min
Overall bit rate : 48,7 Mb/s
Movie name : AQUAMAN.Title89
Encoded date : UTC 2019-06-01 06:28:37
Tagged date : UTC 2019-06-01 07:14:49
Writing application : DVDFab 11.0.3.4
Cover : Yes

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 2 h 23 min
Bit rate : 48,2 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.242
Stream size : 48,2 GiB (99%)
Encoded date : UTC 2019-06-01 06:28:37
Tagged date : UTC 2019-06-01 07:11:03
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Codec configuration box : hvcC+dvcC

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : ac-3
Duration : 2 h 23 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 kanalen
Channel layout : L R C LFE Ls Rs
Sampling rate : 48,0 kHz
Frame rate : 31,250 FPS (1536 SPF)
Bit depth : 16 bits
Stream size : 656 MiB (1%)
Title : English (ac3 5.1)
Language : Engels
Service kind : Complete Main
Default : Ja
Alternate group : 1
Encoded date : UTC 2019-06-01 06:28:37
Tagged date : UTC 2019-06-01 07:11:03


And this the mediainfo of the demos;

Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/dby1/isom)
File size : 510 MiB
Duration : 2 min 23 s
Overall bit rate : 29.9 Mb/s
Encoded date : UTC 2017-04-13 22:51:30
Tagged date : UTC 2017-04-13 22:51:30

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@Main
Dolby Vision : 1.0, dvhe.05.09, BL+RPU
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 2 min 23 s
Bit rate : 29.3 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.059
Stream size : 499 MiB (98%)
Encoded date : UTC 2017-04-13 22:51:30
Tagged date : UTC 2017-04-13 22:51:30
Codec configuration box : hvcC+dvcC

Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : ec-3
Duration : 2 min 22 s
Bit rate mode : Constant
Bit rate : 640 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 : 10.9 MiB (2%)
Service kind : Complete Main
Encoded date : UTC 2017-04-13 22:51:30
Tagged date : UTC 2017-04-13 22:51:30
Complexity index : 14
Number of dynamic objects : 13
Bed channel count : 1 channel
Bed channel configuration : LFE
I want to quote me of an very old post, basically, dvdfab DV SL doesn't work on Sony TV

Maybe can help you @yusesope because your 5.06 works
RESET_9999
Posts: 2094
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Sony X700:
3 samples wont play and wont trigger DV

Plex/Shield:

3 samples plays in DV but sometimes it wont play and say ''error'' restart plex

C8:
3 samples unrecognized


Vizio TV:


all samples play in HDR10
RESET_9999
Posts: 2094
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

good news, DL DV TS made by Tsmuxer are the real deal.

identical in real life and so is the screenshots comparison: https://slow.pics/c/V994dhhF

DV, Atmos, Subtitles, and even fast-forwarding now works. this is awesome.
hepe9
Posts: 71
Joined: Mon Jun 03, 2019 11:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by hepe9 »

RESET_9999 wrote:
Fri Feb 28, 2020 1:12 am
good news, DL DV TS made by Tsmuxer are the real deal.

identical in real life and so is the screenshots comparison: https://slow.pics/c/V994dhhF

DV, Atmos, Subtitles, and even fast-forwarding now works. this is awesome.
If @yusesope release the tool, I hope you can do the same comparative for people like me who only have tv and we can't test DV DL
Grencola
Posts: 343
Joined: Sun Jan 27, 2019 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Grencola »

yusesope wrote:
Thu Feb 27, 2020 7:25 pm
Not to be outdone, MAYBE, I found a way to combine the base layer, the enhancement layer (both MEL and FEL) and RPU metadata in a single layer from a dual layer Blu-ray disc.
Nice work! if this method plays well on the shield / firestick and other single layer only devices then I could create another one-click app, combining your tool with tsmuxer to make single layer ts files with atmos from m2ts / mkv remux (assuming you're using a win based program that can be ran from a cmd line, I'm guessing mp4 box? ). I've been trying to make one with dvdfab from command line but it's absolutely horrible. here's hoping for good news!
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:
Fri Feb 28, 2020 1:12 am
good news, DL DV TS made by Tsmuxer are the real deal.

identical in real life and so is the screenshots comparison: https://slow.pics/c/V994dhhF

DV, Atmos, Subtitles, and even fast-forwarding now works. this is awesome.
x700 is becoming enticing. does the ts files also work from a dlna server like plex so you don't need a usb hdd?
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

built_to_chill wrote:
Thu Feb 27, 2020 8:12 pm
Ok - I am on cloud 9. I just tried:

1) Game of thrones S8 UHD rip using MakeMKV
2) Extract .thd and convert to .thd+ac3 using eac3to
3) Using tsMuxeR nightly build, imported the two video layers from the mkv created in 1) alongside thd+ac3 created in 2).

It works beautifully on the X700! :-)
- Plays in Dolby Vision (confirmed by pressing info on X700 remote)
- Plays Dolby Atmos. My Denon AVR reports the stream as “Dolby Atmos - TrueHD” and the bitrate is normal (regardless of what mediainfo says).
- Lip sync is perfect! I had a hope this would happen because as I said before - lip sync is perfect whenever playing discs on the X700. It is only LPCM I see the issues.

This is phenomenal. No compromise compared to watching the disc, but with the benefit of it being totally silent from my SSD. Also, far less disc thrashing when creating the files due to no more need for the intermediate MP4.

Within 24 hours I’ve gone from regretting buying the X700 just to play DV files (due to lipsync with LPCM) to witnessing the dawn of (dare I say) an effectively no compromise situation with respect to DV remuxes. And the X700 becoming an invaluable piece of equipment. Wow.
Sorry if this is a noob question as I've been trying to follow all the progress being made here lately, but how do you keep both video layers when you do the initial mkv rip in step 1? All the ripped MKVs of DV movies I have only show up with one video layer when imported into tsmuxer. I even verified that the two layers exist on the original m2ts file, but it's just not there on the mkv. The resulting TS mux then only has HDR10 and no DV.
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

shawnc22 wrote:
Fri Feb 28, 2020 5:08 am

Sorry if this is a noob question as I've been trying to follow all the progress being made here lately, but how do you keep both video layers when you do the initial mkv rip in step 1? All the ripped MKVs of DV movies I have only show up with one video layer when imported into tsmuxer. I even verified that the two layers exist on the original m2ts file, but it's just not there on the mkv. The resulting TS mux then only has HDR10 and no DV.
Hi - Id check your using the latest versions of both pieces of software. Although even the stable tsMuxeR shows both video layers for me. But you need the latest “nightly” version from the developers for Dolby vision (linked in the readme on the github project).

Makemkv always shows the two layers for me when I rip a Dolby Vision UHD, and I simply select them both. I’m afraid I cant think why this isn’t the case for you. It’s hard to initially get setup for makemkv and UHDs (you need a special drive) but clearly you’re past that hurdle if you can rip anything at all.
built_to_chill
Posts: 36
Joined: Thu Feb 20, 2020 4:45 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by built_to_chill »

...actually I also have a noob question.

Every time I use tsMuxeR it says something about a “B-pyramid” and shifting a few frames. In light of the lip sync issues (which I’m touching wood are gone now) - is this normal?
baker99
Posts: 84
Joined: Wed Oct 30, 2019 7:05 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by baker99 »

RESET_9999 wrote:
Thu Feb 27, 2020 5:26 pm
baker99 wrote:
Thu Feb 27, 2020 12:22 pm
A quick question for the experts, if I remux my m2ts files from a UHD disc to ts can I reverse the process? i.e. using ts muxer to convert the ts back to m2ts will it be exactly the same as the original and work in the UHD disc? I'd rather not keep two copies of the files and waste hard drive space or have to re-rip my UHD discs again when needed.
yes, you can revert back to m2ts, ISO or bluray structure.
Excellent, thank you :)
baker99
Posts: 84
Joined: Wed Oct 30, 2019 7:05 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by baker99 »

yusesope wrote:
Thu Feb 27, 2020 7:25 pm
Hello everyone!
I am happy to see that there have been developments.
I haven't tried the new method (tsMuxeR) yet but it looks promising.

Not to be outdone, MAYBE, I found a way to combine the base layer, the enhancement layer (both MEL and FEL) and RPU metadata in a single layer from a dual layer Blu-ray disc.

I did some tests with the latest Terminator (BL on one layer and FEL + RPU on the other)

Code: Select all

MPEG-H HEVC Video
48713 kbps          2160p / 23.976 fps / 16:9 / Main 10 @ Level 5.1 @ High / 4:2:0 / 10 bits / 1000nits / HDR10 / BT.2020

* MPEG-H HEVC Video     
5128 kbps (9.53%)   1080p / 23.976 fps / 16:9 / Main 10 @ Level 5.1 @ High / 4:2:0 / 10 bits / 1000nits / Dolby Vision FEL / BT.2020
and HERE you can find some test files.


I have created a custom tool (for now, a bunch of disorganized lines of code) and , without using DVDFab, these are the results (files without audio tracks):

Code: Select all

Formato                                 : MPEG-4
Nome commereciale                       : HDR10
Profilo formato                         : Base Media / Version 2
ID codec                                : mp42 (mp42/dby1/isom)
Dimensione                              : 78,1MiB
Durata                                  : 11s 470 ms
Bitrate totale                          : 57,1 Mb/s
Data codifica                           : UTC 2020-02-27 17:24:54
Data                                    : UTC 2020-02-27 17:24:54

Video
ID                                      : 1
Formato                                 : HEVC
Formato/Informazioni                    : High Efficiency Video Coding
Nome commereciale                       : HDR10
Profilo formato                         : Main 10@L5.1@High
Dolby Vision                            : 1.0, dvhe.04.06, BL+EL+RPU
ID codec                                : hev1
ID codec/Informazioni                   : High Efficiency Video Coding
Durata                                  : 11s 470 ms
Bitrate                                 : 57,1 Mb/s
Larghezza                               : 3.840 pixel
Altezza                                 : 2.160 pixel
Rapporto aspetto visualizzazione        : 16:9
Modalità frame rate                     : Costante
Frame rate                              : 23,976 (24000/1001) FPS
Spazio colore                           : YUV
Croma subsampling                       : 4:2:0 (Type 2)
Profondità bit                          : 10 bit
Bit/(pixel*frame)                       : 0.287
Dimensione della traccia                : 78,1MiB (100%)
Default                                 : Si
AlternateGroup/String                   : 1
Data codifica                           : UTC 2020-02-27 17:24:54
Data                                    : UTC 2020-02-27 17:24:54
colour_range                            : Limited
Colori primari                          : BT.2020
Caratteristiche trasferimento           : PQ
Coefficienti matrici                    : BT.2020 non-constant
MasteringDisplay_ColorPrimaries         : Display P3
MasteringDisplay_Luminance              : min: 0.0001 cd/m2, max: 1000 cd/m2
MaxCLL                                  : 1000 cd/m2
MaxFALL                                 : 446 cd/m2
Codec configuration box                 : hvcC+dvcC+hvcE



Each file is made with a different profile (dvhe.04.06, dvhe.05.06, dvhe.07.06) and all of them are organized in a single Dolby Vision layer (BL + EL + RPU).

The Terminator intro isn't the best way to test this kind of thing, but you can't have it all from life.

As always, let me know!
Brilliant work, I'd wondered where you had vanished too.

To echo what has already been said

Using Plex Media server -
All clips play on Shield pro 2019 under plex media player (they sometimes need you to force stop plex before they play)
X700 none play, black screen no DV triggered

On LG C6 none play with the message "unable to play"
mattmarsden
Posts: 88
Joined: Mon Sep 03, 2018 10:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by mattmarsden »

This is an interesting development if this tool can really combine all layers in to a single layer file.
shawnc22
Posts: 637
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by shawnc22 »

built_to_chill wrote:
Fri Feb 28, 2020 8:47 am
shawnc22 wrote:
Fri Feb 28, 2020 5:08 am

Sorry if this is a noob question as I've been trying to follow all the progress being made here lately, but how do you keep both video layers when you do the initial mkv rip in step 1? All the ripped MKVs of DV movies I have only show up with one video layer when imported into tsmuxer. I even verified that the two layers exist on the original m2ts file, but it's just not there on the mkv. The resulting TS mux then only has HDR10 and no DV.
Hi - Id check your using the latest versions of both pieces of software. Although even the stable tsMuxeR shows both video layers for me. But you need the latest “nightly” version from the developers for Dolby vision (linked in the readme on the github project).

Makemkv always shows the two layers for me when I rip a Dolby Vision UHD, and I simply select them both. I’m afraid I cant think why this isn’t the case for you. It’s hard to initially get setup for makemkv and UHDs (you need a special drive) but clearly you’re past that hurdle if you can rip anything at all.
I'm pretty sure I'm using the latest version of makemkv (1.14.7 Beta?). Are you saying that when you open a UHD disc with DV in makemkv, you see two video tracks under the main title? I've attached a screenshot of what I'm seeing when I tried Black Panther. Looks like just the main HDR10 layer is detected.
makemkv.JPG
makemkv.JPG (102.12 KiB) Viewed 23150 times
Anyways getting past that, I did update my tsmuxer to the 02-23-20 nightly build that was verified to be working here earlier and tried going from the 2 video layers in the original decrypted m2ts file + extracted thd+ac3 atmos (extracted from mkv through eac3to) to a muxed TS. The resulting file showed up with the 2 DV layers and AC3+Atmos in mediainfo, but was not activating DV or Atmos at all on my 2019 Shield w/Plex or Kodi. Unfortunately I don't have a x700 to try it on, so not sure if the issue is with the file I generated or the Shield. My current set up is Shield -> denon x3600 -> LG B8
mattmarsden
Posts: 88
Joined: Mon Sep 03, 2018 10:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by mattmarsden »

So as others have said the 05.06 profile works fine in Plex on the 2019 Shield - it would be great to be able to have a play around with the tool, especially as the start of Terminator is difficult to judge colours etc on.
Post Reply