Dolby Vision now possible through MP4 Mux.

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

Re: Dolby Vision now possible through MP4 Mux.

#8791 Post by RESET_9999 » Thu Sep 07, 2023 3:41 pm

Trees wrote:
Thu Sep 07, 2023 3:27 pm
I'm trying to create a CM 4.0 DV video from an HDR10+ video. However, I'm getting some errors. Any ideas? Here is the terminal output:
raw hevc h265 input not supported in 3-1.
-- Input must be HDR MKV/TS/M2TS/MP4/prores for the video and the external files: MDL5-bat/xml/rpu/json/txt

Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

#8792 Post by Trees » Thu Sep 07, 2023 4:36 pm

RESET_9999 wrote:
Thu Sep 07, 2023 3:41 pm
Trees wrote:
Thu Sep 07, 2023 3:27 pm
I'm trying to create a CM 4.0 DV video from an HDR10+ video. However, I'm getting some errors. Any ideas? Here is the terminal output:
raw hevc h265 input not supported in 3-1.
-- Input must be HDR MKV/TS/M2TS/MP4/prores for the video and the external files: MDL5-bat/xml/rpu/json/txt
That's the thing. I processed an MKV earlier, netting me the same error. So I figured an HEVC would be succeed:

Code: Select all

Version: 1.9.2.9.beta_MKV                                                                  Date: 05-09-2023 05:02
   Contact: R3S3T_9999@proton.me




                        _____    __      ___       _____           _       _
                       |  __ \   \ \    / (_)     / ____|         (_)     | |
                       | |  | | __\ \  / / _     | (___   ___ _ __ _ _ __ | |_ ___
                       | |  | |/ _ \ \/ / | |     \___ \ / __| '__| | '_ \| __/ __|
                       | |__| | (_) \  /  | |     ____) | (__| |  | | |_) | |_\__ \
                       |_____/ \___/ \/   |_|    |_____/ \___|_|  |_| .__/ \__|___/
                       -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 HDR10plus)
4) MODE.7=  DoVi Profile 7 Input (MKV/BDMV)
5) MODE.B=  DoVi MKV Batch Muxer
6) MODE.P=  DoVi Plotter
7) MODE.S=  DoVi Screenshots maker
8) MODE.M=  MIXED: Audio/Remover/Player/Encoder and more...
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/prores for the video and the external files: MDL5-bat/xml/rpu/json/txt
-- This workflow will convert an HDR10 video to DoVi using official Dolby Vision tools
-- Require Dolby metafier.exe and cm_analyze.exe
-- https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools
-- L1 analysis tuning can be configured at line 100
-- 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 103)
-- 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 completed
-------------------------------------------------------------------------------------------------------------------
Drag and drop folder with HEVC video files ONLY and press enter...
"E:\The Grand Tour\Series 5\S05E01 - A Scandi Flick (missing chapters) (2160p Dual Video HDR10+ and Dolby Vision Amazon Prime Web-DL).mkv"
A subdirectory or file E:\Movie_Tools\DoVi_Scripts\Files_for_batch\ already exists.

----------------------------------------------
 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
7
Manual or Auto L5... a or m ? and/or press enter... (default=m)
m

Making a small sample from the input...

Done

Measuring the letterbox...


Done

Suggestion (may not be accurate):

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

Left L5 offset (default = 0)

Right L5 offset (default = 0)

Top L5 offset (default = 0)

Bottom L5 offset (default = 0)

Processing... "E:\The Grand Tour\Series 5\S05E01 - A Scandi Flick (missing chapters) (2160p Dual Video HDR10+ and Dolby Vision Amazon Prime Web-DL).mkv"
reading input tracks format/id/language...
done.
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.
Parsing RPU file...
Exporting metadata...
Done.
Exporting shots list from a HDR10plus JSON to a text file...
Parsing RPU file...
Exporting metadata...
Done.
Indexing, please wait... 100%
Writing index... done.
E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs: Unknown error occurred
Copyright (c) 2013-2023 Dolby Laboratories, Inc. All Rights Reserved
09/07/2023/16:06:33.125000000 CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (GenuineIntel) [ mmx sse sse2 sse3 ssse3 sse41 sse42 avx avx2 ]
09/07/2023/16:06:33.250000000 cm_analyze: ERROR Unable Open Sequence 'E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01 - A Scandi Flick (missing chapters) (2160p Dual Video HDR10+ and Dolby Vision Amazon Prime Web-DL)_prores.422.mov'. Check file permissions are/or existence
Removing L2 trims.
Copyright (c) 2013-2023 Dolby Laboratories, Inc. All Rights Reserved
09/07/2023/16:06:35.482000000 metafier: ERROR Unable to open Metadata file 'E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01 - A Scandi Flick (missing chapters) (2160p Dual Video HDR10+ and Dolby Vision Amazon Prime Web-DL)_DV.xml'
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: The system cannot find the file specified. (os error 2)
Press any key to continue . . .

RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#8793 Post by RESET_9999 » Thu Sep 07, 2023 4:43 pm

Trees wrote:
Thu Sep 07, 2023 4:36 pm
That's the thing. I processed an MKV earlier, netting me the same error. So I figured an HEVC would be succeed:
Oh yeah, I forgot to mention that input with '')'' in the filename will not work so just rename your file.

bivoj
Posts: 4
Joined: Thu May 21, 2020 8:37 pm

Re: Dolby Vision now possible through MP4 Mux.

#8794 Post by bivoj » Thu Sep 07, 2023 5:05 pm

Hello, when using mod 3-1, I get a different 422.prores.mov in 1.9.2.9 than in the 1.9.2.6, according to mediainfo.

In CM_analysis the completion times are:
1.9.2.6 - 00:04:14
1.9.2.9 - 00:17:30

Below are pictures with the differences. Thank you for the explanation.

mode 3-1
script 1.9.2.6
Image

mode 3-1
script 1.9.2.9
Image

mode 3-1
script 1.9.2.6
Image

mode 3-1
script 1.9.2.9
Image
My english is very bad, forgive me for that. :-)

Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

#8795 Post by Trees » Thu Sep 07, 2023 5:52 pm

RESET_9999 wrote:
Thu Sep 07, 2023 4:43 pm
Trees wrote:
Thu Sep 07, 2023 4:36 pm
That's the thing. I processed an MKV earlier, netting me the same error. So I figured an HEVC would be succeed:
Oh yeah, I forgot to mention that input with '')'' in the filename will not work so just rename your file.
Same error. I even removed all special characters. Also the + and the -. Seems like there is an issue with:

Code: Select all

E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs: Unknown error occurred
Or not?

RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#8796 Post by RESET_9999 » Thu Sep 07, 2023 6:03 pm

Trees wrote:
Thu Sep 07, 2023 5:52 pm
Same error. I even removed all special characters. Also the + and the -. Seems like there is an issue with:

Code: Select all

E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs: Unknown error occurred
Or not?
I don't know. I cannot reproduce it even with the same exact name/folder you used minus '')''
So maybe your file has an issue?


Image




EDIT: I added an option to disable indexing (line 132)... while I don't recommend disabling it, it should fix the issue with your file.
https://drive.google.com/file/d/1f34d80 ... sp=sharing

Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

#8797 Post by Trees » Thu Sep 07, 2023 7:33 pm

I don't know. I cannot reproduce it even with the same exact name/folder you used minus '')''
So maybe your file has an issue?
Perhaps. I'm sending the file to my Mega account, I'll send you the link if you'd like to try it for yourself.

Either way, here's the terminal output with echo on, maybe we can learn something from it?:

Code: Select all

Reordering metadata... Done.
Reading parsed dynamic metadata... Done.
Generating and writing metadata to JSON file... Done.
Parsing RPU file...
Exporting metadata...
Done.
Exporting shots list from a HDR10plus JSON to a text file...

E:\Movie_Tools\DoVi_Scripts>type nul  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt"

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\jq-win64.exe" "to_entries | .[] | select(.value.vdr_dm_data.scene_refresh_flag == 1) | .key" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu-text.json"  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt"

E:\Movie_Tools\DoVi_Scripts>if NOT ["0"] == ["0"] echo The script failed to make the scene cuts   & pause   & exit

E:\Movie_Tools\DoVi_Scripts>if "y" == "y" (
del "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt"
 type nul  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt"
 echo {  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\scene.json"
 echo     "mode": 0,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\scene.json"
 echo     "scene_cuts": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\scene.json"
 echo         "0-0": true  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\scene.json"
 echo           }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\scene.json"
 echo }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\scene.json"
 "E:\Movie_Tools\DoVi_Scripts\tools\dovi_tool.exe" editor -i "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu.h.bin" -j "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\scene.json" --rpu-out "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\RPU-flag.added.bin"  1>Nul
 "E:\Movie_Tools\DoVi_Scripts\tools\dovi_tool.exe" export -i "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\RPU-flag.added.bin" -o "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu-text.json"
 "E:\Movie_Tools\DoVi_Scripts\tools\jq-win64.exe" "to_entries | .[] | select(.value.vdr_dm_data.scene_refresh_flag == 1) | .key" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu-text.json"  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt"
)
Parsing RPU file...
Exporting metadata...
Done.

