VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    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?
    Quote Quote  
  2. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    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
    Quote Quote  
  3. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  4. Member
    Join Date
    Jul 2007
    Location
    United States
    Search Comp PM
    Blast...I need to be more detailed when I read... Thanks very much.
    Quote Quote  
  5. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    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
    Quote Quote  
  6. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    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.
    Quote Quote  
  7. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Thanks for the tip, Alan (always had to search for the last frame number).
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!