Why can't I read the videos with MATLAB on linux?

I am using VideoReader to read the videos(including .mov, .avi, .mp4 and .mpg). but always get this error.
>> obj=VideoReader('segway03.mov') Error using VideoReader/init (line 442) Initialization Failed.
Error in VideoReader (line 132) obj.init(fileName);
but these videos can be read by matlab on windows. What do I need for using this function? I have installed the gstreamer and the plug-ins. Please help^^^^

Respuestas (2)

C.J. Harris
C.J. Harris el 29 de Mzo. de 2012

0 votos

The file formats you mentioned are purely container formats. It is the codec used to encode the underlying video streams which will determine whether or not you can read the files. First ensure you have all the necessary codecs installed on your system.

2 comentarios

JIEYU
JIEYU el 29 de Mzo. de 2012
Could you please give me an example on codecs?
C.J. Harris
C.J. Harris el 29 de Mzo. de 2012
If it is a codecs problem then you'll probably need a codecs pack for whichever linux distribution you are using. This is not a MATLAB problem, so I can't give you any examples.

Iniciar sesión para comentar.

Preguntada:

el 29 de Mzo. de 2012

Respondida:

el 19 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by