Dolby Vision and 1.15.3

Please post here for issues related to UHD discs
Post Reply
Cannikin
Posts: 175
Joined: Tue Aug 18, 2020 11:54 pm

Re: Dolby Vision and 1.15.3

Post by Cannikin »

jayper wrote:
Wed Oct 07, 2020 1:32 am
I've noticed that triggering DV can be finicky. It seems that if any drives are asleep in my NAS and the drive needs to spin up before the film starts, then only HDR will trigger. After the drive is spinning, it doesn't seem to be an issue.
Yup I've noticed the same thing. I didn't trace it to spinning drives, but just noticed that it sometimes takes a couple of tries to get DV triggered.
eblackadder
Posts: 15
Joined: Mon Mar 16, 2020 8:32 pm

Re: Dolby Vision and 1.15.3

Post by eblackadder »

Thanks a lot for this wonderful program! I am pretty new to this and don't have much knowledge. I ripped several uhd discs with dvd fab so that i've only the movie.
If i'm using this program with those rips it works and makes an mkv with dolby vision. Now i read somewhere that the dolby vision from dvd fab wasn't correct. Is this true? Do i need to re-rip them again from the original or can i use the already ripped movies from DVD-Fab?

Thanks in advanced!
phneutral
Posts: 22
Joined: Wed Oct 07, 2020 6:57 am

Re: Dolby Vision and 1.15.3

Post by phneutral »

Am I missing some vital step here?

I have my mkv file open in mkvtoolnix which has two video layers:

Code: Select all

MPEG-H/HEVC/H.265 VIDEO 3840 x 2160 pixels
MPEG-H/HEVC/H.265 VIDEO 1920 x 1080 pixels
When I open in MakeMKV there is only one layer:

Code: Select all

Track information
Type: Video
Codec: MpegH HEVC Main10@L5.1
Resolution: 3840x2160
Aspect ratio: 16:9
Frame rate: 23.976 (480000/20020)
When I create a new MKV in 1.15.3 I see the same thing. I tried burning a new .iso in tsmuxer and converting m2ts > mkv which does retain the two layers in mkvtoolnix but I still don't see anything in MakeMKV for DV.

The test files work on my Shield and trigger DV, but my new MKV file doesn't. Mkvtoolnix and MakeMKV are on latest versions.

I am sure it's a problem at my end but can't figure out what's wrong? I'm under the impression that the 1920x1080 layer in mkvtoolnix is the DV metadata and 1.15.3 is able to produce a working DV MKV from that.
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision and 1.15.3

Post by jlpsvk »

sooo... am I doing it right?

1) rip UHD BD with MakeMKV 1.15.3... only video
2) rip other tracks I want from UHD BD or BD (add another language)
3) join MKV from MakeMKV with audio and subs with MKVtoolnix 51.0.0
4) ready to go? or i need to run MKV from step 3 again through MakeMKV???
Last edited by jlpsvk on Thu Oct 08, 2020 2:17 pm, edited 1 time in total.
ghostshadow
Posts: 55
Joined: Sun Sep 13, 2020 10:25 am

Re: Dolby Vision and 1.15.3

Post by ghostshadow »

mike admin wrote:
Thu Oct 01, 2020 9:13 pm
Starting from version 1.15.3 MakeMKV can rebuild missing DolbyVision metadata. As of today, this is the only public tool that could do that - even the mp4muxer requires DV profile and BL_compat_level on command line in order to properly build DV descriptors. MakeMKV can now extract this information from a raw bitstream.

What it means, that if you have an MKV file with completely bogus or missing metadata, you can open it with 1.15.3 and produce a correct DV MKV, as long as bitstream is not altered. Even if MKV file is produced by a tool that is unaware of Dolby Vision, as long as bitstream is not corrupted. Most tools keep unknown bitstream data as is.

Also, there is another feature - MakeMKV now recognizes Dolby video codec inside "unsupported" container. With this, one can convert any DV file, from any format to DV MKV. Word of warning - this is rather advanced feature, but you can convert pretty much anything to MKV.

