VideoReader - Matlab R2014b - Ubuntu 15.10

1 view (last 30 days)
Hi everybody
I've tried to get access to a AVI-File in Matlab R2014b under Ubuntu 15.10 with the following commands:
info=mmfileinfo('rpn003a02.avi');
v=VideoReader('rpn003a02.avi');
I've tested these two commands with different coded videos (FFV1, FFVhuff and Uncompressed planar YUV 4:4:4). All tests have failed. I always got the following error messages:
Error using mmfileinfo (line 70)
The VideoReader plugin libmwgstreamerplugin failed to load properly.
Error using VideoReader/init (line 619)
The VideoReader plugin libmwgstreamerplugin failed to load properly.
Error in VideoReader (line 172)
obj.init(fileName);
Currently I've installed all available gstreamer0.10 packages under Ubuntu and the gstreamer0.10-ffmpeg plugin out of a PPA source. This should actually help according to similar question I found on google. So I have no further ideas to solve this problem. The gstreamer1.0 packages are also on my system. Maybe they are the source of my problem, but I cannot remove them, because they are necessary for many other applications.
I would appregiate, if somebody could help me?
Kind regards
Daniel Matthes
  4 Comments
Walter Roberson
Walter Roberson on 25 Apr 2016
Qiang GUO, did you try the gstreamer fix?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Jan 2016
It might be the gstreamer problem; see http://www.mathworks.com/matlabcentral/answers/94531-why-do-i-receive-an-error-when-creating-a-videoreader-object-on-linux-in-matlab-r2010b-7-11#answer_103883 and note that the problem has other symptoms than just the one shown in that Question.
  2 Comments
Daniel Matthes
Daniel Matthes on 1 Feb 2016
Thank you very munch Walter for this hint! Your mentioned workaround brought me one step forward. Now I get access to the videos, which are "Uncompressed planar YUV 4:4:4" coded. If I try to access to FFV1 and FFVHuff coded file, I get still an error. Currently the following one:
Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties
Did you have another hint for me?
Kind regards Daniel
Walter Roberson
Walter Roberson on 1 Feb 2016
Sorry, I do not have any additional ideas.

Sign in to comment.

More Answers (1)

holmes shuan
holmes shuan on 15 Jul 2017
Problem solved:
sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-tools
sudo apt-get install gstreamer0.10-plugins-good

Products

Community Treasure Hunt

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

Start Hunting!