Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
jayper
Posts: 331
Joined: Sat Sep 29, 2012 5:57 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by jayper »

DaMacFunkin wrote:
Tue Mar 22, 2022 5:58 am
RESET_9999 wrote:
Mon Mar 21, 2022 2:18 pm
jayper wrote:
Mon Mar 21, 2022 2:13 pm
I appreciate your responding and all the time you've put into this thread and the tools! Much appreciated.

I am still a bit confused... Perhaps I'm misinterpreting things, but the version I have is cropped, meaning there are no black bars in the web-dl. The resolution is 3840x1606. I just demuxed it again and extracted the RPU, and when reading the RPU there is L5 section and no active area offsets. Perhaps I am missing something, or I got a bad release? Thanks again.
Ah I didnt know there was another p5 web-dl version. Then yes you have to edit L5.

the webdl i was talking about:

Code: Select all

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 : 2 h 36 min
Bit rate : 23.2 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (23976/1000) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 0)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.117
Stream size : 25.3 GiB (97%)
Default : Yes
Alternate group : 1
Encoded date : UTC 2022-03-02 18:06:45
Tagged date : UTC 2022-03-02 18:13:15
Color range : Full
Codec configuration box : hvcC+dvcC
The web-dl I have needs a cut at the beginning to match the length of the UHD BD but I haven’t had time to work out how much to cut and how best to do it.
Open both the web-dl and the HDR10 mkv (made with MakeMKV) in StaxRip. Then preview both versions of the film. Find the exact same frame in the film, in both files, and note which number of the frame it is frame for each version. If the web-dl is longer, subtract the total frames from the UHD/mkv from the total frames of the web-dl. Write this number down. You will use this number to remove frames from the web-dl, but note, that frame removal is inclusive so you must enter the number that is one less than the frame difference you calculated. So, if for example: [Frame number of web-dl] - [Frame number of UHD/mkv] = difference in frames. Then you take this number and subtract one.

There was a tutorial video that was shared that outlined the process, check it out here: https://drive.google.com/drive/u/0/fold ... nKkuCEGqg4

Please note, in that video, frames are being ADDED. Your process will be roughly the same, except you will be choosing to add frames rather than remove them.
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

rosavanwinkle wrote:
Tue Mar 22, 2022 11:42 am
Your tool worked perfect in combination with your video thank you very much.
i do have one question that might be a hardware issue or setting on my end i messed up
playing the movie with truehd will not activate the dolby vision,it goes to hdr,but when i select the ac-3 audio layer it will use dolby vision
I don't know... what container did you use? shield? which app...

last time I checked, MKV DV + TrueHD works on PLEX/Shield.

jayper wrote:
Tue Mar 22, 2022 2:23 pm
There was a tutorial video that was shared that outlined the process, check it out here: https://drive.google.com/drive/u/0/fold ... nKkuCEGqg4
I'll redo that video because it is outdated and there is an error in it... I treated the frame duplication as inclusive when it's not. Only the frames removal is inclusive.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
rosavanwinkle
Posts: 71
Joined: Fri Aug 09, 2019 11:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by rosavanwinkle »

RESET_9999 wrote:
Tue Mar 22, 2022 4:16 pm
rosavanwinkle wrote:
Tue Mar 22, 2022 11:42 am
Your tool worked perfect in combination with your video thank you very much.
i do have one question that might be a hardware issue or setting on my end i messed up
playing the movie with truehd will not activate the dolby vision,it goes to hdr,but when i select the ac-3 audio layer it will use dolby vision
I don't know... what container did you use? shield? which app...

last time I checked, MKV DV + TrueHD works on PLEX/Shield.
i use the plex app straight from the android store,server is on a seedbox but even on my normal pc plex server it uses hdr with truehd,maybe its a setting i wronged in either mkvtoolnix,plex server settings/plex player settings
Mediaplayer: Nvidia Shield TV Pro
TV: LG 55SK7900PLA
Soundbar: LG SK8 (not LG SK8Y)
plex pass user
Discord:Rosa#1111
Obliver
Posts: 3
Joined: Tue Mar 22, 2022 11:42 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Obliver »

