aviread

Read avi film into matlab on Windows Platform.

You are now following this Submission

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 (2026). aviread (https://in.mathworks.com/matlabcentral/fileexchange/18559-aviread), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0