Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
RESET_9999
Posts: 2105
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

deadchip12 wrote:
Wed Sep 01, 2021 12:35 am

Does lower the brightness or contrast setting by 1 fix the raised black bars? It may crush black a little but I think it's more sensible than buying another device just to play a few titles on appletv and amazon (at least for me)
nop, nothing can be done to fix it.
I just noticed that the zidoo behaves the same SMH. Guess I'll have to return it :(
MastaG
Posts: 91
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

Quick question.
For remuxing both layers into a single track we can use yusesope's python tool to create a single hevc file.

However it seems makemkv will also create a single track (pid) when remuxing BluRay discs.

But when I try to remux one of these single track dual layer mkv's to TS using txmuxer, it will not trigger DV on my C8.

Here's the MKV created from the John Wick disc using makemkv 1.64:

Code: Select all

mediainfo John\ Wick\ 3-\ Parabellum_t00.mkv
General
Unique ID                                : 198507216450823093206721411531790351333 (0x9557196765944C6A9785693E42D3FBE5)
Complete name                            : John Wick 3- Parabellum_t00.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 68.9 GiB
Duration                                 : 2 h 10 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 75.4 Mb/s
Movie name                               : John Wick 3: Parabellum
Encoded date                             : UTC 2021-08-31 18:56:09
Writing application                      : MakeMKV v1.16.4 linux(x64-release)
Writing library                          : libmakemkv v1.16.4 (1.3.10/1.5.2) x86_64-unknown-linux-gnu

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
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, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 10 min
Bit rate                                 : 70.8 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.356
Stream size                              : 64.7 GiB (94%)
Language                                 : English
Default                                  : No
Forced                                   : No
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.0010 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 358 cd/m2
Original source medium                   : Blu-ray

Audio #1
ID                                       : 2
ID in the original source medium         : 4352 (0x1100)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Format settings                          : Dolby Surround EX
Codec ID                                 : A_AC3
Duration                                 : 2 h 10 min
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)
Compression mode                         : Lossy
Stream size                              : 599 MiB (1%)
Title                                    : Surround 5.1
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray

Audio #2
ID                                       : 3
ID in the original source medium         : 4352 (0x1100)
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 2 h 10 min
Bit rate mode                            : Variable
Bit rate                                 : 4 012 kb/s
Maximum bit rate                         : 6 327 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 3.66 GiB (5%)
Title                                    : Surround 7.1
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Menu
00:00:00.000                             : en:Chapter 01
00:08:46.776                             : en:Chapter 02
00:14:06.637                             : en:Chapter 03
00:22:40.067                             : en:Chapter 04
00:31:26.301                             : en:Chapter 05
00:37:51.310                             : en:Chapter 06
00:47:43.318                             : en:Chapter 07
00:57:08.842                             : en:Chapter 08
01:02:56.439                             : en:Chapter 09
01:14:27.588                             : en:Chapter 10
01:20:36.623                             : en:Chapter 11
01:28:48.323                             : en:Chapter 12
01:33:51.792                             : en:Chapter 13
01:41:31.794                             : en:Chapter 14
01:53:44.651                             : en:Chapter 15
01:59:51.434                             : en:Chapter 16
And here's the resulting TS file when remuxing the above MKV using tsmuxer.

Code: Select all

mediainfo John\ Wick\ 3-\ Parabellum_t00.ts
General
ID                                       : 1 (0x1)
Complete name                            : John Wick 3- Parabellum_t00.ts
Format                                   : MPEG-TS
File size                                : 66.7 GiB
Duration                                 : 2 h 10 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 73.0 Mb/s
Maximum Overall bit rate                 : 35.5 Mb/s

Video
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
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, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 10 min
Bit rate                                 : 68.8 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
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.346
Stream size                              : 62.8 GiB (94%)
Language                                 : English
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.0010 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 358 cd/m2

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Format settings                          : Dolby Surround EX
Codec ID                                 : 129
Duration                                 : 2 h 10 min
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)
Compression mode                         : Lossy
Stream size                              : 599 MiB (1%)
Language                                 : English
Service kind                             : Complete Main
How come the TS file fails to trigger DV?
Is there a difference between yusesope's tool and makemkv when merging both layers into a single video track?

