aviread

Read avi film into matlab on Windows Platform.
5.1K Downloads
Updated 1 Feb 2008

No License

Read image frames into matlab from Video (avi) in Windows Platform. Like aviread matlab function. If wmplayer can read your video this function can read too.

Based AVI file reader provided by Microsoft Video for Windows® (VFW)
In visual C++
Header: Declared in Vfw.h
Library: Use Vfw32.lib

-- Depending on your Matlab version, the .mexw32 files may need to be renamed as .dll

-- The library usage is as follows,
mov = aviread(avi_filename, nframes);
image(mov.cdata);

-- recompile the library
I have compiled the code with Visual C++ .net 2003 (ver 7.1)
under matlab tape:

matlab\> mex -setup

Choose your compiler and execute the file mex_cmd.m in archive file for compiling .cpp source files.

Cite As

Grégory Païs (2025). aviread (https://www.mathworks.com/matlabcentral/fileexchange/18559-aviread), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

source_avireader/source_avireader/

Version Published Release Notes
1.0.0.0