Save a video to images
%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
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion >
- FPGA, ASIC, and SoC Development > Vision HDL Toolbox > Video Formats and Interfaces >
- Image Processing and Computer Vision > Vision HDL Toolbox > Video Formats and Interfaces >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |