Just that quick question is all... I have been reading documents on AviSynth, and I can't seem to find a mention of selecting part of a file (if it is possible). I just want to apply the tweak filter to only a section of the file. Is there an argument I can put in the code anywhere to do this, just like starting frame and ending frame?
+ Reply to Thread
Results 1 to 7 of 7
-
-
Use the Trim function to break the video into sections. Then apply the filter to the section you want, then reassemble.
"Shut up Wesley!" -- Captain Jean-Luc Picard
Buy My Books -
ApplyRange is a special case of Animate where start_args = end_args, and present in v2.51. It can be used when you want to apply a certain filter on certain range of frames of a clip. Another difference with Animate is that args can't contain a clip. Starting from v2.53 it supports audio, and start_frame can be equal to end_frame (such that only one frame is processed).
http://avisynth.org.ru/docs/english/corefilters/animate.htm -
Blast...I need to be more detailed when I read... Thanks very much.
-
A=Trim(0, 1000)
B=Trim(1001,2000).Tweak(....)
C=Trim(2001,10000)#10000 here is the last frame
A++B++C
or
ApplyRange(0,1000,"Tweak",hue=-30,sat=1.2,bright=20,cont=0.9)
#0,1000 are start/end frames -
I think this is neater.
Trim(0, 1000) ++\
Trim(1001,2000).Tweak(....) ++\
Trim(2001,0) #0 = last frame when at end of range
I do this a lot when filtering logos which fade in and out through a show. -
Thanks for the tip, Alan (always had to search for the last frame number).
Similar Threads
-
AviSynth and Filter Order
By sambat in forum EditingReplies: 3Last Post: 11th Jan 2012, 10:04 -
TMPGEnc cannot open the video part of the file, only the audio part can.
By dzsoul in forum Authoring (DVD)Replies: 15Last Post: 3rd Apr 2009, 08:36 -
Need Avisynth filter
By fubuki81 in forum RestorationReplies: 5Last Post: 30th Sep 2008, 13:04 -
How to apply a filter to just a part of the movie with VirtualDub
By Drakul in forum EditingReplies: 5Last Post: 19th Sep 2008, 17:08 -
Logoaway filter for AviSynth?
By DRP in forum Video ConversionReplies: 2Last Post: 8th Aug 2008, 04:30