Reason I'd rather use makemkv, is because it's much faster.. however it needs to be TS, not mkv.

Any other tools capable of merging both layers?

EDIT:
@quietvoid, will you be adding support for muxing to your tool in the future?
andyy
Posts: 12
Joined: Tue Jan 14, 2020 11:05 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by andyy »

RESET_9999 wrote:
Tue Aug 31, 2021 9:41 pm
andyy wrote:
Tue Aug 31, 2021 9:04 pm
Hmm, I can't see any difference even with WebOS Plex here.. Have a look when you have time, could be my tired eyes.
yeah, it could be that there's actually no brightness variation in the whole 1 minute. I'll try to make a better sample and test it on my end first.
andyy wrote:
Tue Aug 31, 2021 9:04 pm
Edit: Does the CCwGTV support frame rate matching?
unfortunately no frame rate matching. But DV mkv works on plex. dont know which generation but i got the latest one
Could be. Alright, thanks!

So how does that work then, I'd have to manually switch the frame rate according to the source? 4th gen is the latest. Do you need an ethernet adapter to play 4k remux files without buffering?

EDIT: Looks like we're getting frame rate matching in Android 12 for Android TV: https://www.xda-developers.com/android- ... resh-rate/
Last edited by andyy on Wed Sep 01, 2021 1:38 pm, edited 1 time in total.
PlatypusW
Posts: 50
Joined: Mon Aug 03, 2020 2:14 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by PlatypusW »

RESET_9999 wrote:
Wed Sep 01, 2021 1:51 am
deadchip12 wrote:
Wed Sep 01, 2021 12:35 am

Does lower the brightness or contrast setting by 1 fix the raised black bars? It may crush black a little but I think it's more sensible than buying another device just to play a few titles on appletv and amazon (at least for me)
nop, nothing can be done to fix it.
I just noticed that the zidoo behaves the same SMH. Guess I'll have to return it :(
I think I experienced this on a file with the x700, had grey black bars which I found odd at the time.
I tried the same file via the cx internal player and it played fine, same settings iirc.
Not sure if it was just this specific file or if the tv might handle cropped files better? I’ll have to try with an Amazon/atv file at some point - at the time I didn’t know about this issue but checking now the file is 3836 x 1600 so would explain what I saw when I tried the x700.

Have you tried the C8 player? I know it can’t do lossless audio but then these streaming files most likely won’t have that anyway.
RESET_9999
Posts: 2105
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

PlatypusW wrote:
Wed Sep 01, 2021 9:54 am
Have you tried the C8 player? I know it can’t do lossless audio but then these streaming files most likely won’t have that anyway.
yep I did. the c8 and the shield have no problem with cropped DV content. Quietvoid confirmed the firestick as well.
glc650
Posts: 52
Joined: Sun Aug 02, 2020 3:25 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by glc650 »

andyy wrote:
Tue Aug 31, 2021 9:04 pm
Do you need an ethernet adapter to play 4k remux files without buffering?
I assume you mean at least Fast Ethernet or GigE? Fast Ethernet may not be enough with UHD discs spec'd for peaks well above 100mbps. GigE would be the safe bet or at least solid 5g WiFi (which is what I'm using with my Sony X800M2 since it only has Fast Ethernet).
glc650
Posts: 52
Joined: Sun Aug 02, 2020 3:25 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by glc650 »

RESET_9999 wrote:
Tue Aug 31, 2021 8:02 pm
try this, I delayed the rpu metadata 2 seconds (48frames) of a genuine profile 5. (I'm not home so I didn't test the file myself)
https://drive.google.com/file/d/18ZxhjS ... sp=sharing,
https://drive.google.com/file/d/1Zjh-sZ ... sp=sharing
I can't seem to pickup a difference on my Apple TV 4K gen2 w/Infuse or on my M800X2. What happens if you delay the RPU longer or is there another method to make it more obvious?
RESET_9999
Posts: 2105
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

