Video Processing Tutorial

Tutorial to read, process, and create video files.
Updated 2 Sep 2014

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Demo to extract frames and get frame means from a movie and (optionally) save individual frames to separate image files. Then rebuilds a new movie by recalling the saved images from disk. Also computes the mean gray value of the color channels and detects the difference between a frame and the previous frame. Illustrates the use of the VideoReader and VideoWriter classes.

Cite As

Image Analyst (2024). Video Processing Tutorial (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
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