Dolby Vision now possible through MP4 Mux.
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
So @manix converted the "mutli pattern" to profile 5 and as expected, no more colorspace conversion/clipping issues on the Shield. No blue banding as well.
We discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
no color issues:
P5 pattern : https://drive.google.com/file/d/1gFrasF ... sp=sharing
P8.1 pattern (DV MP4 straight from resolve) : https://drive.google.com/file/d/1fCjcMH ... sp=sharing
color issues:
P8.1 pattern (dovi_tool XML from resolve) :https://drive.google.com/file/d/1Aq3v03 ... sp=sharing
P8.1 pattern (dovi_tool madvr) : https://drive.google.com/file/d/1NbXM2p ... sp=sharing
We are going to make a P8.1 of Doctor Sleep in resolve, I bet there's no more red push...
We discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
no color issues:
P5 pattern : https://drive.google.com/file/d/1gFrasF ... sp=sharing
P8.1 pattern (DV MP4 straight from resolve) : https://drive.google.com/file/d/1fCjcMH ... sp=sharing
color issues:
P8.1 pattern (dovi_tool XML from resolve) :https://drive.google.com/file/d/1Aq3v03 ... sp=sharing
P8.1 pattern (dovi_tool madvr) : https://drive.google.com/file/d/1NbXM2p ... sp=sharing
We are going to make a P8.1 of Doctor Sleep in resolve, I bet there's no more red push...
-
mtotheb
- Posts: 38
- Joined: Wed Jan 27, 2021 12:18 pm
Re: Dolby Vision now possible through MP4 Mux.
This has to be one of the biggest news in this thread in a while. Hopefully the difference can be reverse engineered (looks hopeful at @quietvoid). I really thought we’d need to wait for a complete new SoC to maybe one day get DV (at least MEL)+Passthrough Audio in a device to simply stream like the Shield.
Shield TV 2017 -> LG DSN10YG Soundbar with SPK8 Rears -> LG B1 OLED
-
quietvoid
- Posts: 377
- Joined: Sun Apr 19, 2020 4:15 pm
Re: Dolby Vision now possible through MP4 Mux.
The encoded files aren't comparable.RESET_9999 wrote: Wed May 25, 2022 11:02 pm We discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
Resolve: BT.2020 mastering display, 10000/256 CLL, chroma location center.
Other: DCI-P3 mastering display, 1000/400 CLL, chroma location top-left.
And in the RPU, L6 and L9 are different (Resolve matches BT.2020 primaries, dovi_tool uses DCI-P3 by default).
I doubt L11 makes a difference unless the display supports CM v4.x.
Finally, Resolve doesn't support shot based metadata, so every frame carries "scene_refresh_flag": 1.
Those should obviously be matched first before jumping to conclusions.
MakeMKV shouldn't be doing anything different, as the source isn't modified.
Also, these MP4 files are missing the proper compatibility ID for 8.1.
After that, what you can try:
- Adding a default 100 nits L2 trim
- Copying the L3
- Copying the L4
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
the spears and munsill pattern is encoded with maxcll/fall 1000/400 but resolve and madvr measure it 10 000nitsquietvoid wrote: Thu May 26, 2022 12:39 amThe encoded files aren't comparable.RESET_9999 wrote: Wed May 25, 2022 11:02 pm We discovered something else, something quite big. The DV 8.1 MP4 encoded directly from Resolve doesn't have the famous color issue bug on the Shield!!!! what the hell!!!
So it means there is something in quietvoid/yusesope/makemkv DV remuxing that the Shield doesnt like at all... Strange though that only the Shield seem to be affected.
Resolve: BT.2020 mastering display, 10000/256 CLL, chroma location center.
Other: DCI-P3 mastering display, 1000/400 CLL, chroma location top-left.
And in the RPU, L6 and L9 are different (Resolve matches BT.2020 primaries, dovi_tool uses DCI-P3 by default).
I doubt L11 makes a difference unless the display supports CM v4.x.
Finally, Resolve doesn't support shot based metadata, so every frame carries "scene_refresh_flag": 1.
Those should obviously be matched first before jumping to conclusions.
MakeMKV shouldn't be doing anything different, as the source isn't modified.
Also, these MP4 files are missing the proper compatibility ID for 8.1.
Resolve automatically calculated a new maxcll/fall at delivery, same for L6. It defaults to chroma type 1 as well, i dont think we can change that.
I'll match the color primaries for the 2nd clip but i doubt it will make any difference. As for L9 i dont know.
correct me if i am wrong but I use the first version of the mp4muxer (because the newest one doesnt work) and --dv-bl-compatible-id 1 doesnt work. ( i think it was added later)Also, these MP4 files are missing the proper compatibility ID for 8.1.
-
quietvoid
- Posts: 377
- Joined: Sun Apr 19, 2020 4:15 pm
Re: Dolby Vision now possible through MP4 Mux.
L9 needs to be matched too.RESET_9999 wrote: Thu May 26, 2022 12:53 amI'll match the color primaries for the 2nd clip but i doubt it will make any difference. As for L9 i dont know.
I think the latest version of mp4muxer doesn't work only on LG TV internal player?RESET_9999 wrote: Thu May 26, 2022 12:53 am correct me if i am wrong but I use the first version of the mp4muxer (because the newest one doesnt work) and --dv-bl-compatible-id 1 doesnt work. ( i think it was added later)
So you can use latest version for the Shield, or tsmuxer.
If I can find time I'll try reencoding the pattern with my suggestions.
Maybe this weekend.
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
thanks , that would be great because i have no idea how to do L3,L4quietvoid wrote: Thu May 26, 2022 1:03 am If I can find time I'll try reencoding the pattern with my suggestions.
-
quietvoid
- Posts: 377
- Joined: Sun Apr 19, 2020 4:15 pm
Re: Dolby Vision now possible through MP4 Mux.
It's pretty simple. Run dovi_tool info on the Resolve RPU, copy paste the blocks into the generate config.RESET_9999 wrote: Thu May 26, 2022 1:06 amthanks , that would be great because i have no idea how to do L3,L4quietvoid wrote: Thu May 26, 2022 1:03 am If I can find time I'll try reencoding the pattern with my suggestions.
Example: https://github.com/quietvoid/dovi_tool/ ... e.json#L16
Also, can you clarify which bug is fixed with the Resolve file on the Shield?
The red push or also the blue banding?
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
the red push , i dont know yet.quietvoid wrote: Thu May 26, 2022 1:09 am Also, can you clarify which bug is fixed with the Resolve file on the Shield?
The red push or also the blue banding?
The blue banding and colorspace conversion/clipping are fixed. It looks perfect like the C8 and X700/X800m2
reference (dovitool version): https://slow.pics/c/ga3ytybR
resolve version (not same camera settings as the old comparison):