glc650 wrote:
Thu Sep 02, 2021 11:54 am
RESET_9999 wrote:
Tue Aug 31, 2021 8:02 pm
try this, I delayed the rpu metadata 2 seconds (48frames) of a genuine profile 5. (I'm not home so I didn't test the file myself)
https://drive.google.com/file/d/18ZxhjS ... sp=sharing,
https://drive.google.com/file/d/1Zjh-sZ ... sp=sharing
I can't seem to pickup a difference on my Apple TV 4K gen2 w/Infuse or on my M800X2. What happens if you delay the RPU longer or is there another method to make it more obvious?
yeah , those samples are no good. There is no difference because the brightness (DV metadata) doesnt actually change for the whole minute.
andyy
Posts: 12
Joined: Tue Jan 14, 2020 11:05 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by andyy »

glc650 wrote:
Wed Sep 01, 2021 10:08 pm
andyy wrote:
Tue Aug 31, 2021 9:04 pm
Do you need an ethernet adapter to play 4k remux files without buffering?
I assume you mean at least Fast Ethernet or GigE? Fast Ethernet may not be enough with UHD discs spec'd for peaks well above 100mbps. GigE would be the safe bet or at least solid 5g WiFi (which is what I'm using with my Sony X800M2 since it only has Fast Ethernet).
Well yeah I mean do I need to buy an ethernet adapter to the Chromebook with Google TV since it doesn't have ethernet port. But I heard the insides of the thing are USB2.0 so even a gigabit USB-C ethernet adaptor wont help much.. I just ordered mine yesterday, will see how it performs when it arrives. :)
RESET_9999
Posts: 2105
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

andyy wrote:
Thu Sep 02, 2021 1:16 pm
Well yeah I mean do I need to buy an ethernet adapter to the Chromebook with Google TV since it doesn't have ethernet port. But I heard the insides of the thing are USB2.0 so even a gigabit USB-C ethernet adaptor wont help much.. I just ordered mine yesterday, will see how it performs when it arrives. :)
this is the one I use with mine: https://www.amazon.com/gp/product/B085X ... UTF8&psc=1
I don't watch uhd-bd rip on mine though,I mostly use it in my bedroom for appleTV+ and MA but it works great, I get 400/500 Mbps speed test with it. basically the same speed i get with wifi 5ghz but the cable connexion is more stable, especially when I use my VPN at router level.
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

I bought this one for my CCw/GTV out on the patio:

https://www.amazon.com/gp/product/B07QQ ... UTF8&psc=1

Reason being it was only $13 when I bought it and going out on a patio exposed to weather, as mentioned. Honestly it's been well worth it - it's OOS ATM but if it comes back in stock for the price especially it's great. A bit big/bulky is the only nitpick but it's all packed away hiding behind the TV.

Edit: Does anyone know how to edit HDR10 metadata of an HEVC stream? My encoder (Handbrake 1.4.0) passes through the correct metadata 9/10, but for Batman Begins MDL is max 4k but my encodes always end up MDL max 1k, even tried making new source from disc and it still happens. This is the only movie out of about 100+ so far it's done this with.
RESET_9999
Posts: 2105
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

staknhalo wrote:
Thu Sep 02, 2021 4:11 pm
Edit: Does anyone know how to edit HDR10 metadata of an HEVC stream? My encoder (Handbrake 1.4.0) passes through the correct metadata 9/10, but for Batman Begins MDL is max 4k but my encodes always end up MDL max 1k, even tried making new source from disc and it still happens. This is the only movie out of about 100+ so far it's done this with.
AFAIK, handbrake doesn't have a complete 10bit pipeline anyway. You should try Staxrip (x265 GUI with tons of script), it can be hard to learn at first but once you get it , you can do so much more than handbrake and you will get much better quality encodes. Things like incorrect metadata won't happen with staxrip.

https://github.com/staxrip/staxrip
staknhalo wrote:
Thu Sep 02, 2021 4:11 pm
Edit: Does anyone know how to edit HDR10 metadata of an HEVC stream?
you can try :

Code: Select all

