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

1 visualización (últimos 30 días)
Lovas
Lovas el 13 de Ag. de 2014
Respondida: Dima Lisin el 14 de Ag. de 2014
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

Respuestas (1)

Dima Lisin
Dima Lisin el 14 de Ag. de 2014
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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by