Dolby Vision now possible through MP4 Mux.

Please post here for issues related to UHD discs
TheEqualizer
Posts: 48
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

Can you tell me which version of the script I need?
And when to wait for changes so that all signatures from mkv are saved
RESET_9999
Posts: 2082
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

I'm not sure, look for a version with the mp4muxer workflow (7)

https://drive.google.com/drive/u/1/fold ... 44Memutbpr
And when to wait for changes so that all signatures from mkv are saved
I'll try to find time next week but I will not touch the old script versions
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

TheEqualizer wrote:
Sat Nov 25, 2023 1:58 pm
https://drive.google.com/drive/folders/ ... sp=sharing
Another nuance is whether it is possible to somehow save all the signatures that were in mkv, otherwise the script changes the names of the tracks. In other words, you need a full copy of the entire contents of the mkv container (there is no HD sound there initially), with delays, video captions, each audio track, subtitles, and so on
Would you mind describing how you managed to create the 7.1 channel DDP audio file? I've been experimenting with different Dolby tools but I can't seem to figure out how to get a proper 7.1 channel DDP Atmos file with a 5.1 core
TheEqualizer
Posts: 48
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

johnjon94 wrote: Would you mind describing how you managed to create the 7.1 channel DDP audio file? I've been experimenting with different Dolby tools but I can't seem to figure out how to get a proper 7.1 channel DDP Atmos file with a 5.1 core
It's impossible to tell it so easily. You need a lot of tools, Davinci Resolve, Dolby Media Encoder, eac3to, command line and some knowledge)
Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

Post by Trees »

RESET_9999 wrote:
Fri Nov 24, 2023 10:56 pm
Trees wrote:
Fri Nov 24, 2023 10:55 pm
Thanks brother. I'll wait patiently. :)
no need to wait, I already released a fix a couple of hours ago. :)
That was quick! It worked straight away. Twice. After that I got the following errors:

Code: Select all

Donate: https://www.paypal.com/donate/?hosted_button_id=6ML5KUZG9XGB6                      Date: 11/24/2023 10:57 PM
  Contact: R3S3T_9999@proton.me                                                              Version: 1.9.8.3_MKV




                        _____    __      ___       _____           _       _
                       |  __ \   \ \    / (_)     / ____|         (_)     | |
                       | |  | | __\ \  / / _     | (___   ___ _ __ _ _ __ | |_ ___
                       | |  | |/ _ \ \/ / | |     \___ \ / __| '__| | '_ \| __/ __|
                       | |__| | (_) \  /  | |     ____) | (__| |  | | |_) | |_\__ \
                       |_____/ \___/ \/   |_|    |_____/ \___|_|  |_| .__/ \__|___/
                       -Author: RESET_9999--------------------------|__|-----------



 Choose a mode...

1) MODE.I=  DoVi Inject/Convert/Edit/Re-sync TWO INPUTS (P8 Hybrid Maker/Injector)
2) MODE.F=  DoVi Fix/Edit/Extract/Verify/Info ONE INPUT
3) MODE.H=  DoVi Maker from HDR10 (Dolby Algo or MadVR or HDR10+)
4) MODE.7=  DoVi Profile 7 Input (MKV/BDMV)
5) MODE.B=  DoVi MKV Batch Muxer
6) MODE.P=  Plotter
7) MODE.S=  Screenshots & Player
8) MODE.M=  MIXED: Audio/Remover/Encoder/Playlist/Sample
9) Exit

Choice? [1,2,3,4,5,6,7,8,9]?3
                                           *****************
                                           * CHOOSE A MODE *
                                           *****************


1) MODE.1= CM_analyzer HDR10 to DoVi maker(can batch) (Professional CM v4.0 Dolby Algo)
2) MODE.2= HDR10(madVR) or HDR10plus to DoVi maker (Not Recommended)
3) MODE.3= BATCH convert HDR10plus videos to DoVi (Not Recommended)
4) MODE.4= Batch measure a folder with mkv HDR10 files
5) MODE.5= Back to main menu