mkvmerge -o X:\output.mkv --max-luminance 0:4000 --min-luminance 0:0.0050 X:\input.hevc
Last edited by RESET_9999 on Sat Sep 04, 2021 2:34 am, edited 1 time in total.
staknhalo
Posts: 161
Joined: Sun Oct 11, 2020 12:05 am

Re: Dolby Vision now possible through MP4 Mux.

Post by staknhalo »

RESET_9999 wrote:
Fri Sep 03, 2021 12:57 am
staknhalo wrote:
Thu Sep 02, 2021 4:11 pm
Edit: Does anyone know how to edit HDR10 metadata of an HEVC stream? My encoder (Handbrake 1.4.0) passes through the correct metadata 9/10, but for Batman Begins MDL is max 4k but my encodes always end up MDL max 1k, even tried making new source from disc and it still happens. This is the only movie out of about 100+ so far it's done this with.
AFAIK, handbrake doesn't have a complete 10bit pipeline anyway. You should try Staxrip (x265 GUI with tons of script), it can be hard to learn at first but once you get it , you can do so much more than handbrake and you will get much better quality encodes. Things like incorrect metadata won't happen with staxrip.

https://github.com/staxrip/staxrip
staknhalo wrote:
Thu Sep 02, 2021 4:11 pm
Edit: Does anyone know how to edit HDR10 metadata of an HEVC stream?
you can try :

Code: Select all

mkvmerge -o X:\output.mkv --max-luminance 0:4000 --min-luminance 0:0.50 X:\input.hevc
As of public v1.4.0 (before in nightlies) Handbrake encodes in full 10bit all the way through without converting to 8bit in the process - will try that and report back

Edit: Yeah, that would only change/set the correct metadata in just the mkv container, not within the actual hevc stream itself (what I'm trying to do) - and oddly when you do that it shows you both info to show you there's container and stream metadata I guess. Thanks though.

Not even ffmpeg could do it apparently (without encoding) - not for the MDL metadata at least

Oh well, I'll have to try some other encoding tools I guess
MastaG
Posts: 91
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

Regarding LG WebOS players and DV inside .TS containers.
They always seem to stutter, was there ever a fix for this?

For the record, I open the m2ts file from the disc in yusescope's tool without any fel to mel or profile8 options.
Then I use the latest nightly of TSmuxer to mux the resulting hevc + ac3 5.1 audio inside a .TS container (no HD audio or whatsover).
Like this:

Code: Select all

General
ID                                       : 1 (0x1)
Complete name                            : test_mux_exp_AC3.ts
Format                                   : MPEG-TS
File size                                : 66.7 GiB
Duration                                 : 2 h 10 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 73.0 Mb/s
Maximum Overall bit rate                 : 35.5 Mb/s

Video
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
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                                                 , BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 2 h 10 min
Bit rate                                 : 68.8 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
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.346
Stream size                              : 62.8 GiB (94%)
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.0010 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 358 cd/m2

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Format settings                          : Dolby Surround EX
Codec ID                                 : 129
Duration                                 : 2 h 10 min
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)
Compression mode                         : Lossy
Stream size                              : 599 MiB (1%)
Language                                 : English
Service kind                             : Complete Main
But when I play them, they stutter every 2 seconds, even when all processing options are disabled.
Is there some solution to this? e.g. a modified or older version of TSMuxer?
RESET_9999
Posts: 2105
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

staknhalo wrote:
Fri Sep 03, 2021 1:27 am

Edit: Yeah, that would only change/set the correct metadata in just the mkv container, not within the actual hevc stream itself (what I'm trying to do) - and oddly when you do that it shows you both info to show you there's container and stream metadata I guess. Thanks though.

Not even ffmpeg could do it apparently (without encoding) - not for the MDL metadata at least

Oh well, I'll have to try some other encoding tools I guess
AFAIK, what matters is what is reported to the TV by the player. Last time I checked, changing the metadata with mkvmerge correctly change what madvr(htpc) send to the TV. I don't know about other players though.
you could also try this old software: https://www.videohelp.com/software/NVHSP

anyway, my recommendation still stands, forget about handbrake and take a look at staxrip.
Post Reply