MATLAB: Can’t load video using VideoReader in matlab R2015 on Ubuntu 15.04. Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties

matlab ubuntu video reading

using
video=VideoReader('test2.avi');
to read avi video
but get
Error using VideoReader/init (line 619)
Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties.
I have installed gstreamer and related plugin-ins, but it still didn't work.
could anyone to help me figure out what's wrong?

Best Answer

VideoReader support GStreamer 0.10. So if you have installed Gstreamer 1.0, it will not work.
Once you install Gstreamer, you probably have to install the suitable plugins (codecs) to read the video. Try playing the video using Totem Player. I believe this uses Gstreamer.
Do not try VLC. It uses ffmpeg libraries and not gstreamer.
Related Question