Log in

View Full Version : repeat 1st and last frames for visual delay


Si
5th May 2010, 21:09
I thought this would be easy - just use trim in Avisynth to strip off the 1st frame and the last frame and use them to add a visual dekay to a short online animation and then repeat the last frame for a few secs to give the viewer time to take in what's happened.

But I can't seem to work out how to trim out the last frame of a video (so I can the concatenate it back onto a copy of the orig.

Any clues please (or a complete example would be nice :) )

regards

Simon

LoRd_MuldeR
5th May 2010, 22:02
But I can't seem to work out how to trim out the last frame of a video

I'm not sure if you want to remove the last frame or if you want only the last frame?

Anyway, both is quite easy to do:
Trim(0, Last.FrameCount-2)
Trim(Last.FrameCount-1, -1)

Gavino
5th May 2010, 23:18
I thought this would be easy - just use trim in Avisynth to strip off the 1st frame and the last frame and use them to add a visual dekay to a short online animation and then repeat the last frame for a few secs to give the viewer time to take in what's happened.
The simplest way to repeat a given frame is to use Loop (http://avisynth.org/mediawiki/Loop).

Loop(m, n, n) will add m-1 times copies of frame n.
Loop(2, 0, 0) repeats first frame.
Loop(2, Framecount-1, Framecount-1) [or just Loop(2, Framecount-1)] repeats last frame.

Si
6th May 2010, 06:56
Ta very much people :)

I didn't know framecount and loop existed :)

regards

Simon