How to add filters to script?
- Vanity
- Joined: Fri Dec 28, 2007 10:52 pm
- Status: XIII
- Location: Everywhere, yet no where
How to add filters to script?
I keep getting this error and im not sure how to add these three filters to my script in the right order =/.
my script:
mpeg2source("C:\Documents and Settings\HP_Administrator\My Documents\My Music\vid.d2v")
ConvertToYV12(interlaced=true)
Telecide(order=1)
Crop(8,0,-8,0)
LanczosResize(640,480)
filters i want to add:
deen("a3d",4,11,10)
FastLineDarken(thinning=0)
SSXSharpen()
Tweak(sat=1.25)
How do i add these three to my script ?
my script:
mpeg2source("C:\Documents and Settings\HP_Administrator\My Documents\My Music\vid.d2v")
ConvertToYV12(interlaced=true)
Telecide(order=1)
Crop(8,0,-8,0)
LanczosResize(640,480)
filters i want to add:
deen("a3d",4,11,10)
FastLineDarken(thinning=0)
SSXSharpen()
Tweak(sat=1.25)
How do i add these three to my script ?
- Krisqo
- Cooking Oil
- Joined: Mon Jul 07, 2003 1:22 pm
- Status: W.O.A (Waiting on Aion)
- Location: Moderating the Adobe Forums
Re: How to add filters to script?
What is the error? Are the plugins in your AVISynth plugins folder?
As for order it's best to do your smoothing first followed by your sharpening since sharpening before smoothing will actually sharpen any artifacts making removal pretty difficult. Though some require you to place them in specific places. The order you have there looks okay. Maybe flip FastLineDarken and SSXSharpen.
As for order it's best to do your smoothing first followed by your sharpening since sharpening before smoothing will actually sharpen any artifacts making removal pretty difficult. Though some require you to place them in specific places. The order you have there looks okay. Maybe flip FastLineDarken and SSXSharpen.
- Vanity
- Joined: Fri Dec 28, 2007 10:52 pm
- Status: XIII
- Location: Everywhere, yet no where
Re: How to add filters to script?
This is the dam error i gotz =/



- Vax
- Sexy black guy
- Joined: Sat Oct 11, 2008 11:14 am
- Status: Chayin
- Location: New York
Re: How to add filters to script?
From what I'm seeing it's saying there is no function named fastlinedarken.
So, you would insert this..
into notepad and save it with the extension of .avsi into your avisynth plug-in directory. I don't think it was the order of your script that was wrong.
So, you would insert this..
Code: Select all
function FastLineDarken( clip c, int "strength", int "luma_cap", int "threshold", int "thinning") {
str = string(default(strength, 48) /128.)
lum = string(default(luma_cap, 191))
thr = string(default(threshold, 4))
thinning = default(thinning,24)
thn = string(thinning /16.)
exin=c.mt_expand().mt_inpand()
diff = mt_lutxy(c,exin,yexpr="y "+lum+" <y> x y "\
+lum+" < y "+lum+" ? - 0 ? 127 +",uexpr="x",vexpr="x")
linemask = mt_lut(diff.mt_inpand(),"x 127 - "+thn+" * 255 +")\
.mt_convolution("1 1 1","1 1 1",y=3,u=0,v=0)
thick = mt_lutxy(c, exin, yexpr="y "+lum+" <y> x y "\
+lum+" < y "+lum+" ? - 0 ? "+str+" * x +",uexpr="x",vexpr="x")
thin = mt_lutxy(c.mt_expand(),diff,yexpr="x y 127 - "+str+" 1 + * +")
return (thinning == 0) ? thick : mt_merge(thin,thick,linemask,y=3,u=4,v=4)
- Vanity
- Joined: Fri Dec 28, 2007 10:52 pm
- Status: XIII
- Location: Everywhere, yet no where
Re: How to add filters to script?
now its saying that i don't have SSXsharpen when I already have Warpsharp in the plugin directory so idk what going on with that
- Vax
- Sexy black guy
- Joined: Sat Oct 11, 2008 11:14 am
- Status: Chayin
- Location: New York
Re: How to add filters to script?
http://aquilinestudios.org/avsfilters/sharpeners.htmlZenkia wrote:now its saying that i don't have SSXsharpen when I already have Warpsharp in the plugin directory so idk what going on with that
Just scroll down a little and you'll find SSXsharpen.
- Vanity
- Joined: Fri Dec 28, 2007 10:52 pm
- Status: XIII
- Location: Everywhere, yet no where
Re: How to add filters to script?
i did but it just has info on it....what do i do? 

- Vax
- Sexy black guy
- Joined: Sat Oct 11, 2008 11:14 am
- Status: Chayin
- Location: New York
Re: How to add filters to script?
Did you not see the download link?Zenkia wrote:i did but it just has info on it....what do i do?
http://mf.creations.nl/avs/functions/
You downoad sharptools and save it into your plug-in directory. It is a function that allows SSXSharpen to work. So now I'm guessing that problem should be resolved. What next?
- Vanity
- Joined: Fri Dec 28, 2007 10:52 pm
- Status: XIII
- Location: Everywhere, yet no where
Re: How to add filters to script?
can you copy the function because im not sure im copying it the correct way =|
- Scintilla
- (for EXTREME)
- Joined: Mon Mar 31, 2003 8:47 pm
- Status: Quo
- Location: New Jersey
- Contact:
Re: How to add filters to script?
When you saved the SharpTools file, did you remember to change the extension from .AVS to .AVSI so that the functions within can autoload?