DirectShow (DirectX) based AVI file reader (Scripts) Publisher's description
from Ashwin Thangali
This library contains helper functions to read image frames into Matlab from an AVI file using DirectShow on windows (Linux users may want to google MPlayerMex)
This library contains helper functions to read image frames into Matlab from an AVI file using DirectShow on windows (Linux users may want to google MPlayerMex). It hence,
a) does not suffer from the 2Gb file size limit of the VFW based Matlab aviread
b) handles most codecs installed on the system
c) has functions quite similar to aviread
*** Depending on your Matlab version, renaming the .mexw32 files to .dll may work. On win64, a workaround is to run 32bit matlab version. Otherwise, to recompile use mex_cmd.m, I have only tried with VC++ 7 compiler on win32. If you have success compiling on win64, do let me know so that we can incorporate the .mexw64's.
-- testDxAvi.m is a simple example.
The library usage is as follows,
[avi_hdl, avi_inf] = dxAviOpen(avi_filename);
pixmap = dxAviReadMex(avi_hdl, frame_num);
img = reshape(pixmap,[avi_inf.Height,avi_inf.Width,3]);
** If your avi file fails to open: in ffdshow configuration (ffdshow is available in Klite pack) set the decoder for the corresponding video format to "libavcodec".
BaseClasses directory is from "Direct X 9.0 SDK 2002" (Google should get you this), code here is based on GrabBitmaps.cpp in DirectShow samples.
System Requirements:MATLAB 7.1.0 (R14SP3)
Program Release Status: New Release
Program Install Support: Install and Uninstall