View Full Version : Making a clip from one (1) image
Prakel
29th May 2007, 12:32
Hi there,
what are the possibilities to create a clip of arbitrary length from one image? I'd like to use that for a mask.
So far I used
msk=imagesource("D:\someMask.jpg").convertToYV12().loop(465)
The problem is, for some reason the base image creeps very slowly (changes its position) within the clip and makes the resulting clip useless as a mask.
Are there other ways to get a clip from an image?
Greetz
Prakel
gzarkadas
29th May 2007, 19:29
It shouldn't creep. Is it maybe the case that you have sequentially numbered images at the same folder (say someMask001.jpg, etc.) ? Note that ImageSource("afile") equals ImageSource("afile", 0, 1000) and produces a clip with 1001 frames. To produce a 465 frame clip with one image in your example you should do: msk=imagesource("D:\someMask.jpg", 0, 0).convertToYV12().loop(465)
DarkT
31st May 2007, 20:32
Here's how I do it:
ImageSource("1157484270_oav.jpg", start=1, end=587,fps=23.976023976023976023976023976024)
:).
This way you can insert it into a 23.976 clip(guys on the forums showed a way in which you don't have to insert the long 23.97... Number, and I have the link to that thread somewhere if you wanna).
Anyway, in the above example you have 587 frames in a movie of 23.976 FPS.
stickboy
2nd June 2007, 05:54
Hi there,
The problem is, for some reason the base image creeps very slowly (changes its position) within the clip and makes the resulting clip useless as a mask.Are you sure it's not creeping from something else you're doing? Have you viewed the mask clip by itself?
This way you can insert it into a 23.976 clip(guys on the forums showed a way in which you don't have to insert the long 23.97... Number, and I have the link to that thread somewhere if you wanna).Or you could not bother specifying the fps when calling ImageSource, and simply call AssumeFPS() afterward. AssumeFPS is more flexible since you can use it to match the FPS of an existing clip or can specify a rational number (e.g. 24000/1001).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.