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

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th February 2025, 14:24   #1001  |  Link
lemaireus
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?
lemaireus is offline   Reply With Quote
Old 25th February 2025, 14:57   #1002  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 791
I don't know. try installing this AVS+ https://github.com/AviSynth/AviSynth...5_vcredist.exe

__________________
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
Kuler087 is offline   Reply With Quote
Old 25th February 2025, 17:58   #1003  |  Link
lemaireus
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.
lemaireus is offline   Reply With Quote
Old 25th February 2025, 18:02   #1004  |  Link
lemaireus
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.
lemaireus is offline   Reply With Quote
Old 25th February 2025, 18:26   #1005  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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
Kuler087 is offline   Reply With Quote
Old 26th February 2025, 04:12   #1006  |  Link
lemaireus
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.
lemaireus is offline   Reply With Quote
Old 26th February 2025, 07:14   #1007  |  Link
lemaireus
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.
lemaireus is offline   Reply With Quote
Old 26th February 2025, 13:18   #1008  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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
Kuler087 is offline   Reply With Quote
Old 26th February 2025, 14:08   #1009  |  Link
lemaireus
Registered User
 
Join Date: Apr 2011
Posts: 99
This is how the avs script looks in avspmod:



However, when I try to run avspmod, before loading the avs script whose screenshot I've shared above, it gives me this error message:

lemaireus is offline   Reply With Quote
Old 26th February 2025, 14:10   #1010  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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
Kuler087 is offline   Reply With Quote
Old 26th February 2025, 14:25   #1011  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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
Kuler087 is offline   Reply With Quote
Old 26th February 2025, 15:39   #1012  |  Link
lemaireus
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.
lemaireus is offline   Reply With Quote
Old 26th February 2025, 15:52   #1013  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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
Kuler087 is offline   Reply With Quote
Old 26th February 2025, 16:19   #1014  |  Link
lemaireus
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?
lemaireus is offline   Reply With Quote
Old 26th February 2025, 16:38   #1015  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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
Kuler087 is offline   Reply With Quote
Old 26th February 2025, 16:56   #1016  |  Link
lemaireus
Registered User
 
Join Date: Apr 2011
Posts: 99
Thank you for the clarification, Kuler, and, once again, thank you for helping out with the script. Interacting with you is always such a pleasurable learning experience.
lemaireus is offline   Reply With Quote
Old 1st March 2025, 12:12   #1017  |  Link
Evilmatcher
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.
Evilmatcher is offline   Reply With Quote
Old 1st March 2025, 14:53   #1018  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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.
Kuler087 is offline   Reply With Quote
Old 1st March 2025, 15:44   #1019  |  Link
Evilmatcher
Registered User
 
Join Date: Feb 2025
Posts: 2
Quote:
Originally Posted by Kuler087 View Post
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.
Aaaaaaaaaaaaaaaah - that make sense.
Thanks for the clarification.
Evilmatcher is offline   Reply With Quote
Old 1st March 2025, 22:28   #1020  |  Link
Korbus
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).
Attached Images
File Type: jpg ffmpeg error.jpg (347.3 KB, 180 views)
Korbus is offline   Reply With Quote
Reply

Tags
batch scripts, dolby vision processing, dovi_scripts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.