Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
quietvoid
Posts: 371
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

You have to compare both versions frame by frame to determine if and how they have to be synced..
For Soul, see the posts here: viewtopic.php?p=111007#p111007
cannibalist2
Posts: 9
Joined: Sun Aug 29, 2021 11:31 am

Re: Dolby Vision now possible through MP4 Mux.

Post by cannibalist2 »

RESET_9999 wrote:
Tue Aug 31, 2021 2:17 pm
MastaG wrote:
Mon Aug 30, 2021 4:44 pm
EDIT:

does the Plex app for Shield support DV from MKV containers?
If yes, which profiles?
all of them as long as the file are remuxed into a single track format.
In terms of picture quality, is there a significant difference between single and double layer format?
Last edited by cannibalist2 on Tue Aug 31, 2021 6:12 pm, edited 1 time in total.
RESET_9999
Posts: 1994
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

uhdiznotenough4mee wrote:
Tue Aug 31, 2021 2:38 pm

Cruella. Oh, I thought it is automatic now. So how exactly do you achieve that the RPU starts at exact frame as the remux?

I tried Soul 2020 too and I have seen your post in this thread. I had this warning in dovi_tool:
Cruella if i recall correctly didnt need any frame adjustments. So you should be fine.
Soul, needed frame adjustments and your version definitely will have noticeable brightness jumps.

in order to find out the frame difference see this post: viewtopic.php?p=111054#p111054 and this post: viewtopic.php?p=111044#p111044
deadchip12
Posts: 267
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 2:12 pm
deadchip12 wrote:
Tue Aug 31, 2021 1:12 pm
What is cropped dolby vision? Which movies have it? When you say the x700 can't play those cropped dv movies properly, you mean it won't play at all or there are some problems during playback?
When the video is encoded without black bars (E.G. 3840x1600pixels). Bluray players expect black bars and when there isn't, the black bars appear grey. All the AppleTV and Amazon content is cropped.
see this post:
viewtopic.php?p=111867#p111867
Hmm... Any workaround?
uhdiznotenough4mee
Posts: 14
Joined: Mon Aug 30, 2021 9:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by uhdiznotenough4mee »

RESET_9999 wrote:
Tue Aug 31, 2021 3:59 pm
uhdiznotenough4mee wrote:
Tue Aug 31, 2021 2:38 pm

Cruella. Oh, I thought it is automatic now. So how exactly do you achieve that the RPU starts at exact frame as the remux?

I tried Soul 2020 too and I have seen your post in this thread. I had this warning in dovi_tool:
Cruella if i recall correctly didnt need any frame adjustments. So you should be fine.
Soul, needed frame adjustments and your version definitely will have noticeable brightness jumps.

in order to find out the frame difference see this post: viewtopic.php?p=111054#p111054 and this post: viewtopic.php?p=111044#p111044
Yes you are right, I just checked in AVSPmod and both DV_WEB-DL and HDR_10 for Cruella have 192664 frames and there is no difference in scenes - all fits perfectly.

So basically I need to apply this JSON for SOUL where I remove 56 frames difference and duplicate 16 frames with: "dovi_tool.exe editor -i RPU.bin -j edited.json --rpu-out RPU-edited.bin" and that's it? I can mux it and it should be correct?

Code: Select all

