File Exchange

image thumbnail

Save a video to images

version 1.0 (1.98 KB) by

%VIDEO2PIC converts viedo frames into pictures.

7 Downloads

Updated

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

Comments and Ratings (3)

Lukas

Lukas (view profile)

hello. it is possible to edit program if i want only for example every 5. frame?
thank you

Sinh Tran

Manuel

Manuel (view profile)

tanks you

MATLAB Release
MATLAB 7.8 (R2009a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video