Log in

View Full Version : Filter for a especific time


BiO-HaZaRd
26th January 2008, 04:10
Is there a way to apply a filter for a specific time o frames??

Thanks for the help!

Adub
26th January 2008, 04:16
a.Trim(x,y)
b.Trim(a,b)

a.stuff
b.stuff

a ++ b

BiO-HaZaRd
26th January 2008, 04:20
could you explain it a little bit?

I suppose (x,y) and (a,b) means frames?

I really didn't understand much...

BiO-HaZaRd
26th January 2008, 04:31
For explame I have a video were i want to apply a filter only during the middle part...

for example if the video had 10000 frames and i want to aply it only durin 2000-8000 frames, how shouyld I do it?

P.D.: Sorry for the double post :S

Guest
26th January 2008, 04:46
video=AVISource("file.avi")
a=video.trim(0,1999)
b=video.trim(2000,8000).yourfilterchain()
c=video.trim(8001,0) # 0 here means end of the clip
a++b++c

Read the Avisynth documentation for further explanation.

BiO-HaZaRd
26th January 2008, 05:00
Ok thanks a lot man ;)

stickboy
26th January 2008, 05:57
You also might want to look at the built-in ApplyRange function (or at my JDL_ApplyRange function).