You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This library contains a win32 server app and client functions to read image frames into Matlab from an AVI file. Since DirectShow is only avaiable on Win32, we provide a client-server implementation to support most platforms. The server is multithreaded, supports multiple clients simulaneously and runs on win32/win64 systems. The client mex files simply use socket based communication and hence should compile anywhere. If you suceed in compiling the client files on win64 or mac, please send me the .mex* files and I will add those too.
-- To start the server on win32/win64 system,
netAviServer.exe <port_number>
Ensure to configure the windows firewall to allow connections to this port.
-- testNetAvi.m is a simple example. The library usage is as follows,
% To disable display of debugging info
warning( 'off', 'netAvi:info' );
% Open connection to server for given video file,
[avi_hdl, avi_inf] = netAviOpen( <full DOS path to AVI file on win server : string> , ... <server : string> , <server port_number : double> );
% avi_inf contains useful properties of the video
% Read a frame from video
pixmap = netAviReadMex( avi_hdl, < frame_number : double > );
img = reshape( pixmap, [ avi_inf.Height, avi_inf.Width, 3 ] );
...... % more read statements
% close connection to server
netAviCloseMex( avi_hdl );
-- To compile client mex files use mex_cmd.m
For windows, add -DWIN32 or -DWIN64 to COMPFLAGS in mexopts.bat
-- If your avi file fails to open: try installing K-lite codec pack on the server
-- BaseClasses is from Direct X 9.0 SDK 2002
-- For latest updates on the web,
http://cs-people.bu.edu/tvashwin/netAvi/
Cite As
Ashwin Thangali (2026). NetAvi: win32 video server based AVI read interface for Matlab (https://uk.mathworks.com/matlabcentral/fileexchange/12891-netavi-win32-video-server-based-avi-read-interface-for-matlab), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (4.62 MB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
