View Single Post
Old 5th August 2003, 23:27   #1  |  Link
yonatan
Registered User
 
Join Date: Dec 2001
Posts: 12
black frames in animation sequence

I am trying to use avisynth (v2.52) with virtualdub 1.5.4
to assemble a bunch of bmp files into an animation sequence - I am using multiple calls to ImageReader but am
getting black frames in between the clips - what am i doing wrong ?

Here is the script
fps = 30
a = ImageReader("f:\video\%03d.bmp", 2, 15, fps, false)
b = ImageReader("f:\video\015_%1d.bmp", 1, 3, fps, false)
c = ImageReader("f:\video\016_%1d.bmp", 1, 6, fps, false)
d = ImageReader("f:\video\03d.bmp", 17, 30,fps, false)
e = ImageReader("f:\video\031_%1d.bmp", 1, 6, fps, false)
f = ImageReader("f:\video\03d.bmp", 32, 39,fps, false)
fnl = a+b+c+d+e+f

the bmp files are organized as follows - note the number of input images and output frames
INPUT OUTPUT
002.bmp - 015.bmp 14 images 2 black frames, 14 frames
015_1.bmp - 015_3.bmp 3 " 1 " 3 "
016_1.bmp - 016_6.bmp 6 " 1 " 6 "
017.bmp - 030.bmp 14 " 18 " 14 "
031_1.bmp - 031_6.bmp 6 " 1 " 6
032.bmp - 039.bmp 8 " 32 " 8 frame

total 55 black frames + 51 frames I wanted = 104 frames

any other tips for doing animation would also be great

thanks
Yonatan
yonatan is offline   Reply With Quote