Log in

View Full Version : Avisynth read error, what is wrong with my script?


Chainmax
10th May 2004, 18:45
I am trying to rip one of my DVDs using the following script:

SetMemoryMax(160)
loadplugin("wherever\MPEG2Dec3.dll")
loadplugin("wherever\MaskTools.dll")
loadplugin("wherever\TCombMask.dll")
loadplugin("wherever\kerneldeint140.dll")
Import("wherever\intellibob.avs")
loadplugin("wherever\avisynth_c.dll")
loadCplugin("wherever\SmartDecimate.dll")
loadplugin("wherever\deen.dll")
loadplugin("wherever\Motion.dll")
loadplugin("wherever\UnFilter.dll")
Import("wherever\HybridFuPP.avs")
loadplugin("wherever\MSharpen.dll")
mpeg2source("wherever\GotF.d2v")
assumetff()
SmartDecimate(24,60,bob=intellibob())
crop(8,4,704,472,align=true)
hybridFupp(592,320,preset="anime",resizer=5)
MSharpen()

When I load it into VDubMod (I am using v1.5.4.1) and try to step through the video, I get a "read error, unknown exception" message. What am I doing wrong?

nicco
10th May 2004, 19:00
Try deactivate one-by-one (#) and wait for the bad one!

Chainmax
10th May 2004, 19:28
I can't just uncomment each line one by one. Each AVS script requires several DLLs.

FuPP
10th May 2004, 21:30
HybridFupp is an avsi file, not avs.

Some tips : try to replace HybridFuPP line by a simple resize. Or try to comment the smartdecimate line (and the corresponding dll). Try to reduce size (could be a memory problem).

FuPP

Chainmax
10th May 2004, 22:39
I renamed the file to HybridFuPP.avs.
The following script:

SetMemoryMax(160)
loadplugin("wherever\Avisynth Filters\MPEG2Dec3.dll")
loadplugin("wherever\dgbob.dll")
loadplugin("wherever\avisynth_c.dll")
loadCplugin("wherever\SmartDecimate.dll")
loadplugin("wherever\deen.dll")
loadplugin("wherever\MaskTools.dll")
loadplugin("wherever\Motion.dll")
loadplugin("wherever\UnFilter.dll")
Import("wherever\HybridFuPP.avs")
loadplugin("wherever\MSharpen.dll")
mpeg2source("wherever\GotF.d2v")
assumetff()
SmartDecimate(24,60,bob=DGBob(order=1,mode=0))
crop(8,4,704,472,align=true)
hybridFupp(592,320,preset="anime",resizer=5)
MSharpen()
(other changes: I eliminated the KernelDeint and TCombMask lines) Makes the following error message appear when it's loaded in VDubMod:

Avisynth open failure:
Bob source frame rate incorrect

Chainmax
10th May 2004, 23:34
This script:

SetMemoryMax(160)
loadplugin("wherever\MPEG2Dec3.dll")
loadplugin("wherever\Decomb511.dll")
loadplugin("wherever\MaskTools.dll")
loadplugin("wherever\deen.dll")
loadplugin("wherever\Motion.dll")
loadplugin("wherever\UnFilter.dll")
Import("wherever\HybridFuPP.avs")
loadplugin("wherever\MSharpen.dll")
mpeg2source("wherever\GotF.d2v")
Telecide(order=1,guide=1,post=2,vthresh=25,blend=false,chroma=true,back=1,bthresh=15)
Decimate(cycle=5,mode=2,quality=3)
crop(8,4,704,472,align=true)
hybridFupp(592,320,preset="anime",resizer=5)
MSharpen()

Replacing SmartDecimate with Decomb solved the issue. Why would SD not work?

FuPP
11th May 2004, 00:14
try to separate avisynth_c.dll and smartdecimate.dll from the other plugins : cf http://forum.doom9.org/showthread.php?threadid=75654&highlight=smartdecimate

Chainmax
11th May 2004, 00:39
Well, Bogalvator seems to be saying that avisynth_c.dll and smartdecimate.dll shouldn't be on avisynth's plugin folder. All of the DLLs I'm using are on a dedicated folder.
I have just tried putting avisynth_c.dll and smartdecimate.dll on a different folder than the rest of the plugins and got the same error message.

DDogg
11th May 2004, 01:16
I found it easier to rename hybridFupp.avs to hybridFupp.avsi and put it in my plugins folder instead of importing it. I can never get anything that uses the avisynth_c.dll to work. It should be in your system folder I think, but like I said, the grief is not worth it for me. Could well be error on my part. I know there was a time, and it may still be, that putting it, or maybe it was smartdecimate, in your plugins folder would cause all kinds of problems. It was a few versions back that I tried it tho.

Chainmax
11th May 2004, 02:26
In the last script I posted HybridFuPP is imported and I don't get any error messages, so HybridFuPP importing is not the issue. SmartDecimate and its needed DLLs are the ones causing problems.

Bogalvator
11th May 2004, 04:27
Hi Chain,

Try using:

a=intellibob() #or DGBob(...) etc
smartdecimate(24,60,bob=a)

instead of

smartdecimate(24,60,bob=intellibob())

Also, may as well keep the avisynth_c.dll and smartdecimate.dll separate from the other plugins just in case.

Chainmax
11th May 2004, 19:17
Wow, it worked! Thanks a bunch, Bogalvator!!! :)