Hello, I've been trying to use @RESET_9999 's script to convert a P7 DT-DL Blu Ray (Game of Thrones new DV BD set) into P8 + DDP_1536kbps with this option. Thing is, I think it's failing because the files have their #1 audio track as DD and the #2 one as THD w/ Atmos, instead of being the other way around. Here's a snap of from mediainfo.

Now, I think in order to fix this I would just need to swap around the track number that the script points to. But I don't really know what exactly it is I need to change, although I've figured it must be somewhere in this part.

Could anyone give me a hand with this?

Also wanted to check if this would be the easiest way to convert these files in order to play them with DV on the Plex app of my LG C1 OLED.

Thanks!
Last edited by Obliver on Wed Mar 23, 2022 2:23 am, edited 1 time in total.
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Obliver wrote:
Wed Mar 23, 2022 12:07 am
Hello, I've been trying to use @RESET_9999 's script to convert a P7 DT-DL Blu Ray (Game of Thrones new DV BD set) into P8 + DDP_1536kbps with this option. Thing is, I think it's failing because the files have their #1 audio track as DD and the #2 one as THD w/ Atmos, instead of being the other way around. Here's a snap of from mediainfo.
Thanks!
Yes, my script expects a TrueHD audio as track number 3 and it doesnt even work with the DTS fam . I will add more audio support eventually.

Because the script use tsmuxer to demux bluray disc , it's a bit tricky to make the change here. I'm looking at maybe switching to DGdemux.

You could rip all the episodes to MKV P7 + atmos and then use the "Workflow.2= P7 ST-DL to P8 + DDP_1536kbps"
Obliver wrote:
Wed Mar 23, 2022 12:07 am
Also wanted to check if this would be the easiest way to convert this files in order to play them with DV on the Plex app of my LG C1 OLED.
Yep, P8 + DDP 1536kbps is the way to go on LG OLED TVs
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
ArArdin
Posts: 196
Joined: Fri Nov 20, 2020 1:40 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by ArArdin »

For our convenience, Rocky has built thdmerge into latest DGDemux 1.0.0.60. After demux you'll have gap-processed thd, ac3 and thd+ac3 tracks. It obviously hasn't the "Do not split THD" option anymore. Gap-processed THD+AC3 is not a one-pass run; after having gap-processed and demuxing the elementary streams, during a second run the ac3 and thd will be interleaved.

Of course the cli tool thdmerge.exe will still be at our disposal for manually interleaving any ac3 with thd. Which latest version you'll find in the DGDemux download.

http://rationalqm.us/dgdemux/binaries/
DaMacFunkin
Posts: 312
Joined: Tue Oct 30, 2018 4:17 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by DaMacFunkin »

RESET_9999 wrote:
Tue Mar 22, 2022 4:16 pm
rosavanwinkle wrote:
Tue Mar 22, 2022 11:42 am
Your tool worked perfect in combination with your video thank you very much.
i do have one question that might be a hardware issue or setting on my end i messed up
playing the movie with truehd will not activate the dolby vision,it goes to hdr,but when i select the ac-3 audio layer it will use dolby vision
I don't know... what container did you use? shield? which app...

last time I checked, MKV DV + TrueHD works on PLEX/Shield.

jayper wrote:
Tue Mar 22, 2022 2:23 pm
There was a tutorial video that was shared that outlined the process, check it out here: https://drive.google.com/drive/u/0/fold ... nKkuCEGqg4
I'll redo that video because it is outdated and there is an error in it... I treated the frame duplication as inclusive when it's not. Only the frames removal is inclusive.
I’ve tried this as per the video but I get the error invalid MKV, no other information. The p7 is muxed by makemkv from the UHD and the P5 is a d I s n e y Webdl.

Is there a detailed log I can produce?

Thank you.
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

