Introduction
This article describes a simple interface to the Video for Windows API for creating AVI movies from individual images. The idea for this code comes from a Microsoft sample that was very unfriendly to use. With that in mind, I created this code to easily create an AVI from individual images.
The steps are:
include "aviUtil.h".
- Call
START_AVI("foo.avi"); .
- Call
ADD_FRAME_FROM_DIB_TO_AVI(yourDIB, "DIB", 30); . (I used CxImage which is available on this site). Put this call in a while or for loop to add all the images you want to the AVI.
- Call
STOP_AVI(); .