Below are the steps to convert DV MP4 or TS file (or anything else) to DV MKV.

Step 1 - you have to convert a source file into MKV. two commands to do so are:

Code: Select all

ffmpeg -i "$1" -vcodec copy -acodec copy -f matroska "$1_ffmpeg.mkv"
and

Code: Select all

mkvmerge -o "$1_mmg.mkv" "$1"
Depending on the tool, file layout, and the current phase of the moon, you can get one of 3:

1 - HEVC MKV (HEVC video with no DOVI descriptors). Could be played back (without DV) and edited.
2 - crappy MKV - the video codec would be either an MS_FOURCC/dvh? or V_QUICKTIME . No player would play this file and most tools would choke on it.
3 - broken MKV - a variant of (2) with vital metadata destroyed. can really rarely get this with ffmpeg method, the P81 MP4 sample produces this (only when using ffmpeg).
and
4 - DV MKV , that's what new MakeMKV produces.

MakeMKV now can open all 4, extract the raw bitstream and produce a proper DV MKV file. So most of the time workflow would be:

.mp4 -> mkvmerge -> crappy_mkv -> makemkv -> DV_MKV -> mkvmerge -> HEVC_MKV -> makemkv -> DV_MKV

.ts -> ffmpeg -> crappy_mkv -> ...

It is possible to use mkvmerge for .ts sources and ffmpeg for .mp4 sources, but YMMV.
Hello, I have a question:
If we want to encode in x265 we can use MakeMKV as follows:
1. We make a backup of UHD DV with MakeMKV 1.15.3
2. We do a mkv of the main M2TS with MakeMKV 1.15.3 (mkv1.mkv)
3. We extract the video track with FFMPEG from mkv1.mkv (mkv1.hevc)
4. We encode the video track (mkv1.hevc) with x265 (mkv1_x265.hevc)
5. We mux with mkvtoolnix 51 the video x265 (mkv1_x265.hevc) with the mkv made with MakeMKV (mkv1.mkv) by replacing the video of mkv1.mkv by mkv1_x265.hevc (mkv2.mkv).
6. We make an mkvDV with MakeMKV 1.15.3 with the mkv2.mkv file. We get a Dolby Vision mkv


Or
1. We make a backup of UHD DV with MakeMKV 1.15.3
2. We extract the BL tracks of the main M2ts from the backup made with MakeMKV 1.15.3 (BL.hevc) with FFMPEG
3. We encode the BL.hevc file with x265 (BL_x265.hevc).
4. With mkvtoolnix 51 we mux the main M2ts of the backup made with MakeMKV 1.15.3 by replacing the BL track by BL_265.hevc (x265 encode) we obtain mkvDV.mkv
5. We make a valid mkv DV with MakeMKV 1.15.3 from mkvDV.mkf. We get mkvDV_1.mkv

Thank you
Mr_Orange
Posts: 143
Joined: Sun Jul 14, 2019 6:11 am

Re: Dolby Vision and 1.15.3

Post by Mr_Orange »

jlpsvk wrote:
Thu Oct 08, 2020 8:05 am
sooo... am I doing it right?

1) rip UHD BD with MakeMKV 1.15.3... only video
2) rip other tracks I want from UHD BD
3) join MKV from MakeMKV with audio and subs with MKVtoolnix 51.0.0
4) ready to go? or i need to run MKV from step 3 again through MakeMKV???
It's much easier than that:

1) Rip with MakeMKV 1.15.3.
jdlavoie
Posts: 1
Joined: Thu Oct 08, 2020 11:27 am

Re: Dolby Vision and 1.15.3

Post by jdlavoie »

What if I already have remuxed mkv files and want to add the DV layer?

Can I somehow grab the DV layer file and add it back in using the latest make mkv?
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision and 1.15.3

Post by jlpsvk »

Mr_Orange wrote:
Thu Oct 08, 2020 11:13 am
jlpsvk wrote:
Thu Oct 08, 2020 8:05 am
sooo... am I doing it right?

