View Full Version : how to strech the duration of a video with a single frame
thekid
15th December 2004, 02:47
i have an input video with a single frame and i'd like to strech the duration of that video to a set ammount to match an audio duration.
how would i go about this?
thanks
thekid...
lark
15th December 2004, 07:52
what if you just change the framerate?
that way you can stretch it to a full sec ;-)
or then you have to freezeframe ie something like
avisource( <your_frame> ) + BlankClip( <figure out your params> )
FreezeFrame(0, <your_length * fps>, 0)
regards
t :)
Leak
15th December 2004, 08:03
Originally posted by lark
what if you just change the framerate?
that way you can stretch it to a full sec ;-)
or then you have to freezeframe ie something like
I don't know, but I always found the Loop (http://www.avisynth.org/Loop) function easier for that:
source.Loop(Int(<number of seconds>*source.Framerate))
If your source has more than 1 frame, you can just add a start and end frame number as a second and third parameter:
source.Loop(Int(<number of seconds>*source.Framerate),0,0)
Of course, you can just calculate the number of frames you need by hand and use that as the first parameter... :)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.