Video Loading, Saving, and Display

Read and save multimedia files

Computer Vision System Toolbox™ provides algorithms and tools for video processing. You can:

  • Read, write, and view multimedia files in a wide range of formats, including AVI, MPEG, and WMV.

  • Stream video to and from MMS sources over the Internet or a local network.

  • Acquire video directly from web cameras, frame grabbers, DCAM-compatible cameras, and other imaging devices using Image Acquisition Toolbox™. When using Simulink®, you can use the MATLAB® workspace as a video source or sink.

The Computer Vision System Toolbox, together with Image Processing Toolbox™, enables you to view video streams in the loop as you process data, view any video signal within your code or block diagram, and use multiple video viewers at the same time. You can also freeze the display to evaluate the current frame, display pixel information for a region in the frame, and pan, zoom, start, stop, pause and step through simulations one frame at a time.

System Objects

vision.DeployableVideoPlayer Display video
vision.VideoPlayer Play video or display image
vision.VideoFileReader Read video frames and audio samples from video file
vision.VideoFileWriter Write video frames and audio samples to video file


Read Binary File Read binary video data from files
Video From Workspace Import video signal from MATLAB workspace
Video To Workspace Export video signal to MATLAB workspace
Frame Rate Display Calculate average update rate of input signal
To Video Display Display video data
Video Viewer Display binary, intensity, or RGB images or video streams
Write Binary File Write binary video data to files
Was this topic helpful?