newbie question - selective application of filters

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
rpm77
Joined: Fri Jun 30, 2006 3:42 pm
Org Profile

newbie question - selective application of filters

Post by rpm77 » Tue Apr 22, 2008 9:07 pm

I'm currently in the post-production phase of my amv, and after applying several filters using the aviSynth script editor in VirtualDubMod, the video looks great...except for one tiny section that was actually made worse.

So I was wondering, is there a way to apply filters to all of a video *except* one spot in the middle?

Help appreciated. :)

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Tue Apr 22, 2008 9:28 pm

clip a = trim(0,the frame # that start the clip you want to exclude).filter
cilp b = trim(frame # that starts your excluded section, frame # that ends your excluded section)
clip c = trim( frame # that ends your excluded section, last frame #).filter
return a+b+c

so let's say you want to use the following chain on every frame except frames 10-20 (your video is 30 frames long):
deen("a3d",3,3,3)
undot()
vmtoon()

your script would end up looking like

Code: Select all

clip a = trim(0,10).deen("a3d",3,3,3).undot().vmtoon()
clip b = trim(10,20)
clip c = trim(20,30).deen("a3d",3,3,3).undot().vmtoon()
return a+b+c
if you need to keep a/v sync you should use "++" instead of "+"

I've never done this myself, so it's possible that I messed the script up somewhere
Image
Image

rpm77
Joined: Fri Jun 30, 2006 3:42 pm
Org Profile

Post by rpm77 » Fri Apr 25, 2008 11:54 pm

Thank you for responding so quickly. I tried the code, and I get an error message stating "I don't understand what 'clip' means."

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Sat Apr 26, 2008 3:07 am

tried it out myself, remove "clip" and it'l work
Image
Image

Locked

Return to “AviSynth Help”