Why do I get a MATLAB:read:readTimedOut error when using READ from MMREADER in MATLAB 7.8 (R2009a)?

2 views (last 30 days)
If I read frames in a loop from an AVI file with another program loading the machine, an error appears:
??? MATLAB:read:readTimedOut
Error in ==> mmreader.read at 76
videoFrames = read(uddobj, index);
The error occurs even if all I am doing other stuff than running the MATLAB program. For example, when I am using a web browser such as Internet Explorer with MATLAB in the background.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Dec 2011
The file you are trying to read may be corrupted/not properly structured. That is why you are getting the read time out error. This has nothing to do with activities outside MATLAB like web browsing etc.
You should receive the error everytime after reading a certain frame (say, the 166th frame). The file information says that it has a certain number of frames but the frame indexes are not correctly structured. Thus, MMREADER is not able to get the 167th frame from the Windows plugin. If you try to run this file on another media player, the media player will most probably throw an error / stop proper functionality after a certain time during playback.
To avoid seeing the error, please create the AVI file and make sure that it is not corrupted, and has proper formatting.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2008b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!