E:\Movie_Tools\DoVi_Scripts>set shotlist=--shot-list "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt"

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\mediainfo.exe" "E:\The Grand Tour\Series 5\S05E01.mkv" --output=Video;%FrameRate%\r\n     *.ts *.mp4 *.mkv *.m2ts *.mov *.hevc *.h265 *.avi  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\Framerate.txt"

E:\Movie_Tools\DoVi_Scripts>for /F "tokens=1 delims=(,)" %x in (E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\Framerate.txt) do set FPS=%x

E:\Movie_Tools\DoVi_Scripts>set FPS=25.000

E:\Movie_Tools\DoVi_Scripts>if "25.000" == "23.976" set FPS=24000/1001

E:\Movie_Tools\DoVi_Scripts>if "25.000" == "24.000" set FPS=24

E:\Movie_Tools\DoVi_Scripts>if "25.000" == "25.000" set FPS=25

E:\Movie_Tools\DoVi_Scripts>if "25" == "29.970" set FPS=30000/1001

E:\Movie_Tools\DoVi_Scripts>if "25" == "30.000" set FPS=30

E:\Movie_Tools\DoVi_Scripts>if "25" == "50.000" set FPS=50

E:\Movie_Tools\DoVi_Scripts>if "25" == "59.940" set FPS=60000/1001

E:\Movie_Tools\DoVi_Scripts>if "25" == "60.000" set FPS=60

E:\Movie_Tools\DoVi_Scripts>if ".mkv" == ".mov" set prores="E:\The Grand Tour\Series 5\S05E01.mkv"  & goto :skip.prores

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\FFMS2\ffmsindex.exe" "E:\The Grand Tour\Series 5\S05E01.mkv" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\index.ffindex"
Indexing, please wait... 100%
Writing index... done.

E:\Movie_Tools\DoVi_Scripts>echo LoadPlugin("E:\Movie_Tools\DoVi_Scripts\tools\FFMS2\ffms2.dll")  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs"

E:\Movie_Tools\DoVi_Scripts>echo FFVideoSource("E:\The Grand Tour\Series 5\S05E01.mkv", cachefile="E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\index.ffindex")  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs"

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\ffmpeg.exe" -i "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs" -c:v prores_ks -profile:v 3 -vendor apl0 -qscale:v 4 -pix_fmt yuv422p10le -an -y -hide_banner "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_prores.422.mov"
E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs: Unknown error occurred

E:\Movie_Tools\DoVi_Scripts>set prores="E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_prores.422.mov"

E:\Movie_Tools\DoVi_Scripts>if "NO" == "YES" goto :skipframecount

E:\Movie_Tools\DoVi_Scripts>for /F "delims=" %a in ('E:\Movie_Tools\DoVi_Scripts\tools\mediainfo.exe "--Output=Video;%FrameCount%" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_prores.422.mov"') do set "frameCount=%a"

E:\Movie_Tools\DoVi_Scripts>echo   1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt"

E:\Movie_Tools\DoVi_Scripts>if "NO" == "YES" set cpu.only=--cpu-only

E:\Movie_Tools\DoVi_Scripts>if exist "E:\Movie_Tools\DoVi_Scripts\Files_for_batch\S05E01.bat" call "E:\Movie_Tools\DoVi_Scripts\Files_for_batch\S05E01.bat"

E:\Movie_Tools\DoVi_Scripts>if [7] == [] set MDL=20

E:\Movie_Tools\DoVi_Scripts>if "7" == "21" set min=1  & set MDL1=1000

E:\Movie_Tools\DoVi_Scripts>if "7" == "7" set min=50  & set MDL1=4000

E:\Movie_Tools\DoVi_Scripts>if "7" == "20" set min=1  & set MDL1=1000

E:\Movie_Tools\DoVi_Scripts>if "7" == "8" set min=50  & set MDL1=4000

E:\Movie_Tools\DoVi_Scripts>if "7" == "30" set min=50  & set MDL1=2000

E:\Movie_Tools\DoVi_Scripts>if "7" == "31" set min=50  & set MDL1=2000