DaMacFunkin wrote:
Wed Mar 23, 2022 4:21 pm
I’ve tried this as per the video but I get the error invalid MKV, no other information. The p7 is muxed by makemkv from the UHD and the P5 is a d I s n e y Webdl.
Is there a detailed log I can produce?
Thank you.
Which workflow exactly ? there could be a typo.
Also, if you select a workflow that converts THD and your mkv doesn't contain THD, it will fail.

but why do you want to inject DV if your bluray remux is P7 ?
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Obliver
Posts: 3
Joined: Tue Mar 22, 2022 11:42 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Obliver »

I've tried going from a DT-DL Bluray MPLS to MP4 P8 DDP 1536 kbps but Plex app won't recognize it. Workflow is DT-DL Bluray > HEVC P7 SL DL (yuseope) > MKV mux P7 ST DL with Atmos THD > MP4 P8 with DDP 1536 kbps.

This is the end file:

Code: Select all

General
Complete name                            : P:\Test\00800_ST-DL_DoVi.sub.au.mp4
Format                                   : mp43
Codec ID                                 : mp43 (isom/mp43/dby1)
File size                                : 23.0 GiB
Duration                                 : 1 h 1 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 53.3 Mb/s
Encoded date                             : UTC 2022-03-23 15:43:39
Tagged date                              : UTC 2022-03-23 15:43:39
Writing application                      : GPAC-1.1.0-DEV-rev1027-g1daa0b5f-master

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.08.06, BL+RPU / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : dvhe
Codec ID/Info                            : High Efficiency Video Coding with Dolby Vision
Duration                                 : 1 h 1 min
Bit rate                                 : 51.8 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.260
Stream size                              : 22.3 GiB (97%)
Default                                  : No
Encoded date                             : UTC 2022-03-23 15:32:04
Tagged date                              : UTC 2022-03-23 15:53:06
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0020 cd/m2, max: 1000 cd/m2
Codec configuration box                  : hvcC+dvcC

Audio
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : ec-3
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Maximum bit rate                         : 1 622 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 62.500 FPS (768 SPF)
Compression mode                         : Lossy
Stream size                              : 678 MiB (3%)
Service kind                             : Complete Main
Default                                  : No
Encoded date                             : UTC 2022-03-23 15:32:04
Tagged date                              : UTC 2022-03-23 15:53:06

Text
ID                                       : 3
Format                                   : Timed Text
Codec ID                                 : tx3g
Duration                                 : 1 h 0 min
Bit rate mode                            : Variable
Bit rate                                 : 44 b/s
Stream size                              : 19.3 KiB (0%)
Title                                    : srt@GPAC1.1.0-DEV-rev1027-g1daa0b5f-master
Forced                                   : No
Encoded date                             : UTC 2022-03-23 15:53:06
Tagged date                              : UTC 2022-03-23 15:53:06

Does it have to do with the dvhe codec? The following file from the same initial BD with hev1 codec gets recognized fine by Plex:

Code: Select all

General
Complete name                            : P:\Backup\S01E01 - Winter is Coming.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/dby1/isom)
File size                                : 22.6 GiB
Duration                                 : 1 h 1 min
Overall bit rate                         : 52.4 Mb/s
Encoded date                             : UTC 2022-03-09 05:28:08
Tagged date                              : UTC 2022-03-09 05:28:08

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.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 1 h 1 min
Bit rate                                 : 51.8 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.260
Stream size                              : 22.3 GiB (99%)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2022-03-09 05:28:08
Tagged date                              : UTC 2022-03-09 05:28:08
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0020 cd/m2, max: 1000 cd/m2
Codec configuration box                  : hvcC+dvvC

