I am trying to read a WMV video file attached with the solution by the following MATLAB code,
Obj = VideoReader('ESPN_vid1.wmv');Video1 = read(Obj, [1 10]);Video2 = read(Obj, [100 150]);Video3 = read(Obj, [300 350]);Video4 = read(Obj, [312 376]);
The code works fine for the above ranges of frames.
But when I execute the following code,
Obj = VideoReader('ESPN_vid1.wmv');Video1 = read(Obj, [35 50]);Video2 = read(Obj, [2 50]);
I get the following error report for the above ranges,
Error using VideoReader/read (line 86) The frame range requested is beyond the end of the file. Error in Read_Video (line 2) Video1 = read(Obj, [35 50]);
Best Answer