Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Fri Jul 23, 2021 12:45 pm
Thanks for this.
To me there seems to be a slight tint change (so maybe whitebalance difference).
Would be pretty complicated to tell if it's just because the HDR10 version was encoded differently.

I asked @manix to provide lldv capture sample with his Shogun, this will be a more accurate way of comparing the colors/tint.
ragico
Posts: 264
Joined: Fri Feb 15, 2019 1:09 am

Re: Dolby Vision now possible through MP4 Mux.

Post by ragico »

Thanks everybody.
Too difficult for me.
I surrender.
RESET_9999
Posts: 2378
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

@quietvoid,
I get this error for the movie ''Soul'' no matter what I do. any idea why? Could it be because of the seamless branching disc? I tried to mux the m2ts parts with tsmuxer and mkvtoolnix, no difference.

Code: Select all

range end index 18446744073709551612 out of range for slice of length 1
Also, once the rpu is injected into an HDR10 hevc stream, if I use the mp4muxer, the frame rate goes from 23.976 to 30 fps
If I use Tsmuxer, no problem at all, the fps remain 23.976.

EDIT: the fps problem seems to be caused when the hdr10 stream is 23.976 instead of 23.976 (24000/1001)
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote:
Fri Jul 23, 2021 4:32 pm
@quietvoid,
I get this error for the movie ''Soul'' no matter what I do. any idea why? Could it be because of the seamless branching disc? I tried to mux the m2ts parts with tsmuxer and mkvtoolnix, no difference.

Code: Select all

range end index 18446744073709551612 out of range for slice of length 1
Also, once the rpu is injected into an HDR10 hevc stream, if I use the mp4muxer, the frame rate goes from 23.976 to 30 fps
If I use Tsmuxer, no problem at all, the fps remain 23.976.

EDIT: the fps problem seems to be caused when the hdr10 stream is 23.976 instead of 23.976 (24000/1001)
The error happens when doing what? Injecting or extracting the RPU?
RESET_9999
Posts: 2378
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Fri Jul 23, 2021 5:18 pm

The error happens when doing what? Injecting or extracting the RPU?
injecting...
if I use the same RPU and encode it with x265.exe, then no problem.
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote:
Fri Jul 23, 2021 5:24 pm
quietvoid wrote:
Fri Jul 23, 2021 5:18 pm

The error happens when doing what? Injecting or extracting the RPU?
injecting...
if I use the same RPU and encode it with x265.exe, then no problem.
Ok, there's probably a bug or problem with the HEVC parser but it would be useful to have a backtrace.
I'll try to see if I can reproduce in the meantime, though the UHD BD sourced file I use might be different from yours.

If the error happens early, a trimmed sample could be useful.

Edit: I don't have an error on my side when injecting.
RESET_9999
Posts: 2378
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Fri Jul 23, 2021 5:33 pm
Edit: I don't have an error on my side when injecting.
Thank you, I guess my bluray rip is somehow corrupted...

is this the version you have ?

Disc Title: Soul.2020.2160p.BluRay.HEVC.TrueHD.7.1.Atmos
Disc Size: 63,903,876,517 bytes
Protection: AACS2
Extras: Ultra HD, BD-Java
BDInfo: 0.7.5.9 (compatible layout created by DVDFab 12.0.2.0)

PLAYLIST REPORT:

Name: 00800.MPLS
Length: 1:40:32.901
Size: 45,489,555,456 bytes
Total Bitrate: 60.32 Mbps

VIDEO:

Codec Bitrate Description
----- ------- -----------
MPEG-H HEVC Video 46579 kbps 2160p / 23.976 fps / 16:9 / Main 10 @ Level 5.1 @ High / 4:2:0 / 10 bits / 1000nits / HDR10 / BT.2020

AUDIO:

Codec Language Bitrate Description
----- -------- ------- -----------
Dolby TrueHD/Atmos Audio English 6403 kbps 7.1+13 objects / 48 kHz / 5763 kbps / 24-bit (AC3 Core: 5.1 / 48 kHz / 640 kbps)
Dolby Digital Plus Audio English 1024 kbps 7.1 / 48 kHz / 1024 kbps (AC3 Core: 5.1 / 48 kHz / 576 kbps ( Core: 5.1 / 48 kHz / 576 kbps))
Dolby Digital Audio English 640 kbps 5.1 / 48 kHz / 640 kbps
Dolby Digital Audio English 320 kbps 2.0 / 48 kHz / 320 kbps
Dolby Digital Audio English 320 kbps 2.0 / 48 kHz / 320 kbps
Dolby Digital Plus Audio Spanish 1024 kbps 7.1 / 48 kHz / 1024 kbps (AC3 Core: 5.1 / 48 kHz / 576 kbps ( Core: 5.1 / 48 kHz / 576 kbps))

