Save a video to images

%VIDEO2PIC converts viedo frames into pictures.
2.9K Downloads
Updated 19 Oct 2009

View License

%VIDEO2PIC converts viedo frames into pictures.
% This function uses mmreader to read videos. Thus video format supported
% by system can be converted to pictures. Output file name follows the
% format: VideoName_FrameNumber.PicSuffix.
%
% VIDEO2PIC input parameters interactively.
% VIDEO2PIC( VIDEOFILE, OUTPUTPATH, PICFORMAT ) runs as a
% function.
%
% videoFile: full path of video to convert.
% outputPath: pictures will be saved under outputPath/videoname/.
% picFormat: check 'help imwrite'
%
% Shiquan Wang @ CASIA
% sqwang@nlpr.ia.ac.cn
% http://www.cbsr.ia.ac.cn/users/sqwang/
% revised on 2009/10/19

Cite As

Shiquan Wang (2024). Save a video to images (https://www.mathworks.com/matlabcentral/fileexchange/25607-save-a-video-to-images), MATLAB Central File Exchange. Retrieved .

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