VideoReader - Matlab R2014b - Ubuntu 15.10

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 commentaires

Daniel Matthes
Daniel Matthes le 2 Fév 2016
Modifié(e) : Daniel Matthes le 2 Fév 2016
I've currently found out, that the problem is not a matlab problem. It is a Gstreamer problem. After the installation of the gstreamer0.10-ffmpeg plugin, I've tested the following command:
gst-launch-0.10 playbin2 uri=file://~/rpn003a02.avi
The outcome of this is the following error message:
Leitung wird auf PAUSIERT gesetzt ...
Leitung läuft vor …
FEHLER: Von Element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstAviDemux:avidemux0: Interner Datenstromfehler.
Zusätzliche Fehlerdiagnoseinformation:
gstavidemux.c(5212): gst_avi_demux_loop (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstAviDemux:avidemux0:
streaming stopped, reason not-negotiated
FEHLER: Leitung läuft nicht vor.
Leitung wird auf NULL gesetzt ...
Leitung wird geleert ...
Did anybody has/had a similar problem and a corresponding solution?
Regards Daniel
Qiang GUO
Qiang GUO le 25 Avr 2016
Hi, I meet this problem currently. The videoreader object can read some avi video, not other avi video. I am working on this now. If you have some solution, please tell me. " Error using VideoReader/init (line 447) The VideoReader plugin libmwgstreamerplugin failed to load properly. Error in VideoReader (line 146) obj.init(fileName);"
Walter Roberson
Walter Roberson le 25 Avr 2016
Qiang GUO, did you try the gstreamer fix?

Connectez-vous pour commenter.

 Réponse acceptée

Walter Roberson
Walter Roberson le 29 Jan 2016

0 votes

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 commentaires

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 le 1 Fév 2016
Sorry, I do not have any additional ideas.

Connectez-vous pour commenter.

Plus de réponses (1)

holmes shuan
holmes shuan le 15 Juil 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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by