E:\Movie_Tools\DoVi_Scripts>if [0] == [] set right=0

E:\Movie_Tools\DoVi_Scripts>if [0] == [] set left=0

E:\Movie_Tools\DoVi_Scripts>if [0] == [] set right=0

E:\Movie_Tools\DoVi_Scripts>if [0] == [] set bottom=0

E:\Movie_Tools\DoVi_Scripts>E:\Movie_Tools\DoVi_Scripts\tools\cm_analyze.exe --shot-list "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01.scene.cuts.txt" -m 7 -r 25 --source-format "pq bt2020" --letterbox 0 0 0 0 --analysis-tuning 1  "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_prores.422.mov" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_DV.xml"
Copyright (c) 2013-2023 Dolby Laboratories, Inc. All Rights Reserved
09/07/2023/21:24:27.612000000 CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (GenuineIntel) [ mmx sse sse2 sse3 ssse3 sse41 sse42 avx avx2 ]
09/07/2023/21:24:27.612000000 cm_analyze: ERROR Unable Open Sequence 'E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_prores.422.mov'. Check file permissions are/or existence

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\mediainfo.exe" "E:\The Grand Tour\Series 5\S05E01.mkv" --output=Video;%Width%\r\n     *.ts *.mp4 *.mkv *.m2ts *.mov *.hevc *.h265 *.avi  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\\Width.txt"

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\mediainfo.exe" "E:\The Grand Tour\Series 5\S05E01.mkv" --output=Video;%Height%\r\n     *.ts *.mp4 *.mkv *.m2ts *.mov *.hevc *.h265 *.avi  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\\Height.txt"

E:\Movie_Tools\DoVi_Scripts>for /F "tokens=1 delims=(,)" %x in (E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\\Width.txt) do set Width_path=%x

E:\Movie_Tools\DoVi_Scripts>set Width_path=3840

E:\Movie_Tools\DoVi_Scripts>for /F "tokens=1 delims=(,)" %x in (E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\\Height.txt) do set Height_path=%x

E:\Movie_Tools\DoVi_Scripts>set Height_path=2160

E:\Movie_Tools\DoVi_Scripts>if not "NO" == "NO" set rem_trims=y  & set L2.100=,1

E:\Movie_Tools\DoVi_Scripts>if not "YES" == "NO" set rem_trims=y  & set L2.600=,27,28

E:\Movie_Tools\DoVi_Scripts>if not "YES" == "NO" set rem_trims=y  & set L2.1000=,48,49

E:\Movie_Tools\DoVi_Scripts>echo "S05E01"  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\filename1.txt"

E:\Movie_Tools\DoVi_Scripts>findstr /c:"KEEPTRIMS" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\filename1.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 1 == 0 set rem_trims=n  & set overwrite.L2=NO

E:\Movie_Tools\DoVi_Scripts>findstr /c:"KEEPAUDIO" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\filename1.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 1 == 0 set mux_all_audio=YES

E:\Movie_Tools\DoVi_Scripts>findstr /c:"DONTMUX" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\filename1.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 1 == 0 set MUX=NO

E:\Movie_Tools\DoVi_Scripts>if "y" == "y" (
echo Removing L2 trims.
 "E:\Movie_Tools\DoVi_Scripts\tools\metafier.exe"  -o "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_DV_trims_removed.xml" --remove-trim L2,27,28,48,49 "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_DV.xml"
 echo Generate RPU from XML
 "E:\Movie_Tools\DoVi_Scripts\tools\dovi_tool.exe" generate --xml "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_DV_trims_removed.xml" --canvas-width 3840 --canvas-height 2160 --rpu-out "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu.bin"
 set RPU="E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu.bin"
)  ELSE (
"E:\Movie_Tools\DoVi_Scripts\tools\dovi_tool.exe" generate --xml "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_DV.xml" --canvas-width 3840 --canvas-height 2160 --rpu-out "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu.bin"
 set RPU="E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu.bin"
)
Removing L2 trims.
Copyright (c) 2013-2023 Dolby Laboratories, Inc. All Rights Reserved
09/07/2023/21:24:31.490000000 metafier: ERROR Unable to open Metadata file 'E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\S05E01_DV.xml'
Generate RPU from XML
Parsing XML metadata...
Error: The system cannot find the file specified. (os error 2)

E:\Movie_Tools\DoVi_Scripts>findstr /m "0.0050" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\masteringDL.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 1 == 0 set min=50

