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