Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1001 | Link |
|
Registered User
Join Date: Apr 2011
Posts: 99
|
Kuler, I tried encoding with DS today but simply have not been able to get the script firing. I am using v3.0.6, and the script is DoVi_Scripts_MKV.bat. The only change I made in the script was to change the CRF value of an x265 encode to 24. The second time, I tried doing a two-pass encode. In both the cases, I run into the same error:
![]() Avisynth+ is installed correctly as are all the other tools. What might I be doing wrong? |
|
|
|
|
|
#1002 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English |
|
|
|
|
|
#1003 | Link |
|
Registered User
Join Date: Apr 2011
Posts: 99
|
Thank you for the suggestion, Kuler, but it didn't work. In fact, I deleted the tools folder, and downloaded it afresh, but still getting exactly the same error. It's probably some sort of a hidden problem specific to my computer. Very frustrating.
|
|
|
|
|
|
#1004 | Link |
|
Registered User
Join Date: Apr 2011
Posts: 99
|
This is the error I get every single time:
avs+ [FLAW]: Error loading file: Script error: Invalid arguments to function 'z_ConvertFormat'. (D:\DoVi.Scripts\temp.folder31\script.avs, line 5) x265 [FLAW]: unable to open input file <D:\DoVi.Scripts\temp.folder31\script.avs> Error: The file 'D:\DoVi.Scripts\Gladiator_II_2024_4K_002_DV-FEL_to_DVP8-HDR10.hevc' could not be opened for reading: open file error. |
|
|
|
|
|
#1005 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
yeah that's strange, it looks like your system doesnt like z_convert. First time seeing this error and I helped many people with this workflow.
try this version, I replaced z_convert by another function. https://drive.google.com/file/d/1hmi...ew?usp=sharing
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English |
|
|
|
|
|
#1006 | Link |
|
Registered User
Join Date: Apr 2011
Posts: 99
|
Thank you for the test script, Kuler. Unfortunately, this also generates an error, seemingly a different one but in fact the error involves exactly the same steps:
avs+ [INFO]: AviSynth+ 3.7.3 (r4003, 3.7, x86_64) avs+ [FLAW]: Error loading file: Script error: Invalid arguments to function 'ConvertToYUV420'. (D:\DoVi.Scripts\temp.folder31\script.avs, line 5) x265 [FLAW]: unable to open input file <D:\DoVi.Scripts\temp.folder31\script.avs> Error: The file 'D:\DoVi.Scripts\Gladiator_II_2024_4K_002_DV-FEL_to_DVP8-HDR10.hevc' could not be opened for reading: open file error. I would believe that mine is fairly standard computer: Windows 11 machine with Core I5 Raptor Lake. Can't figure out what the source of the problem might be. It looks like an avsynth+ issue of some kind. |
|
|
|
|
|
#1007 | Link |
|
Registered User
Join Date: Apr 2011
Posts: 99
|
I usually use Ripbot for encoding and that also uses avisynth+ but that has never given me this particular error, so I can't figure out what the source of this problem might be. The error is consistently "invalid arguments to function . . . " in line 5 of the avisynth script.
Last edited by lemaireus; 26th February 2025 at 11:32. |
|
|
|
|
|
#1008 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
no idea why it says that for you. Try to open the script (temp folder) in avspmod.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English |
|
|
|
|
|
#1010 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
the script is incomplete, so it fails at indexing either with ffms2 or dgindex
did you install python? Watch the script installation tutorial.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English |
|
|
|
|
|
#1011 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
it looks like the script failed to detect if you have an nvidia GPU or not...
try this: https://drive.google.com/file/d/128g...usp=drive_link
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English |
|
|
|
|
|
#1012 | Link |
|
Registered User
Join Date: Apr 2011
Posts: 99
|
Voila! and it worked, finally! Thank you, Kuler, for helping out. The custom script you shared is doing the job even as I type this message. I'll post an update after the encoding finishes (will take a while).
However, the problem could not have been the script failing to detect nvidia GPU. Each time I tried with the .bat files from 3.0.6, those did detect that I do not have an nvidia GPU ("No Nvidia GPU detected, enabling FFMS2 decoding"). Python is also correctly installed. Still cannot figure out the issue. |
|
|
|
|
|
#1013 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
It was my fault, sorry. I introduced a typo two versions ago...
It was detecting correctly that you didn't have an Nvidia GPU but there was a typo in the variables.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English |
|
|
|
|
|
#1014 | Link |
|
Registered User
Join Date: Apr 2011
Posts: 99
|
Thank you, Kuler. I just got my first DS encoded rip (a ten minute test clip).
One question though: how do I get DS to keep FEL/MEL and not only the 8.1 RPU? If I am not concerned with compatibility issues and if I wish to keep DV profile 7.6 along with the FEL in, for example, Gladiator II, are there settings that I might tinker with which will allow me to do that? The reason I ask this question is because as far as converting the RPU to 8.1 and injecting it back into an encode is concerned, DDVT tools does a good job. However, as you mentioned on that forum, DDVT probably cannot bake an FEL/MEL accurately. Can DS do that? |
|
|
|
|
|
#1015 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
Not possible. You cannot keep the EL if you re-encode the BL, that's the whole point.
The dovi baker process in workflow 8-2 will bake the 12bit EL stream in the encoded BL so you get a P8 + HDR10 BL that is the same quality as the original P7 fel playback on a bluray player.
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English |
|
|
|
|
|
#1017 | Link |
|
Registered User
Join Date: Feb 2025
Posts: 2
|
What am i doing wrong?
I came across this nice tool pack (very impressive work behind it), when I discovered it was possible to convert my HDR10+ movies to DV, so I could benefit from the dynamic metadata on my LG G4. I have now converted my two HDR10+ movies (American Gangster and Carlito’s Way) and a few others HDR10 movies to DV P8 with your script. I must admit I find it difficult to see the changes. I read a post somewhere the other day (sorry I can’t remember where, but not here) about a guy who had converted his copy of Inception to DV8, where he was very impressed and the movie couldn’t look any better, so I started with Inception. I haven’t watched the complete movie, but has tried to compare the HDR10 and DV8 versions by viewing a couple of minutes of each version until around the 15 minutes mark, which I find very difficult to spot any difference. I think I see some small brightness changes here and there, but not a day and night changes.
I am using the 3-1 workflow with the MDL primaries set to P3 4000 nits (taken from MediaInfo) and using the auto level 5. I am using a Ugoos AM6+ with CoreElec (and have also tried my X800m2) through a Denon X4800 receiver with ultra high speed hdmi 2.1 cable to receiver and to TV. The Ugoos is cable connected to a Synology DS920+ NAS. LG G4 77” (not calibrated) but using the picture settings from https://www.flatpanelshd.com/review....d=1727259776#4. I have tried to tweak these settings with the Spears & Munsil UHD calibration disc earlier on, which only updated these settings marginally. I have converted the HDR10+ movies above, Inception, Black Hawk Down and the two Blade Runner movies, but stalling on my remaining +50 HDR10 movies as it is quite a time consuming exercise (9-14 hours per movie), which I can’t “justify” for a marginally effect. Have I been too optimistic and set my expectations too high? Any advise or further clarifications on what the tool pack should do will be very helpful. |
|
|
|
|
|
#1018 | Link |
|
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 791
|
The G4 is a bright TV, so unless the content is constantly higher than your TV's 1500nits peak brightness, there will not be much difference between HDR10 and DV in most movies because no tone mapping is required. TVs get brighter every year, so eventually, DV will be useless.
PS: You should never rely on any form of auto-L5 or auto black border detection; always do the measurement manually for proper results. This is even more important now that the ugoos AM6B+ and CPM 13 support it. You can look at the brightness plot and decide if it's worth the effort. You can also create metadata comparisons with workflow 7-4 to see the tone mapping effect of DV on your TV. EG, this is on a 400nits display (your G4 is 1500nits)
__________________
DoVi_Scripts //// Dolby Vision Stuff (more tabs below) LG OLED G5 77'' + 7.2.4 Denon AVR + Ugoos AM6Bplus + Kaleidescape Strato E Sorry for my English Last edited by Kuler087; 1st March 2025 at 15:35. |
|
|
|
|
|
#1019 | Link | |
|
Registered User
Join Date: Feb 2025
Posts: 2
|
Quote:
Thanks for the clarification. |
|
|
|
|
|
|
#1020 | Link |
|
Registered User
Join Date: Dec 2024
Posts: 39
|
Hi RESET, everytime I try to use workflow 7-4 or workflows of Mode 6 and the input is a DV mkv (profile 7 or 8), i get an error such as in the picture attached (basically the ffmpeg windows displays all kinds of weird symbols and crashes).
|
|
|
|
![]() |
| Tags |
| batch scripts, dolby vision processing, dovi_scripts |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|