{
	"remove": [
		"0-55"
	],
	"duplicate": [
		{
			"source": 144628,
			"offset": 144628,
			"length": 16
		}
	]
Thanks a lot for your help - it's greatly appreciated.
RESET_9999
Posts: 1994
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

deadchip12 wrote:
Tue Aug 31, 2021 4:36 pm
Hmm... Any workaround?
nop. :( thats why i bought the zidoo device.


uhdiznotenough4mee wrote:
Tue Aug 31, 2021 4:38 pm

Thanks a lot for your help - it's greatly appreciated.
you only need to adjust the start of the rpu. The end is calculated automatically.

so only:

Code: Select all

{
    "remove": [
        "0-55"
    ]
}
Manixx2020beyound
Posts: 127
Joined: Thu Oct 08, 2020 5:19 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Manixx2020beyound »

@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
MastaG
Posts: 91
Joined: Thu Aug 08, 2019 11:40 am

Re: Dolby Vision now possible through MP4 Mux.

Post by MastaG »

RESET_9999 wrote:
Tue Aug 31, 2021 2:17 pm
MastaG wrote:
Mon Aug 30, 2021 4:44 pm
EDIT:

does the Plex app for Shield support DV from MKV containers?
If yes, which profiles?
all of them as long as the file are remuxed into a single track format.
Thanks :)!
Single video track it is then!
RESET_9999 wrote:
Tue Aug 31, 2021 2:17 pm
MastaG wrote:
Mon Aug 30, 2021 4:44 pm

I'm looking to store my videos in a container which can also carry lossless audio, but is capable of triggering DV on both LG TVs and the Shield using Plex.

I know LG only supports AC3, but that's no problem because I can just store the TrueHD track as the second one.
tsmuxer it is then...
they will play in DV+lossless audio on the shield and in DV on your TV.
I have the latest TSMuxer compiled from git.
The problem I have with .ts containers is that FEL movies (John Wick 3, 1917, Gemini Man etc), always stutter when played back from TS file.
I have to ditch the enhancement layer and basically convert them to profile 8.

My procedure would be:
1. Use tsmuxer to demux BL + EL + audio from the bluray disc
2. Use yusesope's tool to merge them into a single profile 8 track using: -mux -mode 2
3. Use tsmuxer again, to store the single track from yusesope's tool into a .ts file together with the audio which I've extracted at step 1

The other downside of this, is that stripping the EL from FEL movies will cause weird tints, especially in John Wick 3.

I wonder if anybody else has gotten FEL videos to play without stuttering on the LG C8 (not in mp4 containers).

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.
So I gave it a try.
I basically attempted steps 1 and 2.
But then I use dolby labs mp4muxer with "--dv-profile 5" using the file created by yusesope's tool (--mux --mode 2).
The resulting mp4 looks like:

Code: Select all

General
Complete name                            : pass1_mp4.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/dby1/isom)
File size                                : 66.3 GiB
Duration                                 : 1 h 57 min
Overall bit rate                         : 81.1 Mb/s
Encoded date                             : UTC 2021-08-31 13:11:27
Tagged date                              : UTC 2021-08-31 13:11:27

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.09, BL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 1 h 57 min
Bit rate                                 : 81.1 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 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.163
Stream size                              : 66.3 GiB (100%)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2021-08-31 13:11:27
Tagged date                              : UTC 2021-08-31 13:11:27
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              : 5180 cd/m2
Maximum Frame-Average Light Level        : 1577 cd/m2
Codec configuration box                  : hvcC+dvcC
This mp4 triggers DV on my C8.

Then I mux the mp4 together with the ac3 audio track in MKV container using mkvtoolnix.
Which then looks like:

Code: Select all

General
Unique ID                                : 205500851021793728348607499931435955511 (0x9A9A0635C597D1C2BF072F0232407537)
Complete name                            : pass2_mkvtoolnix.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 70.3 GiB
Duration                                 : 1 h 57 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 86.0 Mb/s
Encoded date                             : UTC 2021-08-31 15:17:16
Writing application                      : mkvmerge v61.0.0 ('So') 64-bit
Writing library                          : libebml v1.4.2 + libmatroska v1.6.3

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.09, BL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 57 min
Bit rate                                 : 81.1 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 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.163
Stream size                              : 66.3 GiB (94%)
Default                                  : Yes
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              : 5180 cd/m2
Maximum Frame-Average Light Level        : 1577 cd/m2

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Format settings                          : Dolby Surround EX
Codec ID                                 : A_AC3
Duration                                 : 1 h 57 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                              : 536 MiB (1%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
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                                 : 1 h 57 min
Bit rate mode                            : Variable
Bit rate                                 : 4 204 kb/s
Maximum bit rate                         : 7 944 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)
Compression mode                         : Lossless
Stream size                              : 3.44 GiB (5%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
Et voila!
MKV with profile 5 DV.

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

So it seems there's no way to make MKV trigger DV at all?
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 Jul 27, 2021 11:31 pm
So I'm now even more convinced that 1, the dynamic metadata are working properly and 2 , the slight color difference with HDR10 is caused by the LLDV bug (because we can't capture tv-led)
*** appleTV files color issues is not related to this though

1- one of these sample RPU is synced properly and the other is out of sync.
you can see the brightness jump at the 4-5second mark.
https://drive.google.com/file/d/19xODV3 ... sp=sharing,
https://drive.google.com/file/d/1PepCc6 ... sp=sharing

2- Remember HDTVTEST Vincent video about tv-led vs player-led ??
well we captured the LLDV signal in PQ of the SM clip, and compared it to the HDR10 BL tonemapped in SDR. The difference is literally the same as in Vincent's video.
https://screenshotcomparison.com/comparison/16173

Image
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..?
RESET_9999
Posts: 1994
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

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.
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: 371
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: 1994
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
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 13979 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 13979 times
B2D69C58-FE8A-4F99-8EF1-02FB13F6DE56.jpeg
B2D69C58-FE8A-4F99-8EF1-02FB13F6DE56.jpeg (791.53 KiB) Viewed 13979 times
quietvoid
Posts: 371
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.
Post Reply