Audio
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : ec-3
Duration                                 : 1 h 1 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                              : 282 MiB (1%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Alternate group                          : 2
Encoded date                             : UTC 2022-03-09 05:28:08
Tagged date                              : UTC 2022-03-09 05:28:08

How can I get Plex to recognize them? T_T
Or at least is there a script to go from that Bluray DT-DL to the MP4 with hev1 codec that's recognized by Plex?
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Obliver wrote:
Wed Mar 23, 2022 4:49 pm
Or at least is there a script to go from that Bluray DT-DL to the MP4 with hev1 codec that's recognized by Plex?
quite possible, I don't use the mp4 container because I think it's garbage so I didn't really test playback on my C8... I know the newer versions of the mp4muxer doesnt work but im using the old version that is supposed to work.
I recommend TS container with external srt subs. Rename same as your ts and add tag in the filename such as ENG.FORCED and plex will pick it up.
Obliver wrote:
Wed Mar 23, 2022 4:49 pm
I've tried going from a DT-DL Bluray MPLS to MP4 P8 DDP 1536 kbps but Plex app won't recognize it. Workflow is DT-DL Bluray > HEVC P7 SL DL (yuseope) > MKV mux P7 ST DL with Atmos THD > MP4 P8 with DDP 1536 kbps.
woah, that's a lot of remuxing for nothing. You can just use " mp4 mode SL , Workflow.4= MPLS P7 bluray to P8 + EAC3 + SRT subtitles "

BTW, I've tested DGdemux for MPLS input and the next release should be able to convert any TrueHD or DTS track regardless of the track ID.
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Obliver
Posts: 3
Joined: Tue Mar 22, 2022 11:42 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Obliver »

RESET_9999 wrote:
Wed Mar 23, 2022 5:26 pm
woah, that's a lot of remuxing for nothing. You can just use " mp4 mode SL , Workflow.4= MPLS P7 bluray to P8 + EAC3 + SRT subtitles "
I've tried using that one, but it always give me the following error of "can't open file". This is with Workflow.3= MPLS P7 bluray to P8 + EAC3 (but it should be the same as the other one, minus the SRT right?).
I'm attaching the .m2ts mediainfo from the original BD STREAM folder after this, just in case.

Code: Select all

                                      ****************************
                                      * DoVi_Scripts @RESET_9999 *
                                      ****************************
.
***************************************************************************************************************
 *The output folder by default is the "Dolby-Vision-Tools" Folder, you can change it by editing this bat file
 *Do not move the bat file out of the "Dolby-Vision-Tools" Folder
 *Select a mode, a workflow. Drag and drop an input file and wait...
***************************************************************************************************************
.
                                           *****************
                                           * CHOOSE A MODE *
                                           *****************
.
Main Menu
1) MODE.XP= XML and RPU injector
2) MODE.P5= Profile 5 to Profile 8 injector
3) MODE.P7= Profile 7 conversion/muxing/demuxing/injector
4) MODE.H=  HDR10plus to DoVi maker
5) MODE.B=  Batch muxer: MKV to TS (DV/DD+/SUB)
6) MODE.R=  Read/Info/Remover/and more
7) MODE.M=  MadVR HDR10 to DoVi maker
8) MODE.M4= MP4_muxer(p5/P8/P7)
9) Exit

Choice? [1,2,3,4,5,6,7,8,9]?8
                                           *****************
                                           * CHOOSE A MODE *
                                           *****************
.
Ma
1) MODE.1= single-track (p5, p8, p7)
2) MODE.2= dual-track (p7)
3) MODE.3= Demuxer (p5, p8, p7)
4) MODE.4 = back to main menu

Choice? [1,2,3,4]?1
----------- CHOOSE A WORKFLOW --------------------------------------------------------------------------------------------
1) Workflow.1= HEVC + AC3/EAC3 + SRT subtitle
2) Workflow.2= HEVC + AC3/EAC3
3) Workflow.3= MPLS P7 bluray to P8 + EAC3
4) Workflow.4= MPLS P7 bluray to P8 + EAC3 + SRT subtitles
5) Workflow.5= MKV P7 to P8 + EAC3 + SRT subtitles
6) Workflow.6= back to main menu

