30th July 2010, 06:48
|
#8
| Link
|
Registered User
Join Date: May 2010
Posts: 5
|
Quote:
Originally Posted by Gavino
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
|
|
|