View Full Version : How can I apply different filters to different parts
Gooberslot
1st June 2005, 04:44
This maybe a n00b question but is there anyway to apply different filters to different parts of the video. I'm trying to encode an anime episode and the problem is that the anime itself is telecined but the intro appears to be just interlaced. So, I need a way to deinteralce the intro and cut it's frame rate down to 23.976 while performing ivtc on the rest of it.
acrespo
1st June 2005, 05:29
Do a script like that:
video1=Trim(0,100) #first 100 frames
video1=video1.TomsMoComp(1,5,0) #or other deinterlace method
video2=Trim (100,150000) #the last frames
video2=video2.Telecide(order=1) #change the parameters according your video
video1++video2 # to join the two videos
hmm ... just some small corrections :
video1=Trim(0,100) #first 100 framesit gives the first 101 frames
video2=Trim (100,150000) #the last framestrim(100,0) can be used instead. this way u need to know only the cut-point but not the whole frame number ;)
further, your script processes frame100 twice and on joining the clip becomes 1 frame longer than the original
the bests
y
zilog jones
1st June 2005, 13:48
ApplyRange can do the same thing without having to make different clip variables. It's explained pretty well in the manual. If you want to apply more than one filter at a time all you need to do is make a function, and put that in ApplyRange.
Gooberslot
2nd June 2005, 04:36
How would I go about defining my own function? I looked in the docs and it only gives 2 examples of user-defined functions with no explanations.
gircobain
2nd June 2005, 05:04
Syntax is explained fairly well at http://www.avisynth.org/ScriptFunctions under User defined functions
stickboy
2nd June 2005, 05:16
There also are many, many more examples at www.avisynth.org/ShareFunctions
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.