Log in

View Full Version : flaxen's VirtualDub-filter with AviSynth


mwillberg
15th April 2002, 20:02
Hello everybody,

I am trying to make an avs-script for my TV-caps, but I also need to use some VirtualDub-filter. I found out how to use "vdfilters.avs", but whenever I try to use flaxen's Cartoon-filter I get "Avisynth: caught an access violation at 0x01d61523, attempting to read from 0x02016000".

For reference, this is my script:

start=4250
com_start=24220
com_end=28970
end=41420

LoadPlugin("C:\PROGRA~1\Video\BITRAT~1\GORDIA~1.20\Avisynth_Spatial.dll")
LoadPlugin("C:\PROGRA~1\Video\BITRAT~1\GORDIA~1.20\GreedyHMA.dll")
LoadPlugin("C:\PROGRA~1\Video\BITRAT~1\GORDIA~1.20\mpeg2dec.dll")
Import("vdfilters.avs")

SegmentedAVISource("CAPTURE.AVI")

Trim(start,com_start)+Trim(com_end,end)

GreedyHMA(1,0,0,0,0,0,0,0)

ConvertToRGB()
VD_VHS(true,5,30,15,5,10,1,true,false,false,15,false,-1,0,false,false)
VD_CartoonTool(last,16,200,16)#also tried using "last" as first arg.
TemporalSmoother(2)
crop(5,3,710,566)
BilinearResize(480,352)


Everything works unless I use the Cartoon-filter, that leads to the exception described above.

Does anyone have any idea what the problem could be?

Acaila
15th April 2002, 22:13
With VD_CartoonTool(last,16,200,16) you are refering to a piece of video previously assigned to "Last". But you didn't define "Last" anywhere in your script, so Avisynth can't use that filter correctly and crashes.

Use either of these examples to make it work:
1:
VD_CartoonTool(16,200,16)

2:
Last=Trim(start,com_start)+Trim(com_end,end)
VD_CartoonTool(Last,16,200,16)

mwillberg
16th April 2002, 05:48
I'm sorry, there was a typo in the version of the script I posted. That line should be:

VD_CartoonTool(16,200,16)#also tried using "last" as first arg.

My comment meant that I have tried it with and without the implicit last. It's quite possible to put "last" somewhere without first defining it, as I understood it is used implicitely if it's not added manually. See for example the documentation for the Animate-filter och www.videotools.net. That is the only filter that I know that requires explicitly using "last", all others work with or without it.

So, thanks for your help, but that was not the problem, just a typo in the pasted script.

Acaila
16th April 2002, 13:14
Yeah, I remember that now. It's just that I never use anything without defining it first, so I forgot about that exception.

Sorry for my incorrect info :(