Log in

View Full Version : RemoveDirt not working for me?


EuropeanMan
18th October 2008, 18:20
A buddy of mine passed along a script


clip=last
bvec = clip.MVAnalyse(isb=false, blksize=8, delta=1, pel=2, truemotion=true, idx=1)
fvec = clip.MVAnalyse(isb=true, blksize=8, delta=1, pel=2, truemotion=true, idx=1)
backw = clip.MVFlow(bvec)
forw = clip.MVFlow(fvec)
clp=interleave(backw,clip,forw)
clp=clp.removedirt(10,0,false)
clp=clp.SelectEvery(3,1)
return clp


I have a source that has plenty of dust/spots all over...he had shown me before & after png's and I was impressed...I'd like to use it, but for whatever reason, I get an error: Invalid Arguments. I've downloaded the RemoveGrain package as well as RemoveDirt...please help?

I even have the Load Plugin line as well...


DGDecode_mpeg2source("C:\Users\...\VTS_01_1.d2v",info=3)
Loadplugin("C:\users\farooq\desktop\scripts\filters\warpsharp\WarpSharp.dll")
Loadplugin("C:\users\farooq\desktop\scripts\filters\mvtools\mvtools.dll")
LoadPlugin("C:\program files\avisynth 2.5\plugins\removedirt.dll")

crop( 2, 68, -2, -66)

clip=last
bvec = clip.MVAnalyse(isb=false, blksize=8, delta=1, pel=2, truemotion=true, idx=1)
fvec = clip.MVAnalyse(isb=true, blksize=8, delta=1, pel=2, truemotion=true, idx=1)
backw = clip.MVFlow(bvec)
forw = clip.MVFlow(fvec)
clp=interleave(backw,clip,forw)
clp=clp.removedirt(10,0,false)
clp=clp.SelectEvery(3,1)
return clp

LanczosResize(624,336)

Sagekilla
18th October 2008, 18:40
Well, what is the exact error message? Invalid arguments to what? Post the whole error message!

EuropeanMan
18th October 2008, 21:04
http://i167.photobucket.com/albums/u148/FarooqBhai/error-2.jpg

Spuds
18th October 2008, 23:24
The removedirt.dll does not have a removedirt function, well at least not since version 0.6.1 sometime back in 2005. The current version instead has removedirt implemented as a script function that you will need to add yourself, either as a function in your current script or as an import. The script itself is given in detail in the functions documentation.

That said, the current removedirt script and the way its called (10,0,false) from your script are not compatible.

Why not just ask your buddy for his removedirt script or dll ?

EuropeanMan
19th October 2008, 00:40
^ thanks spuds; you ROX