Choice? [1,2,3,4,5]?1
--------------------------------------------------------------------------------------------------------------------
-- Input must be HDR MKV/TS/M2TS/MP4/MOV(prores) for the video and the external files: MDL5-bat/xml/rpu/json/txt
-- Input can be a folder or a single file
-- Input with ")" in the filename will NOT work and [] in the filename is not allowed by dolby tools
-- This workflow will convert an HDR10 video to DoVi using official Dolby Vision tools
-- Require Dolby metafier.exe , cm_analyze.exe, lavfilter, madvr and avisynth+
-- https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools
-- L1 analysis tuning can be configured at line 95
-- if no external shot and If input has dynamic metadata, it will use its scene cuts.
-- If input has no dynamic metadata and no external list, madvr will be used for the shot list
-- You can force frame by frame(line 99) and  You can disable indexing at line 135
-- if you dont provide external config.bat, the same L5/MDL will be used
-- External files: must be same path/filename as input. (bat/xml/rpu/json/txt) external files are prioritized.
-- External files will be moved into the output_path, do not move nor delete them until the script has been completed-- "IGNORERPU" in the filename will ignore the rpu within the video and force madvr
-------------------------------------------------------------------------------------------------------------------
Drag and drop folder with HEVC video files or a single file and press enter...
"E:\Movie_Tools\DoVi_Scripts\The Grand Tour\Series 1\S01E03 - Opea, Arts and Donuts 2160p HDR10 Amazon WEB-DL.mkv"

------------------------------------------------
 BL Mastering Display Luminance and Colors:
 min: 0.0001 cd/m2, max: 1000 cd/m2 Display P3
------------------------------------------------

What is the Mastering Display? Choices are: 1000nits-P3= 20(default) / 1000nits-BT2020= 21 / 4000nits-P3= 7 / 4000nits-BT2020= 8 / 2000nits-P3= 30 / 2000nits-BT2020= 31
20
Manual or Auto L5... a or m ? and/or press enter... (default=m)
a
Processing:  "S01E03 - Opea, Arts and Donuts 2160p HDR10 Amazon WEB-DL.mkv"
reading input tracks format/id/language...
done.

Making a small sample from the input...

Done

Measuring the letterbox...


Done

---------------------------------
--> left border: 0
--> right border: 0
--> top border: 0
--> bottom border: 0
---------------------------------

Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'E:\Movie_Tools\DoVi_Scripts\temp.folder77\BL.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
Reordering metadata... Done.
Reading parsed dynamic metadata... Done.
Generating and writing metadata to JSON file... Done.
error: invalid value ' Arts and Donuts 2160p HDR10 Amazon WEB-DL.scene.cuts.txt' for '--data <data>'
  [possible values: all, scenes, level5]

For more information, try '--help'.
Exporting shots list from a HDR10plus JSON to a text file...
Could Not Find E:\Movie_Tools\DoVi_Scripts\temp.folder77\S01E03 - Opea, Arts and Donuts 2160p HDR10 Amazon WEB-DL.scene.cuts.txt
error: invalid value ' Arts and Donuts 2160p HDR10 Amazon WEB-DL.scene.cuts.txt' for '--data <data>'
  [possible values: all, scenes, level5]

For more information, try '--help'.
Indexing, please wait... 100%
Writing index... done.
Input #0, avisynth, from 'E:\Movie_Tools\DoVi_Scripts\temp.folder77\script.avs':
  Duration: 01:02:25.99, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x2160, 23.98 fps, 23.98 tbr, 23.98 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> prores (prores_ks))
Press [q] to stop, [?] for help
Output #0, mov, to 'E:\Movie_Tools\DoVi_Scripts\temp.folder77\S01E03 - Opea, Arts and Donuts 2160p HDR10 Amazon WEB-DL_prores.422.mov':
  Metadata:
    encoder         : Lavf60.3.100
  Stream #0:0: Video: prores (apch / 0x68637061), yuv422p10le(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x2160, q=2-31, 200 kb/s, 23.98 fps, 24k tbn
    Metadata:
      encoder         : Lavc60.3.100 prores_ks
