View Single Post
Old 30th July 2010, 06:48   #8  |  Link
em_dai_kho
Registered User
 
Join Date: May 2010
Posts: 5
Quote:
Originally Posted by Gavino View Post
That tutorial is for appending two video clips.
Appending a still image in Avisynth is harder than you might think, since you have to convert the image into a clip whose dimensions, frame rate, color space and audio track all match the other clip.

Example code:
Code:
n = ... # no of frames for still
v = DirectShowSource("xxx.divx")

ImageSource("yyy.jpg", end=n-1)
Spline36Resize(v.width, v.height) # or some other resizer
AssumeFPS(v)
ConvertToYV12()
AudioDub(BlankClip(v, length=n))

last ++ v # append clips
thank's for good code
em_dai_kho is offline   Reply With Quote