Why not load the frame from videoObj?
2 views (last 30 days)
Show older comments
videoObjref = VideoReader('Barrier.avi');
videoObj = VideoReader('output4.avi'); %video encoding using ffmpeg (h.264)
numFramesref = videoObjref.NumberOfFrames;
numFrames = videoObj.NumberOfFrames;
numFramesref=400
numFrames=400
vot=read(videoObj,inf);
figure()
imshow(vot)
this code is ok
vot=read(videoObjref,inf);
figure()
imshow(vot)
This code gives an error:
Error using VideoReader/read (line 86)
The frame index requested is beyond the end of the file.
Why not load the frame from videoObj?
The code used in ffmpeg: ffmpeg -i Barrier.avi -c:v libx264 -b:v 2M output4.avi
0 Comments
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!