Click here to Skip to main content
12,884,509 members (32,346 online)
Click here to Skip to main content
Add your own
alternative version

Stats

179.8K views
3.6K downloads
65 bookmarked
Posted 19 May 2003

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++

You may also be interested in...

Comments and Discussions

 
QuestionIs this AVI 1.0 or 2.0? Pin
teroni18-Nov-13 17:34
memberteroni18-Nov-13 17:34 
QuestionWorks Great! I modified for no MFC... Pin
John Slagel30-Oct-13 7:24
memberJohn Slagel30-Oct-13 7:24 
AnswerRe: Works Great! I modified for no MFC... Pin
Member 311299416-Sep-15 21:02
memberMember 311299416-Sep-15 21:02 
PraiseRe: Works Great! I modified for no MFC... Pin
Aaron Balint4-Apr-17 14:30
memberAaron Balint4-Apr-17 14:30 
Generalhelp me Pin
sukumarvenkata18-May-08 19:21
membersukumarvenkata18-May-08 19:21 
GeneralThanks! Pin
mmesser26-Jun-07 15:59
membermmesser26-Jun-07 15:59 
QuestionLibraries Pin
Ocean_Blue7-Sep-06 14:30
memberOcean_Blue7-Sep-06 14:30 
QuestionPlease show me how to create a whole AVI video from lots of BMP images?Thanks. Pin
02921-Aug-06 18:00
member02921-Aug-06 18:00 
QuestionTop down dib Pin
pmisik21-Aug-06 2:42
memberpmisik21-Aug-06 2:42 
GeneralIf you want to write avi files many time ! Pin
zerong26-May-06 6:12
memberzerong26-May-06 6:12 
GeneralError link sample test application !!! Pin
solon1211-May-06 20:52
membersolon1211-May-06 20:52 
GeneralFeedback Pin
Vipin Aravind18-Feb-06 19:52
memberVipin Aravind18-Feb-06 19:52 
Questionneed help Pin
krishnachn24-Oct-05 18:04
memberkrishnachn24-Oct-05 18:04 
AnswerRe: need help Pin
Rod VanAmburgh25-Oct-05 16:32
memberRod VanAmburgh25-Oct-05 16:32 
Generalvideo from tiff images series Pin
dagim12-Oct-05 5:04
memberdagim12-Oct-05 5:04 
GeneralI need to create an avi from bitmap in Vb.Net Pin
AbramoBarbaresi31-May-05 7:17
memberAbramoBarbaresi31-May-05 7:17 
GeneralRe: I need to create an avi from bitmap in Vb.Net Pin
Rod VanAmburgh2-Jun-05 17:18
memberRod VanAmburgh2-Jun-05 17:18 
GeneralGive me the complete source code please Pin
Rasik200519-Mar-05 0:00
memberRasik200519-Mar-05 0:00 
GeneralRe: Give me the complete source code please Pin
Rod VanAmburgh19-Mar-05 13:24
memberRod VanAmburgh19-Mar-05 13:24 
QuestionADD_FRAME_FROM_DIB_TO_AVI ? Pin
william_li15-Nov-04 19:49
memberwilliam_li15-Nov-04 19:49 
QuestionADD_FRAME_FROM_ .. buffer? Pin
mound15-Jun-04 8:13
membermound15-Jun-04 8:13 
AnswerRe: ADD_FRAME_FROM_ .. buffer? Pin
Rod VanAmburgh15-Jun-04 15:32
memberRod VanAmburgh15-Jun-04 15:32 
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pin
mound16-Jun-04 8:50
membermound16-Jun-04 8:50 
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pin
Rod VanAmburgh16-Jun-04 19:27
memberRod VanAmburgh16-Jun-04 19:27 
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pin
mound17-Jun-04 4:20
membermound17-Jun-04 4:20 

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

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

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