Log in

View Full Version : Avisynth+ with QTGMC + AnimeIVTC Plugin script trouble


DranzerX13
25th April 2023, 03:47
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-4r7E_xPWzB4CyBCrnq-gtYNNJzDBHBujbqYLCBgo

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#F9WQM2lvwPKljSHBN6zvNcwcBCRuWKz3ZuBzUnqNweI

Emulgator
25th April 2023, 09:13
Provided you have both path structures populated correctly
Change
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins+\Toon.dll")
to
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins64+\Toon.dll")

kedautinh12
25th April 2023, 13:33
Can't load x86 plugins in avs+ x64, just delete that line have toon.dll. Only some functions need toon.dll

DranzerX13
25th April 2023, 13:58
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)

kedautinh12
25th April 2023, 14:10
Check your script AnimeIVTC(preset="slow"). AnimeIVTC don't have argument preset

DranzerX13
25th April 2023, 15:38
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.

StvG
25th April 2023, 16:57
...
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 (https://github.com/realfinder/AVS-Stuff/blob/Community/avs%202.5%20and%20up/mToon.avsi) instead of Toon.

...
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 (https://github.com/realfinder/AVS-Stuff/blob/Community/avs%202.5%20and%20up/AnimeIVTC.avsi#L46-L55) you can take a look what are the parameters of AnimeIVTC.