NetAvi: win32 video server based AVI read interface for Matlab

A win32 server app and client functions to read image frames into Matlab from an AVI file. The serve
1.2K Downloads
Updated 13 Nov 2006

No License

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 (2024). NetAvi: win32 video server based AVI read interface for Matlab (https://www.mathworks.com/matlabcentral/fileexchange/12891-netavi-win32-video-server-based-avi-read-interface-for-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
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!
Version Published Release Notes
1.0.0.0