Several problems.

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Vax
Sexy black guy
Joined: Sat Oct 11, 2008 11:14 am
Status: Chayin
Location: New York
Org Profile

Several problems.

Post by Vax » Sun Dec 21, 2008 3:46 pm

Ok first I downloaded the new AMVapp from Zarx's thread, now half of my functions aren't working and half of them are turned into Avisynth autoload script which I have no idea how to function. I've downloaded some of the plugins again. I Could go back to my old AMVapp but there might be a possible way to fix this. I've also been trying to get the beforeafterline plug-in but I can't find it anywhere.

Now when I try to import footage into vdubmod it states "There is no function named expand" when I have nothing related to that in my script.

Code: Select all

AVISource("C:\Documents and Settings\HP_Owner\My Documents\Iron Chef.avi")
ConvertToYV12()
tcomb()
Deen("w3d",3,6,8)  
removegrain(mode=2)
VagueDenoiser() 
Fastlinedarken(strength=50,thinning=0)
limitedsharpen(strength=100)
warpsharp()
tweak(hue=1.0,sat=1.2,cont=1.1,bright=-2) 
TemporalCleaner()
It worked before I downloaded AMVapp 3.0 but now everything is fucked. It says the error is on line 7 but I see nothing. Is there something simple I'm missing?

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: Several problems.

Post by Scintilla » Sun Dec 21, 2008 5:49 pm

On Line 7, you call FastLineDarken(). If you look at the .AVS(I) file that contains this function (it should be in your AVISynth plugins directory), you'll see that it makes a call to Expand(), a function found in the MaskTools plugin. AVISynth apparently can't find this plugin.

So, if you don't see MaskTools.dll anywhere in your AVISynth plugins directory, then you need to get it (it may be found here). If you DO see it, then AVISynth is probably failing to autoload it because you've got a ton of plugins in that directory. Load it manually at the beginning of your script with the line:
LoadPlugin("C:\[your path goes here]\MaskTools.dll")
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Vax
Sexy black guy
Joined: Sat Oct 11, 2008 11:14 am
Status: Chayin
Location: New York
Org Profile

Re: Several problems.

Post by Vax » Tue Dec 23, 2008 3:32 pm

With that resolved. Can anyone help me with my beforeafter plug in problem?

User avatar
EvaFan
Joined: Sun Mar 21, 2004 10:25 pm
Status: (*゚▽゚)o旦~ ー乾杯ー♪
Location: Somerset, KY
Org Profile

Re: Several problems.

Post by EvaFan » Wed Dec 24, 2008 7:22 pm

Vax wrote:With that resolved. Can anyone help me with my beforeafter plug in problem?
Could some of the plugins have only worked with the older version of avisynth you had? If the new amvapp gave you a newer version of avisynth then you might need newer versions of the plugins for compatability.
"The people cannot be [...] always, well informed. The part which is wrong will be discontented, in proportion to [...] the facts they misconceive. If they remain quiet under such misconceptions, it is lethargy, the forerunner of death to public liberty. What country can preserve its liberties, if it's rulers are not warned [...] that this people preserve the spirit of resistance? The tree of liberty must be refreshed from time to time, with the blood of patriots and tyrants."-Thomas Jefferson

User avatar
Vax
Sexy black guy
Joined: Sat Oct 11, 2008 11:14 am
Status: Chayin
Location: New York
Org Profile

Re: Several problems.

Post by Vax » Thu Dec 25, 2008 10:04 am

Eva-Fan wrote:
Vax wrote:With that resolved. Can anyone help me with my beforeafter plug in problem?
Could some of the plugins have only worked with the older version of avisynth you had? If the new amvapp gave you a newer version of avisynth then you might need newer versions of the plugins for compatability.
I never had the beforeafer plug-in. I thought it would be in the new amvapp, but I was wrong. Now I just need to know where to find it.

User avatar
EvaFan
Joined: Sun Mar 21, 2004 10:25 pm
Status: (*゚▽゚)o旦~ ー乾杯ー♪
Location: Somerset, KY
Org Profile

Re: Several problems.

Post by EvaFan » Thu Dec 25, 2008 2:06 pm

ahhhh... I thought you were talking about a before and after installation of the new amvapp causing problems for some or all of your plugins not the actual plugin "beforeafter()"

##################################################################
# BeforeAfter by Absolute Destiny and Corran (Eric Parsons) #
# e.g. #
# beforeafter(clip, placement, filters) #
# #
# 1 for vertical splitscreen, 0 for horizontal splitscreen #
##################################################################

function beforeafter(clip a, int "placement", string "filters"){

placement = Default(placement, 1)

Assert((Float(Width(a))/16)==Round(Width(a)/16), "Source image width must be a multiple of 16")

b = Eval("a."+filters)
c = (placement==1) ? StackHorizontal(a.Crop(0,0,-((Ceil(Float(Width(a))/32))*16),0).\
Subtitle("before"),b.Crop(((Floor(Float(Width(a))/32))*16),0,0,0).\
Subtitle("after")) :StackVertical(a.Crop(0,0,0,-Height(a)/2).Subtitle("Before"),b.\
Crop(0,Height(a)/2,0,0).Subtitle("After"))

Return c
}

Just put that on a notepad and save it as a .avsi in your plugins folder. If it isn't loading automatically your gonna have to load it yourself then. Just so you know though, there are programs out there that let you see changes from your script real-time. I use AvisynthEditor. There are other programs though.
"The people cannot be [...] always, well informed. The part which is wrong will be discontented, in proportion to [...] the facts they misconceive. If they remain quiet under such misconceptions, it is lethargy, the forerunner of death to public liberty. What country can preserve its liberties, if it's rulers are not warned [...] that this people preserve the spirit of resistance? The tree of liberty must be refreshed from time to time, with the blood of patriots and tyrants."-Thomas Jefferson

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Re: Several problems.

Post by LantisEscudo » Thu Dec 25, 2008 2:53 pm

FastLineDarken() isn't in the new AMVApp. You can add it pretty easily, though.

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)
}
And save it as a .avsi in your plugins directory.

User avatar
Vax
Sexy black guy
Joined: Sat Oct 11, 2008 11:14 am
Status: Chayin
Location: New York
Org Profile

Re: Several problems.

Post by Vax » Thu Dec 25, 2008 6:11 pm

Ok, now what I'm stomped on is what do you write in your script to get "beforeafter" in there.

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Re: Several problems.

Post by LantisEscudo » Thu Dec 25, 2008 6:29 pm

I normally use BeforeAfterLine(), but the arguments are the same: the video to process, and the string of filters to run on it.

Mine normally looks something like BeforeAfterLine(last, """deen("w3d", #, #).FastLineDarken()"""). Note the TRIPLE QUOTE MARKS. Those are important, and it'll fail if you don't have them. Also, you have to stack filters by using the "." between them, rather than on separate lines like usual. If it gets too wide for you to read easily, you can use the backslash notation like this (put the backslash at the end of the line):

Code: Select all

BeforeAfterLine(last, """deen("w3d", #, #).\
FastLineDarken()""")

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Re: Several problems.

Post by LantisEscudo » Thu Dec 25, 2008 6:32 pm

LantisEscudo wrote:I normally use BeforeAfterLine(), but the arguments are the same: the video to process, and the string of filters to run on it.
I should correct myself. Three arguments: the video to process, a 1 or 0 to indicate whether it's a horizontal or vertical split, and the string of filters. The 1 or 0 is optional, and the default is a vertical split, so I usually leave that argument out.

Locked

Return to “AviSynth Help”