Official Dolby Vision MKV spec support

Please post here for issues related to UHD discs
bobbymkV
Posts: 70
Joined: Fri Jun 19, 2020 4:26 pm

Re: Official Dolby Vision MKV spec support

Post by bobbymkV »

chrisandy wrote:
Thu Jun 10, 2021 4:39 am
bobbymkV wrote:
Wed Jun 09, 2021 10:43 pm
chrisandy wrote:
Awesome, thanks for that. Did not realize that ATV only does lossy.

What are you using Spatial Audio on?
I bought Airpods Max just to try it out lol. I've been looking for really good TV headphones for quite awhile now as I have shared walls and this combo did not disappoint, which is good as it just got implemented. Even 5.1 audio sounds really good with spatial audio.
Overdue to try that!

Sorry one more repeat of a question I asked earlier - are the files you are using just single layer .mkv files?
Yes, they would all be single-layer. Mind you I'm just getting back into the Apple TV just for spatial audio, so I don't know much about how to get Dolby Vision working on it. My assumption is it will only work for streaming services or files ripped/pirated from streaming services and played back with Infuse or MrMC.
LGans316
Posts: 71
Joined: Sun Apr 24, 2016 1:05 pm

Re: Official Dolby Vision MKV spec support

Post by LGans316 »

Dumb question.

Does my MKV rip contain Dolby Vision enhancement layer?

Screenshot -> How it looks in MakeMKV latest. It's showing Dolby Vision FEL.

However, MediaInfo doesn't show that (note that the mkv was ripped using lib 1.15.1)

Wondering if the mkv really contains Dolby Vision layer or not?
MakeMkv_1.jpg
MakeMkv_1.jpg (51.04 KiB) Viewed 10090 times

Code: Select all

General
Format                                   : Matroska
Format version                           : Version 2
File size                                : 48.6 GiB
Duration                                 : 1 h 54 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 60.6 Mb/s
Movie name                               : Atomic Blonde
Encoded date                             : UTC 2020-05-20 17:59:05
Writing application                      : MakeMKV v1.15.1 win(x64-release)
Writing library                          : libmakemkv v1.15.1 (1.3.5/1.4.7) win(x64-release)

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 54 min
Bit rate                                 : 54.3 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 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.273
Stream size                              : 43.5 GiB (90%)
Language                                 : English
Default                                  : No
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.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 600 cd/m2
Maximum Frame-Average Light Level        : 487 cd/m2
Original source medium                   : Blu-ray

Audio #1
ID                                       : 2
ID in the original source medium         : 4352 (0x1100)
Format                                   : DTS XLL X
Format/Info                              : Digital Theater Systems
Commercial name                          : DTS-HD Master Audio
Codec ID                                 : A_DTS
Duration                                 : 1 h 54 min
Bit rate mode                            : Variable
Bit rate                                 : 4 671 kb/s
Channel(s)                               : 8 channels
Channel(s)_Original                      : Object Based
ChannelLayout_Original                   : Object Based
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Stream size                              : 3.74 GiB (8%)
Title                                    : Surround 7.1
Language                                 : English
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray

Audio #2
ID                                       : 3
ID in the original source medium         : 4352 (0x1100)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : A_DTS
Duration                                 : 1 h 54 min
Bit rate mode                            : Constant
Bit rate                                 : 1 509 kb/s
Channel(s)                               : 6 channels
Channel layout                           : C L R Ls Rs LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.21 GiB (2%)
Title                                    : Surround 5.1
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Text #1
ID                                       : 4
ID in the original source medium         : 4768 (0x12A0)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 47 min
Bit rate                                 : 31.5 kb/s
Count of elements                        : 2411
Stream size                              : 24.3 MiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Text #2
ID                                       : 6
ID in the original source medium         : 4778 (0x12AA)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 1 h 54 min
Bit rate                                 : 58.6 kb/s
Count of elements                        : 3706
Stream size                              : 47.9 MiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : Blu-ray

Menu
00:00:00.000                             : en:Chapter 01
00:06:48.908                             : en:Chapter 02
00:11:04.163                             : en:Chapter 03
00:18:17.888                             : en:Chapter 04
00:24:16.371                             : en:Chapter 05
00:27:47.832                             : en:Chapter 06
00:32:51.010                             : en:Chapter 07
00:36:20.887                             : en:Chapter 08
00:40:47.153                             : en:Chapter 09
00:47:56.665                             : en:Chapter 10
00:53:14.357                             : en:Chapter 11
00:59:55.091                             : en:Chapter 12
01:03:33.768                             : en:Chapter 13
01:08:04.789                             : en:Chapter 14
01:10:53.332                             : en:Chapter 15
01:18:28.620                             : en:Chapter 16
01:24:29.272                             : en:Chapter 17
01:32:44.934                             : en:Chapter 18
01:42:07.121                             : en:Chapter 19
01:48:22.037                             : en:Chapter 20

Attachments
MakeMkv_MediaInfo.txt
(7.09 KiB) Downloaded 262 times
dcoke22
Posts: 2534
Joined: Wed Jul 22, 2020 11:25 pm

Re: Official Dolby Vision MKV spec support

Post by dcoke22 »

I think you have to re-rip with a newer version of MakeMKV. There was a version that saved the DV data in a non-standard way that subsequent releases of MakeMKV could process and turn into the 'standard' way to store DV in a .mkv file. I don't remember if 1.15.1 is new enough, however. You also have to have a new enough version of Media Info to see the DV data in a .mkv file (20.09 or later: https://mediaarea.net/MediaInfo/ChangeLog). I ripped my copy of Atomic Blonde with 1.15.4:

Code: Select all