SUBTITLES:

Codec Language Bitrate Description
----- -------- ------- -----------
Presentation Graphics English 51.145 kbps
Presentation Graphics Spanish 40.086 kbps
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote:
Fri Jul 23, 2021 6:24 pm
Thank you, I guess my bluray rip is somehow corrupted...

is this the version you have ?

Disc Title: Soul.2020.2160p.BluRay.HEVC.TrueHD.7.1.Atmos
No, I used an already remuxed file, which I don't think was done using MakeMKV.
Did you demux the HEVC straight from m2ts or used MakeMKV?

I could try remuxing the disc with MakeMKV myself but I can't find the exact same BDInfo as yours.
RESET_9999
Posts: 2378
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Fri Jul 23, 2021 6:33 pm
RESET_9999 wrote:
Fri Jul 23, 2021 6:24 pm
Thank you, I guess my bluray rip is somehow corrupted...

is this the version you have ?

Disc Title: Soul.2020.2160p.BluRay.HEVC.TrueHD.7.1.Atmos
No, I used an already remuxed file, which I don't think was done using MakeMKV.
Did you demux the HEVC straight from m2ts or used MakeMKV?

I could try remuxing the disc with MakeMKV myself but I can't find the exact same BDInfo as yours.
I demuxed the stream straight from the m2ts with tsmuxer.... I'll try FFmpeg and makemkv.
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote:
Fri Jul 23, 2021 6:41 pm
I demuxed the stream straight from the m2ts with tsmuxer.... I'll try FFmpeg and makemkv.
Since it's a disc with seamless branching, there's a necessary merge first but I'm not sure if something actually outputs the full video in m2ts.
I don't get an error when parsing the HEVC from a small m2ts at least (demuxed with tsMuxer).

If you can get a small sample that fails (for example when extracting RPU, even if there's no Dolby Vision), that's usable too.
chros
Posts: 102
Joined: Sun Sep 20, 2020 8:36 am

Re: Dolby Vision now possible through MP4 Mux.

Post by chros »

That's interesting what you talk about: can I add fake DoVi metadata (e.g. 1000 MDL, 1000 MaxCLL, 300 FALL) into a HDR10 stream, if so how?
(I want to create a small DoVi sample for FireStick 4k from a HDR10 sample to see whether it triggers tv-led or player-led with LG.)
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

chros wrote:
Fri Jul 23, 2021 7:39 pm
That's interesting what you talk about: can I add fake DoVi metadata (e.g. 1000 MDL, 1000 MaxCLL, 300 FALL) into a HDR10 stream, if so how?
(I want to create a small DoVi sample for FireStick 4k from a HDR10 sample to see whether it triggers tv-led or player-led with LG.)
Not currently but I'll make a tracking issue for it..
Feel free to add comments for specific things you might need: https://github.com/quietvoid/dovi_tool/issues/29
RESET_9999
Posts: 2378
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Fri Jul 23, 2021 7:19 pm
Since it's a disc with seamless branching, there's a necessary merge first but I'm not sure if something actually outputs the full video in m2ts.
I don't get an error when parsing the HEVC from a small m2ts at least (demuxed with tsMuxer).

If you can get a small sample that fails (for example when extracting RPU, even if there's no Dolby Vision), that's usable too.
ok , I'll try to make a sample. Otherwise, I can give you a google drive link by PM of the whole ISO.
btw you can demux seamless branching discs straight from the mpls file with tsmuxer. perhaps that's the mistake I did.


EDIT: ok now this is strange... if I make a 1-minute sample, then no more error. but as soon as I'm working with the complete movie, the error comeback.

first is the complete movie, then the 1-minute sample.
Image
quietvoid
Posts: 377
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by quietvoid »

RESET_9999 wrote:
Fri Jul 23, 2021 8:05 pm
EDIT: ok now this is strange... if I make a 1-minute sample, then no more error. but as soon as I'm working with the complete movie, the error comeback.
Can you share the full RPU? The error doesn't seem to be related to the HEVC file..
RESET_9999
Posts: 2378
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

quietvoid wrote:
Fri Jul 23, 2021 8:45 pm
Can you share the full RPU? The error doesn't seem to be related to the HEVC file..
sure, here it is: https://drive.google.com/file/d/19IAyGV ... sp=sharing

mediainfo of the web-dl:

Code: Select all

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.2@Main
HDR format                               : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 1 h 40 min
Bit rate                                 : 22.5 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 0)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.113
Stream size                              : 15.8 GiB (97%)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2020-12-28 16:47:59
Tagged date                              : UTC 2020-12-28 17:25:21
Color range                              : Full
Codec configuration box                  : hvcC+dvcC
Post Reply