what can i do with this error: Error using VideoFileReader/setup

1 回表示 (過去 30 日間)
Lovas
Lovas 2014 年 8 月 13 日
回答済み: Dima Lisin 2014 年 8 月 14 日
I'm using this code:
h = vision.VideoFileReader('num2.avi')
h =
System: vision.VideoFileReader
Properties:
Filename: '/Users/LoFe/Documents/BME/Work/Work/Work/num2.avi'
PlayCount: Inf
ImageColorSpace: 'RGB'
VideoOutputDataType: 'single'
End it is working well, but when i want to call step on it, i get this:
while ~isDone(h)
hFrame = step(h);
Error using VideoFileReader/setup
Could not open the specified file.
Error in
/Applications/MATLAB_R2013a.app/toolbox/matlab/system/+matlab/+system/+mixin/FiniteSource.p>FiniteSource.isDone
(line 39)
I'm using matlab 2013a, on OS X (Mavricks), what should i do? End it is work fine on Windows7

回答 (1 件)

Dima Lisin
Dima Lisin 2014 年 8 月 14 日
If it works on Windows, but doesn't work on the Mac then it sounds like your Mac doesn't have the right codec installed. Can you play this video file with some other player on the Mac?
Alternatively, the video may be in a format that is not supported on the Mac. Please do
>> doc vision.VideoPlayer
to see a table of supported video formats.

Community Treasure Hunt

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

Start Hunting!

Translated by