E:\Movie_Tools\DoVi_Scripts>findstr /m "0.0001" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\masteringDL.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 0 == 0 set min=1

E:\Movie_Tools\DoVi_Scripts>findstr /m "0.0020" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\masteringDL.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 1 == 0 set min=20

E:\Movie_Tools\DoVi_Scripts>findstr /m "0.0010" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\masteringDL.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 1 == 0 set min=10

E:\Movie_Tools\DoVi_Scripts>findstr /m "0.0000" "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\masteringDL.txt"  1>Nul

E:\Movie_Tools\DoVi_Scripts>if 1 == 0 set min=0

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\dovi_tool.exe" info -s "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu.bin"  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\\sum.rpu.json"
Error: The system cannot find the file specified. (os error 2)

E:\Movie_Tools\DoVi_Scripts>type "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\\sum.rpu.json"   | findstr Frames:  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\frames.txt"

E:\Movie_Tools\DoVi_Scripts>type "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\\sum.rpu.json"   | findstr L1  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L1.txt"

E:\Movie_Tools\DoVi_Scripts>FOR /F "tokens=4 delims=(:.)" %T IN (E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L1.txt) DO set maxcll_path=%T

E:\Movie_Tools\DoVi_Scripts>FOR /F "tokens=6 delims=(:.)" %T IN (E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L1.txt) DO set maxfall_path=%T

E:\Movie_Tools\DoVi_Scripts>FOR /F "tokens=2 delims=:" %T IN (E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\frames.txt) DO set frameCount=%T

E:\Movie_Tools\DoVi_Scripts>echo {  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo    "level6": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo        "max_display_mastering_luminance": 4000,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo        "min_display_mastering_luminance": 1,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo        "max_content_light_level": ,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo        "max_frame_average_light_level":   1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo    }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L6.json"

E:\Movie_Tools\DoVi_Scripts>echo.


E:\Movie_Tools\DoVi_Scripts>echo {  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo    "active_area": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo        "crop": false,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo        "presets": [  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo            {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo                "id": 0,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo                "left": 0,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo                "right": 0,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo                "top": 0,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo                "bottom": 0  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo            }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo        ],  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo        "edits": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo            "all": 0  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo        }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo    }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json"

E:\Movie_Tools\DoVi_Scripts>echo {  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo     "cm_version": "V40",  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo     "length": ,  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo     "default_metadata_blocks": [  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             "Level2": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo                 "target_max_pq": 2081  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         },  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             "Level2": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo                "target_max_pq": 2851  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         },  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             "Level2": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo                 "target_max_pq": 3079  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         },  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             "Level3": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         },  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             "Level8": {  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo                "target_display_index": 1  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo             }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo         }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json

E:\Movie_Tools\DoVi_Scripts>echo     ]  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\gen.default.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo {  1>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\overwrite.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo        "source_rpu": "RPU_generated.bin",  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\overwrite.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo        "rpu_levels": [8]  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\overwrite.l2.json"

E:\Movie_Tools\DoVi_Scripts>echo }  1>>"E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\overwrite.l2.json"

E:\Movie_Tools\DoVi_Scripts>"E:\Movie_Tools\DoVi_Scripts\tools\dovi_tool.exe" editor -i "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\rpu.bin" -j "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.json" --rpu-out "E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\L5.bin"  1>nul
Error: The system cannot find the file specified. (os error 2)

E:\Movie_Tools\DoVi_Scripts>if NOT ["1"] == ["0"] pause
Press any key to continue . . .

RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#8798 Post by RESET_9999 » Thu Sep 07, 2023 8:01 pm

Trees wrote:
Thu Sep 07, 2023 7:33 pm
Perhaps. I'm sending the file to my Mega account, I'll send you the link if you'd like to try it for yourself.
No need to, I just tried with the original webdl, and no issue. Is your file original from the SMURF ?

sample from my file: https://drive.google.com/file/d/1GKVeL9 ... sp=sharing


Image

Trees
Posts: 41
Joined: Sat Sep 03, 2022 8:04 am

Re: Dolby Vision now possible through MP4 Mux.

#8799 Post by Trees » Fri Sep 08, 2023 2:46 am

RESET_9999 wrote:No need to, I just tried with the original webdl, and no issue. Is your file original from the SMURF ?

sample from my file: https://drive.google.com/file/d/1GKVeL9 ... sp=sharing
I don't remember who it's from, not SMURF, though. I've PM'd you the file, just in case.

NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

