cannot read all the frame in a video
이전 댓글 표시
"""""
obj=VideoReader('333.wmv'); %read video
class(obj);
a=read(obj);
frames=get(obj,'numberOfFrames');
for k = 1 : frames
I(k).cdata = a(:,:,:,k);
I(k).colormap = [];
end
for j = 1: obj.NumberOfFrame-1
b=read(obj,j);
c=read(obj,j+1);
end
"""
this is my coding to read the video and it is success to read the video but my PROBLEM is i when i used a for loop to read the number of frame it pop out some error
"""""
Error using VideoReader/read (line 86)
The frame index requested is beyond the end of the file.
Error in tryerror (line 15)
b=read(obj,j);
""""""""
anyone can help me to solved this problem My aim is try to extract out each of the frame and by running a loop i can calculate the different between different frame....
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!