Create AVI from bitmaps

SteveD

0
Joined
Mar 28, 2003
Messages
84
Has anyone ever had any luck with this?

Ive had a look at the Microsoft writeavi.c example from the Platform SDK, but its not particularly helpful (I can get it to render an AVI of 100 frames or less at 1 fps, but little else). Ive converted it to C++. Its here if youre interested:

http://midget.nofeet.com/steve/writeavi++.avi

Run it from the command line like so:

writeavi.exe 640, 480, 24, 100, C:\images

640 is the image width, 480 is the img height, 24 is fps, 100 is the number of images (frames), and C:\images is a directory which will be automatically searched (non-recursively) for *.BMP files to add to the movie.


If anyone has a better solution than this, I would love to hear it. I also found this website, but this guys class has a convenient 4 lines of comments and no documentation. *sigh*

http://www.adp-gmbh.ch/csharp/write_avi.html

Thanks guys.
 
Last edited by a moderator:
Sorry bout that. Theyre fixed now.

(Good ol vBulletin decided it needed to add an extra URL tag, so those links had an end tag embedded in them.)
 
Also of note: Id be plenty happy if I could generate any other type of movie file: MPEG or MOV/QT would be fine by me. :)

I know this is ridiculously easy to do with the Java Media Framework, but unfortunately, Sun managed to make these features of the JMF require a version of Java just a few notches higher than that which the current Java-to-.NET converter can do. Coincidence? ;)
 
Gabe, a buddy of mine, made a nice clean C#/Interop library that does the trick for this (BMP to codec or raw AVI). Another fellow was having similar trouble, so check the result in this thread:

http://www.computerhelp.forum/t75894.html

(Sorry for the re-post. I just dont want people finding this thread unfinished.)
 
The link is broken again, I guess.

steved said:
Sorry bout that. Theyre fixed now.

(Good ol vBulletin decided it needed to add an extra URL tag, so those links had an end tag embedded in them.)

Hi Steve, could you please restore some link. Thanks.
 
Back
Top