videobj=VideoReader('abc.mp4');
%videobj=VideoReader(videoname);
%numFrames=videobj.NumberOfFrames;
%videobj=VideoReader(videoname);
numFrames=videobj.NumberOfFrames;
global frame_list;
frame_list = cell(numFrames,1);
for it = 1:numFrames
frame=read(videobj,it);
frame_list{it}=frame;
imwrite(frame,[diraddress,num2str(it,'%04i'),'.jpg'],'jpg');
end
视频分割为帧,并按照0001-000i保存