Choice? [1,2,3,4,5,6]?3
Drag and drop your BD folder and press enter..."P:\TV Shows\Game of Thrones\Game.of.Thrones.S01.2160p.BluRay.HEVC.TrueHD.7.1.Atmos-HDBEE\DISC1\BDMV"
DGDemux 1.0.0.59 by Donald A. Graft
Copyright (C) 2019-2021 Donald A. Graft, All Rights Reserved [Made in USA]

PlayLists:
00800.mpls 01:01:40 [10 chapters]
00802.mpls 00:57:17 [10 chapters]
00801.mpls 00:55:20 [10 chapters]
Drag and drop the main movie MPLS and press enter..."P:\TV Shows\Game of Thrones\Game.of.Thrones.S01.2160p.BluRay.HEVC.TrueHD.7.1.Atmos-HDBEE\DISC1\BDMV\PLAYLIST\00800.mpls"
demuxing bluray MPLS
tsMuxeR version git-f4fa419. github.com/justdan96/tsMuxer
Can't open file: "P:\TV Shows\Game of Thrones\Game.of.Thrones.S01.2160p.BluRay.HEVC.TrueHD.7.1.Atmos-HDBEE\DISC1\BDMV\PLAYLIST\00800.mpls"
extracting and converting profile 7 to profile 8
Error: Input file doesn't exist.
Press a key to continue . . .
injecting profile 8 into BL
Pesss a key to continue . . .
mkvmerge v66.0.0 ('Josie') 64-bit
Error: The file 'P:\Dolby-Vision-Tools\00800.track_4352_eng.ac3+thd' could not be opened for reading: open file error.
Couldn't find P:\Dolby-Vision-Tools\00800.track_4352_eng.ac3+thd
encoding lossless audio to DD+ 1536kbps
Error: Unknown mode 'P:\Dolby-Vision-Tools\00800_EC3.mkv'.
muxing into a MP4 profile 8 DoVi file. Be patient, it can take a while. 40min+ on slow HDD!!!
ERROR! Can't open input file: P:\Dolby-Vision-Tools\P8.hevc
Error parsing command line!
Couldn't find P:\Dolby-Vision-Tools\00800.track_4113_und.hevc
Couldn't find P:\Dolby-Vision-Tools\00800.track_4117_und.hevc
Couldn't find P:\Dolby-Vision-Tools\00800_EC3.mkv
Couldn't find P:\Dolby-Vision-Tools\P8.hevc
Couldn't find P:\Dolby-Vision-Tools\audio.ec3
Couldn't find P:\Dolby-Vision-Tools\rpu.bin
Couldn't find P:\Dolby-Vision-Tools\THD.mkv
the script has completed...
Press a key to continue . . .

Code: Select all

General
ID                                       : 0 (0x0)
Complete name                            : P:\TV Shows\Game of Thrones\Game.of.Thrones.S01.2160p.BluRay.HEVC.TrueHD.7.1.Atmos-HDBEE\DISC1\BDMV\STREAM\00045.m2ts
Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 31.5 GiB
Duration                                 : 1 h 1 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 73.0 Mb/s
Maximum Overall bit rate                 : 109 Mb/s

Video #1
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 1 h 1 min
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0020 cd/m2, max: 1000 cd/m2

Video #2
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : 36
Duration                                 : 1 h 1 min
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0020 cd/m2, max: 1000 cd/m2

Audio #1
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 1 h 1 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
Delay relative to video                  : 2 s 2 ms
Stream size                              : 282 MiB (1%)
Service kind                             : Complete Main

Audio #2
ID                                       : 4353 (0x1101)
Menu ID                                  : 1 (0x1)
Format                                   : MLP FBA AC-3 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Format settings                          : Dolby Surround EX
Muxing mode                              : Stream extension
Codec ID                                 : 131
Duration                                 : 1 h 1 min
Bit rate mode                            : Variable
Bit rate                                 : 640 kb/s
Maximum bit rate                         : 7 887 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossless
Stream size                              : 282 MiB (1%)
Service kind                             : Complete Main
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Audio #3
ID                                       : 4354 (0x1102)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 448 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
Delay relative to video                  : 2 s 2 ms
Stream size                              : 198 MiB (1%)
Service kind                             : Complete Main

