PDA

View Full Version : multiplying frames


trolltuning
30th November 2004, 19:22
I have a one frame clip on my computer at work. I wanted to make it longer about 1000 frames so I could play around animating some text on it. I started to write this:
AlignedSplice(vid1,vid1,vid1,vid1,vid1,vid1,vid1,vid1)#etc

but then I thought there has to be an easier way. Is there?

stickboy
30th November 2004, 19:44
Originally posted by trolltuning
I have a one frame clip on my computer at work. I wanted to make it longer about 1000 frames so I could play around animating some text on it. I started to write this:
AlignedSplice(vid1,vid1,vid1,vid1,vid1,vid1,vid1,vid1)#etc

but then I thought there has to be an easier way. Is there?Do you need the video repeated? If want to pad blank frames, then you can use BlankClip with the specific number of frames you need (or you could use my LengthenClip (http://www.avisynth.org/stickboy/) filter).

Otherwise, you could grow exponentially, doubling the framecount each time and then trimming off excess:
vid1 = vid1 ++ vid1
vid1 = vid1 ++ vid1
vid1 = vid1 ++ vid1
vid1 = vid1 ++ vid1
Trim(0, 999)

Leak
30th November 2004, 20:25
Originally posted by stickboy
Do you need the video repeated? If want to pad blank frames, then you can use BlankClip with the specific number of frames you need (or you could use my LengthenClip (http://www.avisynth.org/stickboy/) filter).

Did something terrible happen to Loop(1000) and I didn't get the memo? :D

np: Iwasaki Taku - R.O.D Theme (I Love Hong Kong Version) (R.O.D The TV Original Soundtrack 1)

trolltuning
1st December 2004, 00:44
Thank you both. @Leak No just my memory that something terrible happened to.:D