Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Properties of AVI file 1

Status
Not open for further replies.

MRANFTL

Programmer
Mar 27, 2001
3
US
I'd like to create a small windows or dos console app in Visual C++ that will open AVI files in a batch and print out each file's properties to a file, like height and width, number of colors, and frames per sec. Does anyone know of the functions and libraries I should use?

Thanks in advance

Mason
 
For .AVI files there is msvfw32.dll file. You can use its exported functions in VisualC++ by including the Vfw.h header file and using Vfw32.lib in your Project/Settings...

Almost all functions that works with AVI have the name beginning with AVI...

Before using any of these functions you should call AVIFileInit() (only once). After using call AVIFileExit() (only once to the end of your program).

E.g.:
To find some information about an AVI file you may use:
Code:
STDAPI AVIFileOpen(PAVIFILE* ppfile, LPCTSTR szFile,        
  UINT mode, CLSID  pclsidHandler);

STDAPI AVIFileInfo(PAVIFILE pfile, AVIFILEINFO * pfi, LONG lSize);

STDAPI_(ULONG) AVIFileRelease(PAVIFILE pfile);
 
For .AVI files there is msvfw32.dll file. You can use its exported functions in VisualC++ by including the Vfw.h header file and using Vfw32.lib in your Project/Settings...

Almost all functions that works with AVI have the name beginning with AVI...

Before using any of these functions you should call AVIFileInit() (only once). After using call AVIFileExit() (only once to the end of your program).

E.g.:
To find some information about an AVI file you may use:


Marius Samoila,
Brainbench MVP for Visual C++

STDAPI AVIFileOpen(PAVIFILE* ppfile, LPCTSTR szFile,
UINT mode, CLSID pclsidHandler);

STDAPI AVIFileInfo(PAVIFILE pfile, AVIFILEINFO * pfi, LONG lSize);

STDAPI_(ULONG) AVIFileRelease(PAVIFILE pfile);

Marius Samoila,
Brainbench MVP for Visual C++
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top