frame=89814 fps= 16 q=-0.0 Lsize=101143047kB time=01:02:25.95 bitrate=221189.2kbits/s speed=0.685x
video:101142002kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001033%
Copyright (c) 2013-2023 Dolby Laboratories, Inc. All Rights Reserved
11/26/2023/15:37:42.459000000 CPU:         Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (GenuineIntel) [ mmx sse sse2 sse3 ssse3 sse41 sse42 avx ]
11/26/2023/15:37:42.607000000 cm_analyze: Shot cut detection is disabled when shot list is used
11/26/2023/15:37:42.608000000 cm_analyze:                Source: 'E:\Movie_Tools\DoVi_Scripts\temp.folder77\S01E03 - Opea, Arts and Donuts 2160p HDR10 Amazon WEB-DL_prores.422.mov'
11/26/2023/15:37:42.608000000 cm_analyze:        Master Display: 1000-nit, P3, D65, ST.2084, Full
11/26/2023/15:37:42.609000000 cm_analyze:              Src Info: '3840x2160x3 u16 interleaved 422 le tight 0-89813 23.976fps top_left pq ycbcr_bt2020 video bt2020'
11/26/2023/15:37:42.610000000 cm_analyze:                Frames: 0 - 89813
11/26/2023/15:37:42.610000000 cm_analyze:            Frame rate: 24000/1001
11/26/2023/15:37:42.611000000 cm_analyze:     Algorithm Version: 4
11/26/2023/15:37:42.611000000 cm_analyze:           XML Version: 4.0.2
11/26/2023/15:37:42.612000000 analysis: analyzing 0 frames
11/26/2023/15:37:42.612000000 cm_analyze: Shot Info Frames: -1 - -1
11/26/2023/15:37:42.636000000 cm_analyze: Metadata aspect ratios: canvas 1.777778e+00, image 1.777778e+00
11/26/2023/15:37:42.640000000 cuda: initializing CUDA
11/26/2023/15:37:42.751000000 cuda: using CUDA version 9.2.0
11/26/2023/15:37:42.752000000 cuda: NVIDIA GeForce GTX 1070: compute 6.1, cores 1920*1771MHz, memory 8191MB
11/26/2023/15:37:42.834000000 stage: ERROR Stage Reader: Could not find chunk for frame -1
11/26/2023/15:37:42.839000000 cm_analyze: Metadata saved to 'E:\Movie_Tools\DoVi_Scripts\temp.folder77\S01E03 - Opea, Arts and Donuts 2160p HDR10 Amazon WEB-DL_DV.xml'
Removing L2 trims.
Copyright (c) 2013-2023 Dolby Laboratories, Inc. All Rights Reserved
11/26/2023/15:37:49.969000000 metafier: Trim to be removed (L2,27) not found in Metadata
11/26/2023/15:37:49.970000000 metafier: Trim to be removed (L2,28) not found in Metadata
11/26/2023/15:37:49.970000000 metafier: Trim to be removed (L2,48) not found in Metadata
11/26/2023/15:37:49.971000000 metafier: Trim to be removed (L2,49) not found in Metadata
11/26/2023/15:37:49.972000000 Metadata: ERROR list of ERRORS/WARNINGS:
=========================
WARNING: Update CMv2.9 metadata using ./metafier --update-cm29-metadata
ERROR: No Shots found
WARNING: No L2 Trims found
WARNING: No L8 Trims found
=========================
11/26/2023/15:37:49.973000000 metafier: ERROR Invalid Metadata
Generate RPU from XML
Parsing XML metadata...
Error: The system cannot find the file specified. (os error 2)
Error: The system cannot find the file specified. (os error 2)
Error: expected value at line 21 column 35
Error: The system cannot find the file specified. (os error 2)
Parsing RPU file...
Error: The system cannot find the file specified. (os error 2)
Press any key to continue . . .
Looks like the XML is missing or something?
RESET_9999
Posts: 2082
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

Trees wrote:
Sun Nov 26, 2023 8:43 pm
That was quick! It worked straight away. Twice. After that I got the following errors:
looks like the coma is causing issues so remove special characters from the input filename.
TheEqualizer wrote:
Sat Nov 25, 2023 1:58 pm
possible to somehow save all the signatures that were in mkv,
https://drive.google.com/file/d/1uPUWSF ... sp=sharing
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

TheEqualizer wrote:
Sun Nov 26, 2023 7:46 pm
johnjon94 wrote: Would you mind describing how you managed to create the 7.1 channel DDP audio file? I've been experimenting with different Dolby tools but I can't seem to figure out how to get a proper 7.1 channel DDP Atmos file with a 5.1 core
It's impossible to tell it so easily. You need a lot of tools, Davinci Resolve, Dolby Media Encoder, eac3to, command line and some knowledge)
I likely have all of the same tools as you. I've been decoding the Atmos tracks then importing those into Dolby Media Encoder to encode using the 7.1 DDP Atmos Bluray profile. But the resulting file always ends up with the below channel layout -