Audio #4
ID                                       : 4355 (0x1103)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Format settings                          : Dolby Surround
Codec ID                                 : 129
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Delay relative to video                  : 2 s 2 ms
Stream size                              : 113 MiB (0%)
Service kind                             : Complete Main

Audio #5
ID                                       : 4356 (0x1104)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 448 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
Delay relative to video                  : 2 s 2 ms
Stream size                              : 198 MiB (1%)
Service kind                             : Complete Main

Audio #6
ID                                       : 4357 (0x1105)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 448 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
Delay relative to video                  : 2 s 2 ms
Stream size                              : 198 MiB (1%)
Service kind                             : Complete Main

Audio #7
ID                                       : 4358 (0x1106)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 448 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
Delay relative to video                  : 2 s 2 ms
Stream size                              : 198 MiB (1%)
Service kind                             : Complete Main

Audio #8
ID                                       : 4359 (0x1107)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : 130
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Channel(s)                               : 2 channels
Channel layout                           : Lt Rt
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Delay relative to video                  : 2 s 2 ms
Stream size                              : 339 MiB (1%)

Audio #9
ID                                       : 4360 (0x1108)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : 130
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Channel(s)                               : 2 channels
Channel layout                           : Lt Rt
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Delay relative to video                  : 2 s 2 ms
Stream size                              : 339 MiB (1%)

Audio #10
ID                                       : 4361 (0x1109)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : 130
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Channel(s)                               : 2 channels
Channel layout                           : Lt Rt
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Delay relative to video                  : 2 s 2 ms
Stream size                              : 339 MiB (1%)

Audio #11
ID                                       : 4362 (0x110A)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : 130
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Channel(s)                               : 2 channels
Channel layout                           : Lt Rt
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Delay relative to video                  : 2 s 2 ms
Stream size                              : 339 MiB (1%)

Audio #12
ID                                       : 4363 (0x110B)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : 130
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 768 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
Delay relative to video                  : 2 s 2 ms
Stream size                              : 339 MiB (1%)

Audio #13
ID                                       : 4364 (0x110C)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 1 h 1 min
Bit rate mode                            : Constant
Bit rate                                 : 448 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
Delay relative to video                  : 2 s 2 ms
Stream size                              : 198 MiB (1%)
Service kind                             : Complete Main

Text #1
ID                                       : 4768 (0x12A0)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144
Delay relative to video                  : 12 s 554 ms

Text #2
ID                                       : 4769 (0x12A1)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #3
ID                                       : 4770 (0x12A2)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #4
ID                                       : 4771 (0x12A3)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #5
ID                                       : 4772 (0x12A4)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #6
ID                                       : 4773 (0x12A5)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144
Delay relative to video                  : 12 s 554 ms

Text #7
ID                                       : 4774 (0x12A6)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #8
ID                                       : 4775 (0x12A7)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #9
ID                                       : 4776 (0x12A8)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #10
ID                                       : 4777 (0x12A9)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #11
ID                                       : 4778 (0x12AA)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #12
ID                                       : 4779 (0x12AB)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #13
ID                                       : 4780 (0x12AC)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #14
ID                                       : 4781 (0x12AD)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #15
ID                                       : 4782 (0x12AE)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #16
ID                                       : 4783 (0x12AF)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #17
ID                                       : 4784 (0x12B0)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #18
ID                                       : 4785 (0x12B1)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #19
ID                                       : 4786 (0x12B2)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #20
ID                                       : 4787 (0x12B3)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #21
ID                                       : 4788 (0x12B4)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #22
ID                                       : 4789 (0x12B5)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #23
ID                                       : 4790 (0x12B6)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #24
ID                                       : 4791 (0x12B7)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #25
ID                                       : 4792 (0x12B8)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144

Text #26
ID                                       : 4793 (0x12B9)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144
el_juan
Posts: 6
Joined: Mon Feb 21, 2022 8:48 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by el_juan »

