From: Christopher MacMinn on
I'm trying to read in an AVI video file encoded with MJPG. I've tried it on two different computers, both Macs (Intel, 64-bit) -- one is running Leopard (10.5.8) and the other is running Snow Leopard (10.6.1). Both have MATLAB 7.8.0.347 (R2009a).

The output of aviinfo(filename) is:
FileSize: 36400686
FileModDate: '10-Sep-2009 10:43:22'
NumFrames: 1058
FramesPerSecond: 17.0580
Width: 1612
Height: 436
ImageType: 'truecolor'
VideoCompression: 'MJPG'
Quality: 30
NumColormapEntries: 0

The aviread function fails:
??? Error using ==> aviread at 29
Not enough output arguments.

The mmreader function fails:
??? Initialization failed.
Error in ==> mmreader.mmreader>mmreader.init at 364
obj.MMReaderImpl = audiovideo.mmreader(fullName);
Error in ==> mmreader.mmreader>mmreader.mmreader at 133
obj.init(fileName);

and the mmfileinfo function fails:
??? Error using ==> mmfileinfo at 68
Initialization failed.


I believe that I have the appropriate codec, but it's possible MATLAB can't find it... These errors aren't very informative, but they are not what I would expect if it were a codec problem. Is there a way to have MATLAB list the codecs that are available to it?

Any thoughts on what else might be causing this? Thanks in advance!
 | 
Pages: 1
Prev: Best OS/platform for Matlab
Next: quad2d sfit