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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th April 2023, 03:47   #1  |  Link
DranzerX13
Registered User
 
Join Date: Jan 2008
Posts: 5
Avisynth+ with QTGMC + AnimeIVTC Plugin script trouble

This is my script:

LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\Dranz\Desktop\BBBNV01.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\ColorMatrix.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\RgTools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\masktools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\dfttest.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\fft3dfilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\nnedi3.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins+\Toon.dll")
Import("C:\Program Files (x86)\AviSynth+\plugins64+\AnimeIVTC.avsi")
Import("C:\Program Files (x86)\AviSynth+\plugins64+\QTGMC.avsi")
Import("C:\Program Files (x86)\AviSynth+\plugins64+\Zs_RF_Shared.avsi")

# Apply deinterlacing and upscaling using QTGMC to the main video with AnimeIVTC
main_video = Trim(0, 40309).ConvertToYV12() + QTGMC(preset="slower", ezdenoise=2.5, denoisemc=True, noisePreset="slow", sigma=4.0).AnimeIVTC(preset="slow").ConvertToYV12() + Trim(42407, -1).ConvertToYV12()
main_video = main_video.AssumeFPS(29.970)

# Apply separate filters to the ending theme section
ending_theme = Trim(40310, 42406).ConvertToYV12()
ending_theme = TDecimate(mode=0).AssumeFPS(29.970)

# Combine the processed main video and ending theme sections
video = main_video + ending_theme

# Apply additional filters to the video
video = Toon().Lanczos4Resize(848, 480)
video = video.fft3dfilter(sigma=2.0, plane=4).RemoveGrain(mode=2)

# Convert to YV12 colorspace
video = video.ConvertToYV12()

I had OpenAI's ChatGPT help me with this, but I'm stuck on 1 thing.... toon-v1.1.dll. I used Avisynth info tool and everything is good on both 32 bit and 64 bit plugins, but I still get this error:

Cannot load a 32 bit DLL in 64 bit Avisynth: 'C:/Program Files (x86)/AviSynth+/plugins+/Toon-v1.1.dll (C:\Users Dranz\Desktop\BBBNV01.avs, line 1)
Trying to use the AnimeIVTC plugin. I have all the required plugins for it too.

I get that error when using MeGUI, and VirtualDub, and AVSPMod to load the script.

Here's the prologue with the opening theme:
https://mega.nz/file/tBwmgbYZ#nc-4r7...DBHBujbqYLCBgo

Some years ago, a friend told me that the ending theme on the DVD is 23.976 over 29.70, and that's why these credits look the way they do. Here's the ending theme:
https://mega.nz/file/4MRERaxR#F9WQM2...Kz3ZuBzUnqNweI

Last edited by DranzerX13; 25th April 2023 at 04:05.
DranzerX13 is offline   Reply With Quote
Old 25th April 2023, 09:13   #2  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Provided you have both path structures populated correctly
Change
Code:
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins+\Toon.dll")
to
Code:
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\Toon.dll")
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is online now   Reply With Quote
Old 25th April 2023, 13:33   #3  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Can't load x86 plugins in avs+ x64, just delete that line have toon.dll. Only some functions need toon.dll
kedautinh12 is offline   Reply With Quote
Old 25th April 2023, 13:58   #4  |  Link
DranzerX13
Registered User
 
Join Date: Jan 2008
Posts: 5
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\Dranz\Desktop\BBBNV01.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\ColorMatrix.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\RgTools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\masktools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\dfttest.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\fft3dfilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\nnedi3.dll")
Import("C:\Program Files (x86)\AviSynth+\plugins64+\AnimeIVTC.avsi")
Import("C:\Program Files (x86)\AviSynth+\plugins64+\QTGMC.avsi")
Import("C:\Program Files (x86)\AviSynth+\plugins64+\Zs_RF_Shared.avsi")

# Apply deinterlacing and upscaling using QTGMC to the main video with AnimeIVTC
main_video = Trim(0, 40309).ConvertToYV12() + QTGMC(preset="slower", ezdenoise=2.5, denoisemc=True, noisePreset="slow", sigma=4.0).AnimeIVTC(preset="slow").ConvertToYV12() + Trim(42407, -1).ConvertToYV12()
main_video = main_video.AssumeFPS(29.970)

# Apply separate filters to the ending theme section
ending_theme = Trim(40310, 42406).ConvertToYV12()
ending_theme = TDecimate(mode=0).AssumeFPS(29.970)

# Combine the processed main video and ending theme sections
video = main_video + ending_theme

# Apply additional filters to the video
video = Lanczos4Resize(848, 480)
video = video.fft3dfilter(sigma=2.0, plane=4).RemoveGrain(mode=2)

# Convert to YV12 colorspace
video = video.ConvertToYV12()

Now it' saying this:

Error parsing avs file

Script error: AnimelVTC does not have a named argument preset
(C\Users\Dranz\Desktop\BBBNV01.avs, line 15)

Last edited by DranzerX13; 25th April 2023 at 14:00.
DranzerX13 is offline   Reply With Quote
Old 25th April 2023, 14:10   #5  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Check your script AnimeIVTC(preset="slow"). AnimeIVTC don't have argument preset
kedautinh12 is offline   Reply With Quote
Old 25th April 2023, 15:38   #6  |  Link
DranzerX13
Registered User
 
Join Date: Jan 2008
Posts: 5
I created this in AVSPMod and it works:

LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\DGDecode.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\nnedi3.dll")
Import("C:\Program Files (x86)\AviSynth+\plugins64+\daa3.avsi")

DGDecode_mpeg2source("C:\Users\Dranz\Desktop\BBBNV01.d2v", info=3)

nn = nnedi3(field=-2)
dbl = mt_average(selecteven(nn), selectodd(nn), U=3, V=3)
dblD = mt_makediff(last, dbl, U=3, V=3)
shrpD = mt_makediff(dbl, dbl.removegrain((width(dbl) > 1100) ? 20 : 11), U=3, V=3)
DD = shrpD.repair(dblD, 13)
daa = dbl.mt_adddiff(DD, U=3, V=3)

# Apply QTGMC filter for additional denoising and interpolation
processed = daa.QTGMC(preset="slower", ezdenoise=2.5, denoisemc=True, noisePreset="slow", sigma=4.0)

# Resize output to 848x480
resized = Spline36Resize(processed, 848, 480)

# Convert output to YV12 colorspace
resized.ConvertToYV12()

It doubles the framerate to 59.94fps though.

Last edited by DranzerX13; 25th April 2023 at 15:42.
DranzerX13 is offline   Reply With Quote
Old 25th April 2023, 16:57   #7  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 447
Quote:
Originally Posted by DranzerX13 View Post
...
I had OpenAI's ChatGPT help me with this, but I'm stuck on 1 thing.... toon-v1.1.dll. I used Avisynth info tool and everything is good on both 32 bit and 64 bit plugins, but I still get this error:

Cannot load a 32 bit DLL in 64 bit Avisynth: 'C:/Program Files (x86)/AviSynth+/plugins+/Toon-v1.1.dll (C:\Users Dranz\Desktop\BBBNV01.avs, line 1)
...
Use mToon instead of Toon.

Quote:
Originally Posted by DranzerX13 View Post
...
Now it' saying this:

Error parsing avs file

Script error: AnimelVTC does not have a named argument preset
(C\Users\Dranz\Desktop\BBBNV01.avs, line 15)
Here you can take a look what are the parameters of AnimeIVTC.
StvG is offline   Reply With Quote
Reply

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 01:10.


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