Hi

I might be doing something wrong because when I use the tools that RESET_9999 has provided I get a smaller file size with the injected RPU than without.

I take a DV WEB-DL extract the .hevc file change the profile from 5 to 8 to get the RPU file, and then edit the active area in the RPU (no need to change the frames in this movie) then inject the newly generated RPU file in to the HDR10 REMUX .hevc file.

After that I take the HDR10 REMUX that has been made by another group and in mkvtoolnix I ONLY change the video part with the new injected .hevc.

But in the end the REMUX that only has HDR10 is still bigger than my HDR10 & DV version, can anyone explain this? The file has the same subs, audio formats and chapters.
Running the newest version of mkvmerge and dovi_tool

Example:
HDR: 49,3 GB (52.951.641.749 bytes)
HYBRiD: 49,2 GB (52.925.182.938 bytes)

Hope something can help me explain what i am doing wrong..
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

el_juan wrote:
Wed Mar 23, 2022 6:31 pm
I take a DV WEB-DL extract the .hevc file change the profile from 5 to 8 to get the RPU file, and then edit the active area in the RPU (no need to change the frames in this movie) then inject the newly generated RPU file in to the HDR10 REMUX .hevc file.
Are you doing all of this manually? if yes, you don't have to. Just drag and drop your mkv/mp4 and let the script do everything.

I just checked Mode P5 to P8 no frame adj. / Workflow 2 (manual L5) and the filesize is as expected...

Image
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
rosavanwinkle
Posts: 71
Joined: Fri Aug 09, 2019 11:10 am

Re: Dolby Vision now possible through MP4 Mux.

Post by rosavanwinkle »

Anyone by any chance has a profile 8.1 file test clip with truehd (6 channels) and dolby vision? they know that works on shield tv pro? either im doing something wrong in mkvtoolnix or my settings are wrong somewhere else cause the file only plays hdr10 when truehd is active,and dolby vision with ac3

i followed the video guide https://www.youtube.com/watch?v=hUAeltL62s8 he provided to the bone...
Mediaplayer: Nvidia Shield TV Pro
TV: LG 55SK7900PLA
Soundbar: LG SK8 (not LG SK8Y)
plex pass user
Discord:Rosa#1111
RESET_9999
Posts: 2411
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

rosavanwinkle wrote:
Wed Mar 23, 2022 7:24 pm
Anyone by any chance has a profile 8.1 file test clip with truehd (6 channels) and dolby vision? they know that works on shield tv pro? either im doing something wrong in mkvtoolnix or my settings are wrong somewhere else cause the file only plays hdr10 when truehd is active,and dolby vision with ac3
i followed the video guide https://www.youtube.com/watch?v=hUAeltL62s8 he provided to the bone...
I just tested my Shield and MKV/TS p8 + atmos file created by my script are working. Are you using mkvtoolnix or tsmuxer included in my tools pack?

Obliver wrote:
Wed Mar 23, 2022 5:55 pm
I've tried using that one, but it always give me the following error of "can't open file". This is with Workflow.3= MPLS P7 bluray to P8 + EAC3 (but it should be the same as the other one, minus the SRT right?).
I'm attaching the .m2ts mediainfo from the original BD STREAM folder after this, just in case.
yep because track #3 is not TrueHD. It will work in Version 1.1.3.

or you can test this code right now... just overwrite the bloc Workflow.1= P7 Bluray MPLS to P8 + DDP_1536kbps

Code: Select all

 ::--------------------------------------------------------------------MODE.1.Workflow.1--------------------------------------------------------------------------------------------------------------------
:Workflow.1
::P7 Bluray MPLS to P8 + DDP_1536kbps
MD %output_path%TEMP\
set "TEMP=%output_path%TEMP\
echo -------------------------------------------------------------------------------------------------------------
echo --This workflow will convert a dual layer bluray MPLS to profile 8 and convert lossless audio to DD+ 1536kbps
echo -------------------------------------------------------------------------------------------------------------
 @echo off
 set /p BD_path=Drag and drop your BD folder and press enter...