Code: Select all

Audio
ID                                       : 2
Format                                   : E-AC-3 JOC
Format/Info                              : Enhanced AC-3 with Joint Object Coding
Commercial name                          : Dolby Digital Plus with Dolby Atmos
Format profile                           : Blu-ray Disc
Codec ID                                 : A_EAC3
Duration                                 : 1 h 45 min
Bit rate mode                            : Constant
Bit rate                                 : 1 664 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Tfl Tfr
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 1.23 GiB (6%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Complexity index                         : 16
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
Is there any re-mapping that you do to get the L R C LFE Ls Rs Lb Rb layout?
Gatorman
Posts: 79
Joined: Thu Feb 10, 2022 3:47 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by Gatorman »

TheEqualizer wrote:
Sun Nov 26, 2023 7:46 pm

It's impossible to tell it so easily. You need a lot of tools, Davinci Resolve, Dolby Media Encoder, eac3to, command line and some knowledge)
johnjon94 wrote:
Mon Nov 27, 2023 4:06 am

I likely have all of the same tools as you. I've been decoding the Atmos tracks then importing those into Dolby Media Encoder to encode using the 7.1 DDP Atmos Bluray profile. But the resulting file always ends up with the below channel layout -
Even using these processes, isn't the object metadata lost?
More reasons to collect physical media. 2019 Shield TV Pro.
TheEqualizer
Posts: 48
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

TheEqualizer
Posts: 48
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

johnjon94 wrote: Is there any re-mapping that you do to get the L R C LFE Ls Rs Lb Rb layout?
You can't do anything about it at the moment, I stopped paying attention to it
johnjon94
Posts: 35
Joined: Thu Nov 11, 2021 5:59 am

Re: Dolby Vision now possible through MP4 Mux.

Post by johnjon94 »

TheEqualizer wrote:
Mon Nov 27, 2023 9:52 pm
johnjon94 wrote: Is there any re-mapping that you do to get the L R C LFE Ls Rs Lb Rb layout?
You can't do anything about it at the moment, I stopped paying attention to it
So your files are resulting in the L R C LFE Ls Rs Tfl Tfr layout as well?
deadchip12
Posts: 285
Joined: Thu May 02, 2019 2:49 am

Re: Dolby Vision now possible through MP4 Mux.

Post by deadchip12 »

Any update on the issues the X700 bluray player has with displaying dolby vision movie files? My TV is Sony A95L.

* TV-LED: Positive lift for L2 trim offset does not work. https://drive.google.com/file/d/1JrU6JX ... drive_link
M2TS & TS DoVi
* Crushed black when source max_pq is 4095 (10 000nits)
CMV2.9
TheEqualizer
Posts: 48
Joined: Tue Feb 21, 2023 3:50 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by TheEqualizer »

johnjon94 wrote: So your files are resulting in the L R C LFE Ls Rs Tfl Tfr layout as well?
Yes, of course, at the moment with the available software it does not work any other way
RESET_9999
Posts: 2082
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

Post by RESET_9999 »

deadchip12 wrote:
Tue Nov 28, 2023 2:57 am
Any update on the issues the X700 bluray player has with displaying dolby vision movie files? My TV is Sony A95L.

* TV-LED: Positive lift for L2 trim offset does not work. https://drive.google.com/file/d/1JrU6JX ... drive_link
M2TS & TS DoVi
* Crushed black when source max_pq is 4095 (10 000nits)
CMV2.9
No.
The positive Trim offset bug is really strange and will probably never get fixed because it's also not working on the latest cm4.0 devices (ATV and shield).
It only works properly in LLDV or with the TV internal player.

The crushed black issue is only a problem with 10 000 content which is very rare.
thirdmoon
Posts: 35
Joined: Mon Jul 03, 2023 6:17 am

Re: Dolby Vision now possible through MP4 Mux.

Post by thirdmoon »

@RESET_9999

Here is my try for TRON 4K HDR - https://drive.google.com/file/d/1ehR5un ... sp=sharing
I use TOPAZ for upscaling and DaVinci for HDR.
Post Reply