General
Format                                   : Matroska
Format version                           : Version 2
File size                                : 48.7 GiB
Duration                                 : 1 h 54 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 60.8 Mb/s
Movie name                               : Atomic Blonde
Encoded date                             : UTC 2021-01-30 17:02:18
Writing application                      : MakeMKV v1.15.4 darwin(x64-release)
Writing library                          : libmakemkv v1.15.4 (1.3.10/1.5.2) darwin(x64-release)

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 54 min
Bit rate                                 : 54.3 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 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.273
Stream size                              : 43.5 GiB (89%)
Language                                 : English
Default                                  : No
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.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 600 cd/m2
Maximum Frame-Average Light Level        : 487 cd/m2
Original source medium                   : Blu-ray
jeromec
Posts: 7
Joined: Sat Jan 09, 2010 5:50 pm

Re: Official Dolby Vision MKV spec support

Post by jeromec »

Just to say that I was able to play a MakeMKV 1.16.3 generated file on my M9702 in Dolby Vision.
Had to remux it to a .ts with tsMuxeR first, which produces a 3% bigger file.

But it's way more convenient than using a full rip (no stupid menus, easier to add subtitles etc.), and it still plays with Infuse on Apple TV 4K (in HDR10), and probably other players too.

Very good news!
narcospablo123
Posts: 21
Joined: Fri Jun 25, 2021 2:02 am

Re: Official Dolby Vision MKV spec support

Post by narcospablo123 »

jeromec wrote:
Thu Jun 24, 2021 12:57 pm
Just to say that I was able to play a MakeMKV 1.16.3 generated file on my M9702 in Dolby Vision.
Had to remux it to a .ts with tsMuxeR first, which produces a 3% bigger file.

But it's way more convenient than using a full rip (no stupid menus, easier to add subtitles etc.), and it still plays with Infuse on Apple TV 4K (in HDR10), and probably other players too.

Very good news!
Hey! I have a chinoppo as well.
I did the exact same thing as you yesterday without seeing your post. How strange.

I think you missed out some steps in your method though. With your method, you lose the dolby atmos lossless track file.
You need to use a program called eac3to to add the dolby atmos track back in before you mux in .ts.
Also did you tick enable HDMV descriptors on tsmuxer when you made the .ts file?

When I did it without ticking, my .ts file was stuttering like crazy on M9702. With it ticked, no problems.
vkmekam
Posts: 2
Joined: Fri Dec 31, 2021 10:53 am

Re: Official Dolby Vision MKV spec support

Post by vkmekam »

MartyMcNuts wrote:
Mon Dec 07, 2020 11:43 pm
EvilWays1 wrote:
Mon Nov 23, 2020 3:05 am
shawnc22 wrote:
Mon Nov 23, 2020 1:58 am
You're doing it right, both layers are stored in the single video track.
Got it. Thanks!

Now, if I want to reduce the overall filesize from ripped from disc size of 48+ GB, can I send the whole MKV file through Handbrake or will I have to separate the layers of the video track and only run the BL through so as to not ruin anything for DV?
I doubt Handbrake can be used for UHD as I don't think it can do HDR. In any case, the layers must be separated as only the BL can be re-encoded.

What I do is:

1. Rip to folder using MakeMKV.
2. Use NVENCC64 command line to re-encode BL, keeping HDR (and HDR10+ metadata if included).
3. Use TSmuxer to create a new copy of the original m2ts file swapping out the original BL for my encoded BL.
4. Open the UHD folder in MakeMKV to create a MKV file with HDR/DV (and HDR10+ if included)


Now, I'm also unsure how well (or if at all) these files play as I currently don't have a TV with Dolby Vision. Hopefully soon!!
This works well thank you. However, I've also been able to extract EL.hevc using ffmpeg from the largest m2ts file and then merge it with a re-encoded BL using yusesope's MUX.bat (beta 4). But this actually produces a larger file size in all cases than if using your TSmuxer/MakeMKV method. Do you know why this would be the case and are we losing FEL in the process somewhere?
MartyMcNuts
Posts: 2434
Joined: Wed Nov 22, 2017 11:45 pm

Re: Official Dolby Vision MKV spec support

Post by MartyMcNuts »

vkmekam wrote:
Sat Jan 01, 2022 7:50 am
MartyMcNuts wrote:
Mon Dec 07, 2020 11:43 pm
EvilWays1 wrote:
Mon Nov 23, 2020 3:05 am


Got it. Thanks!

Now, if I want to reduce the overall filesize from ripped from disc size of 48+ GB, can I send the whole MKV file through Handbrake or will I have to separate the layers of the video track and only run the BL through so as to not ruin anything for DV?
I doubt Handbrake can be used for UHD as I don't think it can do HDR. In any case, the layers must be separated as only the BL can be re-encoded.

What I do is:

1. Rip to folder using MakeMKV.
2. Use NVENCC64 command line to re-encode BL, keeping HDR (and HDR10+ metadata if included).
3. Use TSmuxer to create a new copy of the original m2ts file swapping out the original BL for my encoded BL.
4. Open the UHD folder in MakeMKV to create a MKV file with HDR/DV (and HDR10+ if included)


Now, I'm also unsure how well (or if at all) these files play as I currently don't have a TV with Dolby Vision. Hopefully soon!!
This works well thank you. However, I've also been able to extract EL.hevc using ffmpeg from the largest m2ts file and then merge it with a re-encoded BL using yusesope's MUX.bat (beta 4). But this actually produces a larger file size in all cases than if using your TSmuxer/MakeMKV method. Do you know why this would be the case and are we losing FEL in the process somewhere?
Don't know.
Cheers :D
----------------------------------------------------------------------------------------------------------------------------
For UHD enabled drives (AU/NZ/SG) & DIY Single Drive Flasher (WW): https://www.uhdenableddrives.com
Post Reply