Click here to Skip to main content
Licence 
First Posted 19 May 2003
Views 145,345
Bookmarked 58 times

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

By | 19 May 2003 | Article
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

About the Author

Rod VanAmburgh

Web Developer

United States United States

Member

I enjoy working with C#, Java, Perl and C++

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalhelp me Pinmembersukumarvenkata19:21 18 May '08  
GeneralThanks! Pinmembermmesser15:59 26 Jun '07  
QuestionLibraries PinmemberOcean_Blue14:30 7 Sep '06  
QuestionPlease show me how to create a whole AVI video from lots of BMP images?Thanks. Pinmember02918:00 21 Aug '06  
QuestionTop down dib Pinmemberpmisik2:42 21 Aug '06  
GeneralIf you want to write avi files many time ! Pinmemberzerong6:12 26 May '06  
GeneralError link sample test application !!! Pinmembersolon1220:52 11 May '06  
GeneralFeedback PinmemberVipin Aravind19:52 18 Feb '06  
Questionneed help Pinmemberkrishnachn18:04 24 Oct '05  
AnswerRe: need help PinmemberRod VanAmburgh16:32 25 Oct '05  
Generalvideo from tiff images series Pinmemberdagim5:04 12 Oct '05  
GeneralI need to create an avi from bitmap in Vb.Net PinmemberAbramoBarbaresi7:17 31 May '05  
GeneralRe: I need to create an avi from bitmap in Vb.Net PinmemberRod VanAmburgh17:18 2 Jun '05  
GeneralGive me the complete source code please PinmemberRasik20050:00 19 Mar '05  
GeneralRe: Give me the complete source code please PinmemberRod VanAmburgh13:24 19 Mar '05  
QuestionADD_FRAME_FROM_DIB_TO_AVI ? Pinmemberwilliam_li19:49 15 Nov '04  
QuestionADD_FRAME_FROM_ .. buffer? Pinmembermound8:13 15 Jun '04  
AnswerRe: ADD_FRAME_FROM_ .. buffer? PinmemberRod VanAmburgh15:32 15 Jun '04  
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pinmembermound8:50 16 Jun '04  
GeneralRe: ADD_FRAME_FROM_ .. buffer? PinmemberRod VanAmburgh19:27 16 Jun '04  
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pinmembermound4:20 17 Jun '04  
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pinmembermound9:53 17 Jun '04  
GeneralRe: ADD_FRAME_FROM_ .. buffer? PinmemberRod VanAmburgh17:22 18 Jun '04  
GeneralRe: ADD_FRAME_FROM_ .. buffer? Pinmembermound8:03 22 Jun '04  
GeneralCXIMAGE to AVI... Pinmembersherrinmultimedia3:57 20 Oct '03  

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.

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