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

1 vue (au cours des 30 derniers jours)
Lovas
Lovas le 13 Août 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

Réponses (1)

Dima Lisin
Dima Lisin le 14 Août 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.

Community Treasure Hunt

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

Start Hunting!

Translated by