#8800 Post by NiCE77 » Fri Sep 08, 2023 6:36 am

RESET_9999 wrote:
Thu Sep 07, 2023 12:09 pm
NiCE77 wrote:
Thu Sep 07, 2023 11:48 am
@RESET_9999

I'm trying the DoViBaker workflow, is it normal that with Ryzen 7 7840HS + RTX 4060 the conversion speed is about 2.4 fps (0.1x) only?
I don't know.
With my i9 13900ks + rtx3070, it's slightly slower than a regular HDR encode, about 6-7fps at slow preset.
It looks like, we can use the DoViBaker in multi thread:

Code: Select all

LoadPlugin("DoViBaker_x64.dll") 
LoadPlugin("DGDecodeNV.dll") 
bl = DGSource("BL.dgi") 
el = DGSource("EL.dgi")
SetFilterMTMode("DoViBaker",2) 
DoViBaker(bl, el, rpu="RPU_FEL.bin") 
ConvertToYUV420(matrix="2020")  
Prefetch(8)

RESET_9999
Posts: 2090
Joined: Mon Aug 05, 2019 7:12 pm

Re: Dolby Vision now possible through MP4 Mux.

#8801 Post by RESET_9999 » Fri Sep 08, 2023 3:51 pm

NiCE77 wrote:
Fri Sep 08, 2023 6:36 am
It looks like, we can use the DoViBaker in multi thread:

Code: Select all

LoadPlugin("DoViBaker_x64.dll") 
LoadPlugin("DGDecodeNV.dll") 
bl = DGSource("BL.dgi") 
el = DGSource("EL.dgi")
SetFilterMTMode("DoViBaker",2) 
DoViBaker(bl, el, rpu="RPU_FEL.bin") 
ConvertToYUV420(matrix="2020")  
Prefetch(8)
Nice , on my PC, this even allows real-time decoding in MPC.

Mrmorrison
Posts: 33
Joined: Thu Oct 20, 2022 2:13 pm

Re: Dolby Vision now possible through MP4 Mux.

#8802 Post by Mrmorrison » Fri Sep 08, 2023 7:27 pm

Is there any difference between a P7 Fel film and the same P8 film (or P7 MEL) if the displays on the market have 10bit?

bivoj
Posts: 4
Joined: Thu May 21, 2020 8:37 pm

Re: Dolby Vision now possible through MP4 Mux.

#8803 Post by bivoj » Fri Sep 08, 2023 8:07 pm

Trees wrote:
Thu Sep 07, 2023 5:52 pm
RESET_9999 wrote:
Thu Sep 07, 2023 4:43 pm
Trees wrote:
Thu Sep 07, 2023 4:36 pm
That's the thing. I processed an MKV earlier, netting me the same error. So I figured an HEVC would be succeed:
Oh yeah, I forgot to mention that input with '')'' in the filename will not work so just rename your file.
Same error. I even removed all special characters. Also the + and the -. Seems like there is an issue with:

Code: Select all

E:\Movie_Tools\DoVi_Scripts\TEMP.folder77\script.avs: Unknown error occurred
Or not?
I had the same message when uninstalled avisynth+. After instalation bellow it is ok.
https://github.com/AviSynth/AviSynthPlus/releases/
My english is very bad, forgive me for that. :-)

NiCE77
Posts: 86
Joined: Sat Mar 28, 2020 7:49 am

Re: Dolby Vision now possible through MP4 Mux.

#8804 Post by NiCE77 » Sat Sep 09, 2023 7:27 am

Mrmorrison wrote:
Fri Sep 08, 2023 7:27 pm
Is there any difference between a P7 Fel film and the same P8 film (or P7 MEL) if the displays on the market have 10bit?
Yes, if the FEL expands brightness.

bivoj
Posts: 4
Joined: Thu May 21, 2020 8:37 pm

Re: Dolby Vision now possible through MP4 Mux.

#8805 Post by bivoj » Sat Sep 09, 2023 10:27 am

Issue with encode to prores.422.mov as Interlaced, as i wrote in post before solved. After uninstall LAV filters and Avisynth+ and install it again, DoviS_cripts 1.9.2.9 and 1.9.3 works perfectly. Now i get prores Progresive.

If CM_analyse will be very slow, check your prores.422.mov files in mediainfo if is progresive. Probably can't be interlaced. Can you see in previous post. Maybe this will help someone.

Previous post:
viewtopic.php?p=140237#p140237
My english is very bad, forgive me for that. :-)

Post Reply