I've got a project where I need to draw a a series of bitmaps then save each as a frame in an AVI video, but the drawing process takes too long to reliably do this at the frame rates I want the video to have (25-30 fps). I've seen and have experimented with the AVI-stream functions, but as far as I can tell they need to run at the video rate, otherwise I get lots of dropped frames. Maybe I am wrong, that a stream does not have to run in real time.
Any advice on how to do this frame at a time, at the pace my program will run?