Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
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 8:02 pm
MastaG wrote: Tue Aug 31, 2021 6:32 pm
In other news, somebody on Reddit told me that LG WebOS should be able to play DV from MKV as long it's profile 5.


Still it doesn't trigger DV playback on my C8 :(

So it seems there's no way to make MKV trigger DV at all?
I don't think any TVs or bluray players will ever support any DV profile in MKV container but I could be wrong.
andyy wrote: Tue Aug 31, 2021 7:15 pm Sadly I can confirm that the latest AppleTV. (5th gen.) indeed seems to ignore the RPU in P8.. First I tested with my LG CX WebOS Plex, and I can clearly see the brightness jump in the "out of sync" -file. On AppleTV Plex, nothing. Although, it looks like Plex has broken Dolby Vision Playback on ATV and iOS devices, all DV content has some serious stuttering issues when played right now.. So I'll have to test again properly when it is fixed. I couldn't see the brightness jump even after remuxing these as P5, and played using Infuse. But I'm sure this is because the RPU has been converted to P8, surely actual P5 content would work.. right? :P

Apple does state on their website that ATV only supports P5, so I guess I can't blame them, but I'm definitely selling this and buying another playback device. I wan't a device capable of handling Dolby Vision content in .mkv container anyways.

Recommendations are welcome, I'd like to be able to play P5/P8 DV MKV, and possibly P7 MEL DV MKV. Shield Pro seems like a good option..?
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

Shield has color issues with p8-p7 rip but some are not bothered or can't even see the issue. But regardless of that(and lack of fel decoding), the shield is a great device for DV MKV.
I recently bought a Zidoo(also lack FEL decoder) and it seems to be working very well with DV MKV and lossless audio but I only watched 1h of content (p8) yet, so I dont really know about its stability yet.
The Ugoos AM6 can decode FEL DV MKV and atmos without color issues but this device is garbage, not stable at all.
The chromecast with GoogleTV can also decode fel DV mkv without color issues but with no lossless audio support.
Hmm, I can't see any difference even with WebOS Plex here.. Have a look when you have time, could be my tired eyes.

Thank you so much for the summary! Too bad it seems there isn't a single device on the market capable of handling everything. I read your posts about the Zidoo, seems promising, I'll be following that. The Ugoos seemed promising at first, but yeah from what I understood it's really not that good..

The Chromecast with GoogleTV (4th gen, right?) seems like a steal for that price. Decodes even FEL.. Holy cow! So basically it plays any DV profile, even in MKV? Do you know if all that works with Plex too on that device? Lack of lossless audio support is not a deal-breaker for me currently, my AV Receiver doesn't even support all the fancy tech like Atmos. I was kind of leaning towards Shield Pro but I just might go for the Chromecast, crazy that it's also the cheapest option here.
Edit: Does the CCwGTV support frame rate matching?
Last edited by andyy on Tue Aug 31, 2021 9:09 pm, edited 1 time in total.
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

Manixx2020beyound wrote: Tue Aug 31, 2021 6:14 pm @quietvoid
Matching the dynamic meta using the analysis tool compared to a real decoded p5 rpu
If we split/scene @ different points when using the doblyvision analysis tool (resolve)
Xml dynamic meta should be different compared to an original master bc the scene
Selected is diff from the original I’m I correct in this theory?
So far I have changes in my l1 for scene
In other words knowing where the colorist desided to split the clip for analysis bc that’s where the scene changes take place
I'm not following.
The metadata from analysis on the master and encoded video are going to be different, because the encode could introduce errors.

You can get scene cuts by find frames where the RPU has scene_refresh_flag=1, by exporting to JSON and doing a grep or something.
Usually, the L1 metadata is the same for a shot (or scene), but it can possibly be adjusted by frame as well.

Does that answer anything?
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

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
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Manixx2020beyound
Posts: 127
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

1AF12EB2-C24F-44D4-AA76-A07EE7EF27D5.jpeg
1AF12EB2-C24F-44D4-AA76-A07EE7EF27D5.jpeg (614.06 KiB) Viewed 30094 times
quietvoid wrote: Tue Aug 31, 2021 9:07 pm
Manixx2020beyound wrote: Tue Aug 31, 2021 6:14 pm @quietvoid
Matching the dynamic meta using the analysis tool compared to a real decoded p5 rpu
If we split/scene @ different points when using the doblyvision analysis tool (resolve)
Xml dynamic meta should be different compared to an original master bc the scene
Selected is diff from the original I’m I correct in this theory?
So far I have changes in my l1 for scene
In other words knowing where the colorist desided to split the clip for analysis bc that’s where the scene changes take place
I'm not following.
The metadata from analysis on the master and encoded video are going to be different, because the encode could introduce errors.

You can get scene cuts by find frames where the RPU has scene_refresh_flag=1, by exporting to JSON and doing a grep or something.
Usually, the L1 metadata is the same for a shot (or scene), but it can possibly be adjusted by frame as well.

Does that answer anything?
Ment in the creation of the master before the xml is created
Hdr10 plus/ Dolby Vision anchor points for each scene creation,
We determined where the tool should analyze

00FDBAA2-1A49-42BD-9161-9DBCC5DE09D1.jpeg
00FDBAA2-1A49-42BD-9161-9DBCC5DE09D1.jpeg (791.12 KiB) Viewed 30094 times
B2D69C58-FE8A-4F99-8EF1-02FB13F6DE56.jpeg
B2D69C58-FE8A-4F99-8EF1-02FB13F6DE56.jpeg (791.53 KiB) Viewed 30094 times
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

Manixx2020beyound wrote: Tue Aug 31, 2021 11:34 pm Ment in the creation of the master before the xml is created
Hdr10 plus/ Dolby Vision anchor points for each scene creation,
We determined where the tool should analyze
Ok, I'm not sure how Resolve does the analysis.
Either it calculates a maximum per shot and uses that, or something else.

So if you want to match L1 closest to the original RPU, you should set the shots in Resolve the same.
deadchip12
Posts: 385
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

RESET_9999 wrote: Tue Aug 31, 2021 5:35 pm
deadchip12 wrote: Tue Aug 31, 2021 4:36 pm Hmm... Any workaround?
nop. :( thats why i bought the zidoo device.
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)
RESET_9999
Posts: 2421
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 :(
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
MastaG
Posts: 98
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: 2421
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.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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: 2421
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.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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. :)
Post Reply