Click here to Skip to main content
Click here to Skip to main content

A simple interface to the Video for Windows API for creating AVI movies from individual images

, 19 May 2003
Rate this:
Please Sign up or sign in to vote.
A simple interface to the Video for Windows API for creating AVI movies from individual images.

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:

  1. include "aviUtil.h".
  2. Call START_AVI("foo.avi"); // you must include the .avi extention.
  3. Call ADD_FRAME_FROM_DIB_TO_AVI(yourDIB, "DIB", 30); // the dib is passed in as a HANDLE which can be obtained by loading the image with a Image library. (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.
  4. Call STOP_AVI(); //this closes the avi and video.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Rod VanAmburgh
Web Developer
United States United States
I enjoy working with C#, Java, Perl and C++

Comments and Discussions

 
QuestionIs this AVI 1.0 or 2.0? Pinmemberteroni18-Nov-13 18:34 
QuestionWorks Great! I modified for no MFC... PinmemberJohn Slagel30-Oct-13 8:24 
Generalhelp me Pinmembersukumarvenkata18-May-08 20:21 
GeneralThanks! Pinmembermmesser26-Jun-07 16:59 
QuestionLibraries PinmemberOcean_Blue7-Sep-06 15:30 
QuestionPlease show me how to create a whole AVI video from lots of BMP images?Thanks. Pinmember02921-Aug-06 19:00 
QuestionTop down dib Pinmemberpmisik21-Aug-06 3:42 
GeneralIf you want to write avi files many time ! Pinmemberzerong26-May-06 7:12 
GeneralError link sample test application !!! Pinmembersolon1211-May-06 21:52 
GeneralFeedback PinmemberVipin Aravind18-Feb-06 20:52 
Questionneed help Pinmemberkrishnachn24-Oct-05 19:04 
AnswerRe: need help PinmemberRod VanAmburgh25-Oct-05 17:32 
Generalvideo from tiff images series Pinmemberdagim12-Oct-05 6:04 
GeneralI need to create an avi from bitmap in Vb.Net PinmemberAbramoBarbaresi31-May-05 8:17 
GeneralRe: I need to create an avi from bitmap in Vb.Net PinmemberRod VanAmburgh2-Jun-05 18:18 
GeneralGive me the complete source code please PinmemberRasik200519-Mar-05 1:00 
GeneralRe: Give me the complete source code please PinmemberRod VanAmburgh19-Mar-05 14:24 
QuestionADD_FRAME_FROM_DIB_TO_AVI ? Pinmemberwilliam_li15-Nov-04 20:49 
QuestionADD_FRAME_FROM_ .. buffer? Pinmembermound15-Jun-04 9:13 
AnswerRe: ADD_FRAME_FROM_ .. buffer? PinmemberRod VanAmburgh15-Jun-04 16:32 
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pinmembermound16-Jun-04 9:50 
GeneralRe: ADD_FRAME_FROM_ .. buffer? PinmemberRod VanAmburgh16-Jun-04 20:27 
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pinmembermound17-Jun-04 5:20 
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pinmembermound17-Jun-04 10:53 
GeneralRe: ADD_FRAME_FROM_ .. buffer? PinmemberRod VanAmburgh18-Jun-04 18:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 20 May 2003
Article Copyright 2003 by Rod VanAmburgh
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid