Sectioning off filters

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
FinalResolve
Joined: Sun Apr 15, 2007 1:34 pm
Org Profile

Sectioning off filters

Post by FinalResolve » Thu Nov 29, 2007 2:48 pm

I'm trying to remove some noise through filtering in VirtualDubMod. Is it possible to tell the FRFun7() filter I'm using to only affect certain sections of the video?
Image

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Thu Nov 29, 2007 7:25 pm

You'll have to use Trim() in tandem with splice commands. For instance:

Code: Select all

AVISource("video.avi").Trim(0,1500) ++ AVISource("video.avi").Trim(1501,2500).deen("w3d",3,8,10) ++ AVISource("video.avi").Trim(2501,0)
In that scenario, the smoothing is done on the middle section of the video, frames 1501-2500. The double pluses make sure that any audio remains synced - even if there isn't audio, I still see it as the safer option just the same. That's also all written on one line - if you want to use new lines for it you have to put a \ at the end of each broken line, after the pluses.

There are likely to be more esoteric or programming-esque ways of doing the same thing, but what I posted will get it done also (for instance, doing the Trim commands and whatnot inside of separate scripts for each section, and then using one master script to unify them all with Import and splice commands; that way does at least let you use new lines the normal way instead of having to use \, although in the master script you'll have to do it on one line or with the \). Obviously you can replace deen with the filter you want to use.

User avatar
FinalResolve
Joined: Sun Apr 15, 2007 1:34 pm
Org Profile

Post by FinalResolve » Thu Nov 29, 2007 8:24 pm

Thanks. Ill try this.
Image

Locked

Return to “AviSynth Help”