-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
red push is still present with the resolve files 
re-injecting the same rpu doesnt trigger the bug but reinjecting it to the other video does so the injecting part is fine.
Why does the bug happen with madvr generated RPU as well and only on the shield? I guess just editing L5/L6 for madvr is not enough. very strange...
How do to make the rpu bt2020 instead of p3 with madvr measurement to Dovi?
0= P3
1= bt2020 ???
{
"Level9": {
"length": 1,
"source_primary_index": 0
}
re-injecting the same rpu doesnt trigger the bug but reinjecting it to the other video does so the injecting part is fine.
Why does the bug happen with madvr generated RPU as well and only on the shield? I guess just editing L5/L6 for madvr is not enough. very strange...
EDIT: it happens only when the BL is BT2020 MD. so yeah it's a colorspace mismatch but it only causes problems on the shield.
How do to make the rpu bt2020 instead of p3 with madvr measurement to Dovi?
0= P3
1= bt2020 ???
{
"Level9": {
"length": 1,
"source_primary_index": 0
}
Last edited by RESET_9999 on Thu May 26, 2022 11:19 am, edited 2 times in total.
-
realbabilu
- Posts: 22
- Joined: Sun May 15, 2022 4:23 am
Re: Dolby Vision now possible through MP4 Mux.
my android hisense tv works with mp4muxer mp4 pc / m4v subler mac for p5 p7 p8.1, it support atmos too.quietvoid wrote: Thu May 26, 2022 1:03 amL9 needs to be matched too.RESET_9999 wrote: Thu May 26, 2022 12:53 amI'll match the color primaries for the 2nd clip but i doubt it will make any difference. As for L9 i dont know.
I think the latest version of mp4muxer doesn't work only on LG TV internal player?RESET_9999 wrote: Thu May 26, 2022 12:53 am correct me if i am wrong but I use the first version of the mp4muxer (because the newest one doesnt work) and --dv-bl-compatible-id 1 doesnt work. ( i think it was added later)
So you can use latest version for the Shield, or tsmuxer.
If I can find time I'll try reencoding the pattern with my suggestions.
Maybe this weekend.
except playing p7 fel single layer (somehow jitter...), and lazy cannot play subtitle inside mp4/m4v
any p7 double layer fel that converted to p8.1 will downgraded to HDR10 with DVtool.
Any TSmuxer converted will have sync issue, may the subtitles hdv alone, or out of sync audio.
I definitely suggest subler muxer for any Apple devices, may including ATV perhaps, not tested on that.
So basically mp4muxer has more compatibility in my internal tv player, except that doesnt have delay audio offset. it will outsync when the audio have offset.
My question:
what is --dv-bl-compatible-id option did on mp4muxer? especially for p8 profile, that is said must have.
can mp4box fix outsync offset from mp4muxer?
-
phbart
- Posts: 12
- Joined: Sat Aug 29, 2020 8:38 pm
Re: Dolby Vision now possible through MP4 Mux.
Now it worked like a charm! Thank you!RESET_9999 wrote: Mon May 23, 2022 2:25 amyou remuxed as bluray folder and tried to play the m2ts ? that's the problem.phbart wrote: Sun May 22, 2022 11:46 pm I tried the latest version, but it's still not triggering DV. I remuxed as "blu-ray disc". Do I need to change the mux settings?
You have to mux your BD straight to TS or M2TS.
-
quietvoid
- Posts: 377
- Joined: Sun Apr 19, 2020 4:15 pm
Re: Dolby Vision now possible through MP4 Mux.
Use this for BT.2020:RESET_9999 wrote: Thu May 26, 2022 3:33 am EDIT: it happens only when the BL is BT2020 MD. so yeah it's a colorspace mismatch but it only causes problems on the shield.
How do to make the rpu bt2020 instead of p3 with madvr measurement to Dovi?
0= P3
1= bt2020 ???
{
"Level9": {
"length": 1,
"source_primary_index": 0
}
Code: Select all
{
"Level9": {
"length": 1,
"source_primary_index": 2
}
}If so there's really nothing we can do. Most titles are mastered in DCI-P3.
The original pattern you shared as "multi pattern DV P8.ts" is BT.2020, though. It didn't have L9 metadata.
-
RESET_9999
- Posts: 2421
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
Thankfully it's the other way around, MDP P3 BL is fine.quietvoid wrote: Thu May 26, 2022 12:47 pm So does the Shield only have the bug with the BL using mastering display DCI-P3 for HDR10?
If so there's really nothing we can do. Most titles are mastered in DCI-P3.
I will do more tests tonight but regardless of the rpu, it looks like as soon as the HDR10 BL was mastered on a bt2020 monitor, the bug happens.
I'll check some bt2020 DV movies too. Such as the Matrix.
yep, I did the first version with CMV2.9. So since that one doesn't have an MDP mismatch, it could confirms my suspicion that the shield has problems with movies mastered on a BT2020 display?quietvoid wrote: Thu May 26, 2022 12:47 pm
The original pattern you shared as "multi pattern DV P8.ts" is BT.2020, though. It didn't have L9 metadata.
I redid the pattern because I based the dv analysis on maxcll 1000, when the clip actually is 10 000nits. So L1/L2 were incorrect. I guess I went too fast for the color settings in CMV4.0 for the second version
Code: Select all
{
"Level9": {
"length": 1,
"source_primary_index": 2
}
}could that be automated?
Code: Select all
{
"Level9": {
"length": 1,
"source_primary_index": 0
}-
quietvoid
- Posts: 377
- Joined: Sun Apr 19, 2020 4:15 pm
Re: Dolby Vision now possible through MP4 Mux.
You can use a JSON config along with a madVR measurement file.RESET_9999 wrote: Thu May 26, 2022 2:10 pmthank you, but with the madvr generated DV from a BT2020 MDP video, L9 defaults to P3 ?
could that be automated?
-
deadchip12
- Posts: 385
- Joined: Thu May 02, 2019 2:49 am
Re: Dolby Vision now possible through MP4 Mux.
Could someone briefly explain what were being discussed in the last few pages? The x700/x800m2 bluray player seem like the ultimate devices for playing back dolby vision files, so what else need to be discussed? I'm just curious, not complaining or anything. Are people trying to make it work on other devices?