Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
Post Reply
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 1:24 am
shawnc22 wrote: Tue Aug 31, 2021 1:15 am
damn with all the players you've bought recently, you should've just bit the bullet and gotten one of the oppo clones :lol:
:lol:
yeah but just like the x700, the oppo cant play cropped DV properly. with all the appletv and amazon(hdr10+ to DV) content , it was a problem.

And now I can watch all the mel DV content via my network and only use my hdd /x700 for FEL. It's much more practical now. plus I get to reduce the amount of TS files in my library ( i prefer all MKV)
zidoo works surprisingly well, literally played every single file I tried.
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?
uhdiznotenough4mee
Posts: 17
Joined: Mon Aug 30, 2021 9:34 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by uhdiznotenough4mee »

quietvoid wrote: Tue Aug 31, 2021 12:31 pm
uhdiznotenough4mee wrote: Mon Aug 30, 2021 10:08 pm I do not have any errors either in ffmpeg or dovi_tool. All is going smooth. Except when I try to play the final file in either mpv or mpc-hc I see glitches - for example in the beginning when the the logo appears, the picture will freeze for a couple of seconds and the sound is continuing. At that time the glitch in small rectangle in left upper corner will appear. Here are examples:
Have you tried using mkvextract instead of ffmpeg for the HDR10 base layer demux?
If there are issues with the injected file, they are probably present in the original demuxed bitstream.
Brilliant. It seems to be working fine using mkvextract. Will test the result later but no glitches at all. Thanks so much, kind sir, for all the work you are doing.
Last edited by uhdiznotenough4mee on Tue Aug 31, 2021 3:14 pm, edited 1 time in total.
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: 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
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
RESET_9999
Posts: 2421
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

uhdiznotenough4mee wrote: Mon Aug 30, 2021 10:08 pm There is a difference between DV web-dl and remux HDR10 file in frames but if I understood correctly, dovi_tool should adjust it automatically for metadata. Am I right? Using the latest 0.5 version.
no.
this is true for the frame count but you still have to make the RPU start at exactly the same frame as the remux. I did every single bluray remux that didnt have DV and i think only 3 times, it didn't need frames adjustments with a JSON edit.

What movie is that ? i certainly did it and never experienced the glitches. I use tsMuxer for extracting.
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.
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.
Last edited by RESET_9999 on Tue Aug 31, 2021 4:20 pm, edited 1 time in total.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
uhdiznotenough4mee
Posts: 17
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 2:17 pm
uhdiznotenough4mee wrote: Mon Aug 30, 2021 10:08 pm There is a difference between DV web-dl and remux HDR10 file in frames but if I understood correctly, dovi_tool should adjust it automatically for metadata. Am I right? Using the latest 0.5 version.
no.
this is true for the frame count but you still have to make the RPU start at exactly the same frame as the remux. I did every single bluray remux that didnt have DV and i think only 3 times, it didn't need frames adjustments with a JSON edit.

What movie is that ? i certainly did it and never experienced the glitches. I use tsMuxer for extracting.
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:

Code: Select all

n:\dovi_tool>dovi_tool inject-rpu -i hdr.hevc --rpu-in RPU.bin -o output.hevc
Parsing RPU file...
Processing input video for frame order info...

Warning: mismatched lengths. video 144645, RPU 144685
Metadata will be skipped at the end to match video length

Computing frame indices..
Rewriting file with interleaved RPU NALs..
Does this mean I have to adjust it via JSON edit as you did?

I had no warning in dovi_tool for Cruella though.

Now I am a little bit lost =(
quietvoid
Posts: 377
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: 2421
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
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
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 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: 17
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: 2421
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"
    ]
}
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 »

@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: 98
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: 2421
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.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Post Reply