# Duplicate Every nth frame and keep fps

1. Hi everyone, I want to duplicate every, example at 9th frame, for whole video, it will be like that
1,2,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,19,19,20... and keep original fps of video, so video will be longer. Ofcourse i can use Trim and ++ to do this in avs script, but i think its not good solution. So anyone please tell me a good avs scrip to do this?
Thank you so much.
2. SelectEvery(0,1,2,3,4,5,6,7,8,8,9,10...to the last frame)
AssumeFPS(original fps)

Remember, the first frame is number 0, so in the SelectEvery line the last frame named will be one less than the framerate. If it's 25fps, the last number in the sequence will be 24. And you'll also be repeating the original frame number 17. The 19 in your example is incorrect as it's the tenth frame after your repeated 9s.
3. If you want: 0,1,2,3,4,5,6,7,8,8,9,10,11,12,13,14,15,16,17,17,.

use: SelectEvery(9,0,1,2,3,4,5,6,7,8,8). It doesn't to be frame 8 that's duplicated, you can dup any of the other frames instead. Eg. SelectEvery(9,0,1,2,3,4,4,5,6,7,8).
4. Originally Posted by manono
SelectEvery(0,1,2,3,4,5,6,7,8,8,9,10...to the last frame)
AssumeFPS(original fps)

Remember, the first frame is number 0, so in the SelectEvery line the last frame named will be one less than the framerate. If it's 25fps, the last number in the sequence will be 24. And you'll also be repeating the original frame number 17. The 19 in your example is incorrect as it's the tenth frame after your repeated 9s.
Thank you, but
SelectEvery(0,1,2,3,4,5,6,7,8,8,9,10...to the last frame)
means if my video does have example 100000 frames, i have to type... oh my god! (
So is there another easier way manono?
5. Originally Posted by xicudiz
SelectEvery(0,1,2,3,4,5,6,7,8,8,9,10...to the last frame)
means if my video does have example 100000 frames, i have to type... oh my god! (
No, I meant to the last frame per second (24 for a 25fps video).
Originally Posted by manono
If it's 25fps, the last number in the sequence will be 24.
But I was wrong and jagabo is correct. You need go only as far as the first repeat and it's automatic from there. You name the cycle (9 in this case), and then begin naming the frames. I think you still need to name the original framerate with AssumeFPS at the end. Gotta go and test...

Yes, you should name the desired framerate afterwards.

Statistics