PDA

View Full Version : noobie: script error


vie2233hil
17th May 2005, 22:24
Here's the script:


LoadPlugin("DGDecode.dll")
LoadPlugin("KernelDeInt.dll")
LoadPlugin("repal.dll")
LoadPlugin("undot.dll")

function kernelbob()
{
f=a.kerneldeint(order=1, sharp=true, twoway=true, threshold=th)
e=a.separatefields.trim(1,0).weave.kerneldeint(order=0, sharp=true, twoway=true, threshold=th)
interleave(f,e)
}

mpeg2source("s.d2v",cpu=6,idct=5)
kernelbob(4)


It gives me error "KernelDeint: you must specify the order parameter"
When I try kerneldeint outside of function it works fine

Plz help

neuron2
17th May 2005, 22:45
function kernelbob(clip a, int th)
{
...

vie2233hil
17th May 2005, 23:23
That's what it says in the script, I dunno how I pasted it w/o the arguments.
Full script that gives the error again:


LoadPlugin("DGDecode.dll")
LoadPlugin("KernelDeInt.dll")
LoadPlugin("repal.dll")
LoadPlugin("undot.dll")

function kernelbob(clip a, int th)
{
f=a.kerneldeint(order=1, sharp=true, twoway=true, threshold=th)
e=a.separatefields.trim(1,0).weave.kerneldeint(order=0, sharp=true, twoway=true, threshold=th)
interleave(f,e)
}

mpeg2source("s.d2v",cpu=6,idct=5)
#trim(1,91489)

# decomb
kernelbob(4)
repal()

crop(8,2,-14,0)
undot()
LanczosResize(576,432)

Wilbert
17th May 2005, 23:45
You need to give the "th" argument some value, thus

kernelbob(4, 40)
repal()

or whatever threshold people pick.

vie2233hil
18th May 2005, 00:52
I kinda find the error, avisynth defines it's own kernelbob which does not work so I renamed the function to kernelbob2

stickboy
18th May 2005, 01:15
AviSynth does not have an internal KernelBob function. If you have one, then it's coming from some plug-in or some other auto-loaded script.

And even so, script functions are supposed to override plug-ins and internal functions...