1) rip UHD BD with MakeMKV 1.15.3... only video
2) rip other tracks I want from UHD BD
3) join MKV from MakeMKV with audio and subs with MKVtoolnix 51.0.0
4) ready to go? or i need to run MKV from step 3 again through MakeMKV???
It's much easier than that:

1) Rip with MakeMKV 1.15.3.
No... when you want to add additional audio tracks, which are not on the source.. :( ie., i own star wars on bluray and also on UHD... my language is not on UHD, so I want to add my audio language to remux, to store it on NAS.
Mr_Orange
Posts: 143
Joined: Sun Jul 14, 2019 6:11 am

Re: Dolby Vision and 1.15.3

Post by Mr_Orange »

jlpsvk wrote:
Thu Oct 08, 2020 12:06 pm
Mr_Orange wrote:
Thu Oct 08, 2020 11:13 am
jlpsvk wrote:
Thu Oct 08, 2020 8:05 am
sooo... am I doing it right?

1) rip UHD BD with MakeMKV 1.15.3... only video
2) rip other tracks I want from UHD BD
3) join MKV from MakeMKV with audio and subs with MKVtoolnix 51.0.0
4) ready to go? or i need to run MKV from step 3 again through MakeMKV???
It's much easier than that:

1) Rip with MakeMKV 1.15.3.
No... when you want to add additional audio tracks, which are not on the source.. :( ie., i own star wars on bluray and also on UHD... my language is not on UHD, so I want to add my audio language to remux, to store it on NAS.
Well, you didn't say that in your OP.
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision and 1.15.3

Post by jlpsvk »

Mr_Orange wrote:
Thu Oct 08, 2020 12:13 pm
jlpsvk wrote:
Thu Oct 08, 2020 12:06 pm
Mr_Orange wrote:
Thu Oct 08, 2020 11:13 am


It's much easier than that:

1) Rip with MakeMKV 1.15.3.
No... when you want to add additional audio tracks, which are not on the source.. :( ie., i own star wars on bluray and also on UHD... my language is not on UHD, so I want to add my audio language to remux, to store it on NAS.
Well, you didn't say that in your OP.
you're right... but question remains... if I create video MKV with MakeMKV first, then add track in MKVtoolnix 51 (which should preserve metadata), do I need to re-remux that MKV from MKVtoolnix with MakeMKV or not? Hope that MediaInfo will be updated soon, so I can check.. :)
quietvoid
Posts: 371
Joined: Sun Apr 19, 2020 4:15 pm

Re: Dolby Vision and 1.15.3

Post by quietvoid »

jlpsvk wrote:
Thu Oct 08, 2020 2:18 pm
you're right... but question remains... if I create video MKV with MakeMKV first, then add track in MKVtoolnix 51 (which should preserve metadata), do I need to re-remux that MKV from MKVtoolnix with MakeMKV or not? Hope that MediaInfo will be updated soon, so I can check.. :)
Not necessary, mkvmerge keeps the info.
shawnc22
Posts: 636
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision and 1.15.3

Post by shawnc22 »

phneutral wrote:
Thu Oct 08, 2020 6:33 am
Am I missing some vital step here?

I have my mkv file open in mkvtoolnix which has two video layers:

Code: Select all

MPEG-H/HEVC/H.265 VIDEO 3840 x 2160 pixels
MPEG-H/HEVC/H.265 VIDEO 1920 x 1080 pixels
When I open in MakeMKV there is only one layer:

Code: Select all

Track information
Type: Video
Codec: MpegH HEVC Main10@L5.1
Resolution: 3840x2160
Aspect ratio: 16:9
Frame rate: 23.976 (480000/20020)
When I create a new MKV in 1.15.3 I see the same thing. I tried burning a new .iso in tsmuxer and converting m2ts > mkv which does retain the two layers in mkvtoolnix but I still don't see anything in MakeMKV for DV.

The test files work on my Shield and trigger DV, but my new MKV file doesn't. Mkvtoolnix and MakeMKV are on latest versions.

I am sure it's a problem at my end but can't figure out what's wrong? I'm under the impression that the 1920x1080 layer in mkvtoolnix is the DV metadata and 1.15.3 is able to produce a working DV MKV from that.
viewtopic.php?f=12&t=23306&start=30#p97217
phneutral
Posts: 22
Joined: Wed Oct 07, 2020 6:57 am

Re: Dolby Vision and 1.15.3

Post by phneutral »

shawnc22 wrote:
Thu Oct 08, 2020 3:52 pm
phneutral wrote:
Thu Oct 08, 2020 6:33 am
Am I missing some vital step here?

I have my mkv file open in mkvtoolnix which has two video layers:

Code: Select all

MPEG-H/HEVC/H.265 VIDEO 3840 x 2160 pixels
MPEG-H/HEVC/H.265 VIDEO 1920 x 1080 pixels
When I open in MakeMKV there is only one layer:

Code: Select all

Track information
Type: Video
Codec: MpegH HEVC Main10@L5.1
Resolution: 3840x2160
Aspect ratio: 16:9
Frame rate: 23.976 (480000/20020)
When I create a new MKV in 1.15.3 I see the same thing. I tried burning a new .iso in tsmuxer and converting m2ts > mkv which does retain the two layers in mkvtoolnix but I still don't see anything in MakeMKV for DV.

The test files work on my Shield and trigger DV, but my new MKV file doesn't. Mkvtoolnix and MakeMKV are on latest versions.

I am sure it's a problem at my end but can't figure out what's wrong? I'm under the impression that the 1920x1080 layer in mkvtoolnix is the DV metadata and 1.15.3 is able to produce a working DV MKV from that.
viewtopic.php?f=12&t=23306&start=30#p97217
I actually tried your method 1 - that's why I mentioned the iso - it doesn't work. I will try Yusecope's tool. Even if those workarounds do work, it seems rather at odds with the OP, no?
shawnc22
Posts: 636
Joined: Tue Jan 21, 2020 7:40 am

Re: Dolby Vision and 1.15.3

Post by shawnc22 »

phneutral wrote:
Thu Oct 08, 2020 4:14 pm
shawnc22 wrote:
Thu Oct 08, 2020 3:52 pm
phneutral wrote:
Thu Oct 08, 2020 6:33 am
Am I missing some vital step here?

I have my mkv file open in mkvtoolnix which has two video layers:

Code: Select all

MPEG-H/HEVC/H.265 VIDEO 3840 x 2160 pixels
MPEG-H/HEVC/H.265 VIDEO 1920 x 1080 pixels
When I open in MakeMKV there is only one layer:

Code: Select all

Track information
Type: Video
Codec: MpegH HEVC Main10@L5.1
Resolution: 3840x2160
Aspect ratio: 16:9
Frame rate: 23.976 (480000/20020)
When I create a new MKV in 1.15.3 I see the same thing. I tried burning a new .iso in tsmuxer and converting m2ts > mkv which does retain the two layers in mkvtoolnix but I still don't see anything in MakeMKV for DV.

The test files work on my Shield and trigger DV, but my new MKV file doesn't. Mkvtoolnix and MakeMKV are on latest versions.

I am sure it's a problem at my end but can't figure out what's wrong? I'm under the impression that the 1920x1080 layer in mkvtoolnix is the DV metadata and 1.15.3 is able to produce a working DV MKV from that.
viewtopic.php?f=12&t=23306&start=30#p97217
I actually tried your method 1 - that's why I mentioned the iso - it doesn't work. I will try Yusecope's tool. Even if those workarounds do work, it seems rather at odds with the OP, no?
when you open your mounted iso (not mkv) in makemkv, does it not detect DV at all?
jlpsvk
Posts: 50
Joined: Thu Sep 06, 2018 11:33 am

Re: Dolby Vision and 1.15.3

Post by jlpsvk »

good news from github... new version of mediainfo should be release tommorow... DV in MKV will be supported and detected. :)
Post Reply