Everyone, here's the script that worked:

SetMemoryMax(160)
loadplugin("X:\wherever\Avisynth Filters\MPEG2Dec3.dll")
loadplugin("X:\wherever\Avisynth Filters\MaskTools.dll")
loadplugin("X:\wherever\Avisynth Filters\TCombMask.dll")
loadplugin("X:\wherever\Avisynth Filters\kerneldeint140.dll")
Import("X:\wherever\Avisynth Filters\intellibob.avs")
loadplugin("X:\wherever\sd_plugins\avisynth_c.dll")
loadCplugin("X:\wherever\sd_plugins\SmartDecimate.dll")
loadplugin("X:\wherever\Avisynth Filters\deen.dll")
loadplugin("X:\wherever\Avisynth Filters\Motion.dll")
loadplugin("X:\wherever\Avisynth Filters\MSharpen.dll")
loadplugin("X:\wherever\Avisynth Filters\UnFilter.dll")
Import("X:\wherever\Avisynth Filters\HybridFuPP.avs")
mpeg2source("X:\wherever\GotF.d2v")
assumetff()
a=intellibob()
SmartDecimate(24,60,bob=a)
crop(8,4,704,472,align=true)
hybridFupp(592,320,preset="anime",resizer=5)
MSharpen()

So, basically I put avisynth_c.dll and SmartDecimate.dll in a separate folder from the rest of the plugins (which were not on the plugins folder either) and intellibob was invoked differently. I hope this helps out anyone who's been having trouble with SmartDecimate. Should I create a thread explaining this workaround?

Wilbert
11th May 2004, 23:24
Could you put avisynth_c.dll and SmartDecimate.dll back in the same folder as the others and try again? I ask this, because I don't have that problem.

Chainmax
12th May 2004, 01:43
In the try I referred to in the first post, all the DLLs where in a folder called "Avisynth Filters".

Wilbert
12th May 2004, 09:50
That's a different script because of the "intellibob was invoked differently".

Chainmax
12th May 2004, 14:10
Yeah, you're right. I'll try that this afternoon and report back.

Chainmax
12th May 2004, 22:20
Well, I already deleted the file and burned it to CD, but I started a new encode that also uses this. I received no error message when moving SmartDecimate.dll and avisynth_c.dll back with the other plugins. So, the only fix I needed for this to work was to invoke intellibob this way:

a=intellibob()
SmartDecimate(24,60,bob=a)