VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Hi. In the video I'm editing, there's a terrible slo-mo scene where the frames are aaaaabbbbbccccc etc. I can put it back to normal speed with
    Code:
    trim(0,0)++trim(5,5)++trim(10,10) etc
    but I'd be there all day. Is there a way to script "start at frame 1234 then use every fifth frame"?
    Many thanks.
    Quote Quote  
  2. SelectEvery is part of Avisynth and does what you want.
    Code:
    SelectEvery(clip, 5, 0)
    chunks the source in groups of 5 and just keeps the first of each group.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. SelectEvery(5, 2) would mean for each group of 5 frames you're keeping the third one (as Avisynth starts counting at zero).

    Assuming it's a section in the middle of the video, say from frames 1234 to 2233.

    A = last
    B = A.Trim(0, 1233)
    C = A.Trim(1234, 2233).SelectEvery(5, 0).AssumeFPS(24) # or whatever the original frame rate is
    D = A.Trim(2234, 0)

    B + C + D

    or select 1 frame from each group of 5 starting at frame zero.

    A = last
    B = A.Trim(0, 1233)
    C = A.Trim(1234, 2233).SelectRangeEvery(5, 1, 0)
    D = A.Trim(2234, 0)

    B + C + D

    Edit: Selur beat me to it....
    Last edited by hello_hello; 9th Aug 2024 at 06:46.
    Quote Quote  
  4. Brilliant, lads. Thanks a lot.
    Quote Quote  



Similar Threads

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