Filter löschen
Filter löschen

Problem of codec? Why doesn't mmreader work on some videos?

1 Ansicht (letzte 30 Tage)
Aubry
Aubry am 10 Dez. 2012
Hello everybody!
I am running a program, on some videos, on Matlab 2009a and on Windows XP 32 bits. I filmed some videos with a camera and I am using these files. The extension of these files are .avi and the codec is H264 (I used aviinfo for getting this info).
Here a part of the code:
inFile = fullfile(dataDir,'face.avi');
vid = mmreader(inFile);
The message error is:
??? Initialization failed. (Aucune combinaison de filtres intermédiaires
n'a pu être trouvée pour établir la connexion.)
Error in ==> mmreader.mmreader>mmreader.init at 364
obj.MMReaderImpl = audiovideo.mmreader(fullName);
Error in ==> mmreader.mmreader>mmreader.mmreader at 133
obj.init(fileName);
Error in ==> testavi at 11
vid = mmreader(inFile);
Why doesn't it work? Because of the codec???
Thanks for your future answer!

Antworten (2)

Walter Roberson
Walter Roberson am 10 Dez. 2012
h264 support was not provided with MATLAB until R2012a

Aubry
Aubry am 14 Dez. 2012
Thanks for your answer. Since I'm working on 2009a, what codec could work? I've downloaded the software Super, but I don't know to which codec I should switch.

Community Treasure Hunt

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

Start Hunting!

Translated by