cd C:\%UserInputPath%
%DGDemux_path% -d %BD_path%
set /p mpls_path=Drag and drop the main movie MPLS and press enter...
cd C:\%UserInputPath%

:: demux
%DGDemux_path% -i %mpls_path% -o %TEMP%

for %%f  in (%mpls_path%) do set "playlist.name_path=%%~nf
FOR /R %TEMP% %%G IN (*eng*.thd) do set "thd=%%~nG
FOR /R %TEMP% %%D IN (*eng*.dts) do set "dts=%%~nD
FOR /R %TEMP% %%B IN (*1011*.265) do set "BL=%%~nB
FOR /R %TEMP% %%E IN (*1015*.265) do set "EL=%%~nE
if exist "%TEMP%%thd:~0,33%.thd" rename "%TEMP%%thd:~0,34%.thd" "en.thd"
if exist "%TEMP%%dts:~0,43%.dts" rename "%TEMP%%dts:~0,43%.dts" "en.dts"
rename "%TEMP%%BL:~0,9%.265" "BL.hevc"
rename "%TEMP%%EL:~0,9%.265" "EL.hevc"

if exist %TEMP%en.thd goto :THD
if exist %TEMP%en.dts goto :DTS
:THD
%mkvmerge_path% --ui-language en --output ^"%TEMP%THD.mkv^" --audio-tracks 0 --language 0:en --compression 0:none ^"^(^" ^""%TEMP%en.thd"^" ^"^)^" --no-date
if exist %TEMP%en.thd goto :skip.dts
:DTS
:: encode first audio to DD+ 1536kbps
%mkvmerge_path% --ui-language en --output ^"%TEMP%THD.mkv^" --audio-tracks 0 --language 0:en --compression 0:none ^"^(^" ^""%TEMP%en.dts"^" ^"^)^" --no-date
:: encode first audio to DD+ 1536kbps
:skip.dts
start %ffmpeg_path% -i %TEMP%THD.mkv -map 0:0 -c:a eac3 -b:a 1536k -c:s copy "%output_path%%playlist.name_path%_EC3.mkv"

:: extract/convert rpu %TEMP%RPU.bin  from %TEMP%Dolby-Vision-Tools\EL.hevc
%dovi_tool_path% -m 2 extract-rpu %TEMP%EL.hevc -o %TEMP%RPU.bin
if NOT ["%errorlevel%"]==["0"]  pause
:: inject %TEMP%RPU.bin into %TEMP%Dolby-Vision-Tools\BL.hevc and write %TEMP%P8.hevc
%dovi_tool_path% inject-rpu -i %TEMP%BL.hevc --rpu-in %TEMP%rpu.bin -o "%output_path%%playlist.name_path%_P8.hevc"
if NOT ["%errorlevel%"]==["0"]  pause

:: read rpu %TEMP%rpu.bin (frame 100)
%dovi_tool_path% info --input %TEMP%rpu.bin -f 100
if NOT ["%errorlevel%"]==["0"]  pause

:: delete temp files
rmdir /Q /S %TEMP%
echo "The script has completed."

if "%GUIpopup%"=="YES" goto :no.muxer
if "%mkvtoolnix.popup%"=="YES" goto :mkvtoolnix
if "%tsmuxer.popup%"=="YES" goto :tsmuxer
:tsmuxer
:: open tsmuxer GUI
%tsmuxer.GUI_path% "%output_path%%playlist.name_path%_P8.hevc" "%output_path%%playlist.name_path%_EC3.mkv" %mpls_path%
@pause & exit
:mkvtoolnix
%mkvtoolnix_path% "%output_path%%playlist.name_path%_P8.hevc" "%output_path%%playlist.name_path%_EC3.mkv" %mpls_path%
:no.muxer
@pause & exit
Sorry for my English.
G5 / AM6B+ / Denon 7.2.4
DoVi_Scripts
DoVi Playback Devices
Post Reply