IS there a way to apply a filter to a specific range of frames? I have several filters in my script that I want to work on the entire encode, but I want one of them to filter in a specific range of frames only. Is this possible?
source=("c:\movie.avi") a=trim(source,0,100) #trim first 100 frames b=trim(source,101,0) #trim frames 101 to end a1=BicubicResize(a,640,480,0,0.5) a2=c3d(a1) done1=a2 b1=BilinearResize(b,640,480) b2=LumaFilter(b1) done2=b2 alldone=done1+done2 return alldone Thats how I do this kind of thing anyway. I find it is useful for credits when I use it with xvid's credits treatment.
--------------------- "To live in the hearts we leave behind is to never die" -Carl Sagan
If you want to use Convolution3D and UnDot on the whole thing and just ReverseFieldDominance on frames 2000-25000, it would look like this: LoadPlugin("c:\Convolution3D.dll") LoadPlugin("c:\UnDot.dll") source=("c:\movie.avi") a=Trim(source,0,1999) b=Trim(source,2000,25000) c=Trim(source,25001,0) a1=Convolution3D(a,Preset="MovieHQ") a2=UnDot(a1) done1=a2 b1=Convolution3D(b,Preset="MovieHQ") b2=UnDot(b1) b3=ReverseFieldDominance(b2) done2=b3 c1=Convolution3D(c,Preset="MovieHQ") c2=UnDot(c1) done3=c2 alldone=done1+done2+done3 return alldone There should be a faster way to do this, ie put c3d and undot in before you trim but for some reason I couldn't make it work when I was debugging it, but it should probably work.
I got around to trying this, and I keep getting this script error in VirtualDubMod (1.5.4.1): Invalid arguments to function "Convolution3D" Here's my script: LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3D.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ReverseFieldDominance.dll") Source=("e:\capture.avi").Convolution3D(0,8,12,10,16,2,0).UnDot() part1=Trim(Source,0,8290) part2=Trim(Source,8291,84470).ReverseFieldDominance() part3=Trim(Source,84471,0) Return part1+part2+part3 I am using AVISynth 2.52 What am I doing wrong?
What can I say, you guys are great! Before I posted the last time, I did try putting "AVI" before each "Source," but it still wouldn't work. Then I put it just before the first "Source" and it gave me an error that "Source is not a known command." Omitting the other Sources (the ones in the trim portion of the script) seems to have done the trick. Thanks again.