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 withbut I'd be there all day. Is there a way to script "start at frame 1234 then use every fifth frame"?Code:trim(0,0)++trim(5,5)++trim(10,10) etc
Many thanks.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
SelectEvery is part of Avisynth and does what you want.
Code:SelectEvery(clip, 5, 0)
users currently on my ignore list: deadrats, Stears555 -
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.
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview)
Similar Threads
-
Are there any FFmpeg GUIs where I can select / clip exact frame timestamps?
By Oneechan69 in forum Video ConversionReplies: 0Last Post: 28th Mar 2023, 21:10 -
Problems with Frame Order in Avisynth++
By Roemer in forum EditingReplies: 20Last Post: 2nd Jun 2021, 15:47 -
Partial frame stab() as basis for whole frame? (Avisynth)
By lordsmurf in forum RestorationReplies: 28Last Post: 11th Sep 2020, 10:36 -
AviSynth - How to Cut on the Correct Frame
By lomaidala in forum EditingReplies: 6Last Post: 23rd Feb 2020, 19:43 -
Frame-by-frame combing detection in AviSynth
By ZetaStax in forum Video ConversionReplies: 3Last Post: 2nd Sep 2019, 15:43