Here is the FIRST release of the imaginatively named DBProAVI.dll.
Summary of what you get (so far):
New Commands:
EXTRACT AVI FRAME "Avi Filename",frame number
(Will extract a single frame from an AVI file of your choice and save it as a BMP).
MAKE AVI "New AVI filename",Frame Rate, Width, Height
(Will create a new AVI file)
ADD IMAGE TO AVI image number
(Will add an image to your AVI animation)
CLOSE AVI *no params*
(Closes your AVI file).
Please take into account that this is a VERY early release and as such has a few bugs, but it IS useable in it's current state.
Just copy the .dll into the plugins-user folder, and copy the .ini into your keywords folder.
At present, the dll makes use of some memblock functions from the DB-Pro exe, so you need to make sure the memblock dll gets linked in (in other words, you need to make sure you make a memblock or something early on in your program).
Here's a little example code for you to play with:
sync on
sync rate 60
make memblock 1,10
delete memblock 1
make avi "myavi.avi",25,320,200
count#=0.0
for t=1 to 100
box 1,1,100,100,rgb(200-(t*2),0,0),rgb(0,0,0),rgb(t*2,0,0),rgb(0,0,0)
text (sin(count#)*20)+30,(sin(count#/3.0)*30)+50,"Conrad"
count#=count#+2.0
get image 1,1,1,100,100,1
sync
add image to avi 1
next t
for t=1 to 100
box 1,1,100,100,rgb(0,0,0),rgb(0,0,0),rgb(200-(t*2),0,0),rgb(t*2,0,0)
text (sin(count#)*20)+30,(sin(count#/3.0)*30)+50,"Conrad"
count#=count#+2.0
get image 1,1,1,100,100,1
sync
add image to avi 1
next t
for t=1 to 100
box 1,1,100,100,rgb(0,0,0),rgb(t*2,0,0),rgb(0,0,0),rgb(200-(t*2),0,0)
text (sin(count#)*20)+30,(sin(count#/3.0)*30)+50,"Conrad"
count#=count#+2.0
get image 1,1,1,100,100,1
sync
add image to avi 1
next t
for t=1 to 100
box 1,1,100,100,rgb(t*2,0,0),rgb(200-(t*2),0,0),rgb(0,0,0),rgb(0,0,0)
text (sin(count#)*20)+30,(sin(count#/3.0)*30)+50,"Conrad"
count#=count#+2.0
get image 1,1,1,100,100,1
sync
add image to avi 1
next t
close avi
WARNING: No codec compress yet, so outputs are LARGE (but non-lossy, so good for proper video work!).
Let me know of bugs.
Enjoy!