Question

I'm trying to read a AVI file into MATLAB using VideoReader.

video = VideoReader('test.avi');

But get this error:

 The file requires the following codec(s) to be installed on your system:
    cvid

Error in VideoReader (line 147)
            obj.init(fileName);

Error in video (line 1)
    video = VideoReader('test.avi');

The cvid codec is installed on my win7 64bit box. Any help? I am required to use VideoReader.

EDIT: MATLAB version is 2013a

Was it helpful?

Solution

From here, here and also the document on aviwriter which specifies that you can use "'Cinepak' on 32-bit systems.", I think the issue is with the combination of that specific codec and your 64 bit version of MATLAB. You probably have software on your computer which can handle 32 bit codecs so will be able to view it with some video player software, but MATLAB will be looking for the 64 bit codec (which for Cinepak is non-existent).

Your options would seem to be:

  1. Convert the file to another codec or to an uncompressed version.
  2. Install or get access to a 32-bit version of MATLAB
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top