Error using VideoReader/init (line 619)

When I run the command
v = VideoReader('xylophone.mp4');
I get the following error:
Error using VideoReader/init (line 619)
The VideoReader plugin libmwgstreamerplugin failed to load properly.
Error in VideoReader (line 172)
obj.init(fileName);
Doing some search for a solution I came across http://www.mathworks.com/support/bugreports/1246784. However, this bug was supposed to be fixed in R2016b. I am currently running R2017a. The MATLAB version of the stdc++ library is libstdc++.so.6.0.20 and the OS version is libstdc++.so.6.0.19.
Can you please help troubleshoot?

4 件のコメント

Asya
Asya 2017 年 8 月 11 日
I am having the same problem.
Cam D
Cam D 2017 年 8 月 23 日
I'm having this issue starting with 2016b (and 17a). 2016a seems to work on RHEL6 (stdc++ 6.0.13), without the workaround. The same workaround is suggested by https://www.mathworks.com/support/bugreports/1531964
Judging by various bug reports (992019,1246784,1531964), looks like this is a recurring issue with many versions of MATLAB.
Jun Hu
Jun Hu 2017 年 10 月 27 日
編集済み: Walter Roberson 2017 年 11 月 11 日

I am facing the exact issue. My OS is CentOS 6.9 (Final) and VideoReader never works. I have tried Matlab R2014a, then R2017a without any luck. I have installed any available gstreamer plugins as following:

gstreamer.x86_64 0.10.29-1.el6 @base gstreamer-ffmpeg.x86_64 0.10.11-1.el6.rf installed gstreamer-plugins-bad-free.x86_64 0.10.19-5.el6_8 @base gstreamer-plugins-bad-free-extras.x86_64 gstreamer-plugins-base.x86_64 0.10.29-2.el6 @anaconda-CentOS-201311272149.x86_64/6.5 gstreamer-plugins-good.x86_64 0.10.23-4.el6_8 @base gstreamer-tools.x86_64 0.10.29-1.el6 @anaconda-CentOS-201311272149.x86_64/6.5 phonon-backend-gstreamer.x86_64 1:4.6.2-28.el6_5 @updates

Matlab please help us solve this issue.

Balaji Chandrasekaran
Balaji Chandrasekaran 2020 年 6 月 21 日
編集済み: Balaji Chandrasekaran 2020 年 6 月 21 日
I tried the Workaround https://www.mathworks.com/support/bugreports/1531964 but it didnt work im on Ubuntu 20.04 with R2016a update. i have libstdc++so.6.0.28 & libstdc++so.6 i already disabled libstdc++so.6.0.17 by renaminng it to libstdc++.so.6.0.17.old that is in /usr/local/MATLAB/R2016a/sys/os/glnxa64/ to view .fig files.
now i am unable to import videos bcoz of gstream plugin error

サインインしてコメントする。

 採用された回答

Jun Hu
Jun Hu 2017 年 11 月 8 日

1 投票

OK, I solved the issue by compiling my own gstreamer-1.0 libraries. The issue is caused by Matlab R2017a libmwgstreamerplugin depends on libgstreamer-1.0. The full solution is not as simple as copying few files or run few commands. Please refer to my blog and pick the parts you need http://sizeofinfinity.blogspot.com.au/2017/11/fix-matlab-videoreader-plugin.html.

4 件のコメント

Paul Hodor
Paul Hodor 2017 年 11 月 11 日
Thanks for looking into it and posting the solution.
Jun Hu
Jun Hu 2017 年 11 月 12 日
Thanks for accepting the answer and hopefully my 5 cents contribution can help solving your issue too.
SHUAB KHAN
SHUAB KHAN 2018 年 1 月 10 日
This will solve the problem in Centos but same problem I'm facing with Linux. What should I do now?
Balaji Chandrasekaran
Balaji Chandrasekaran 2020 年 6 月 21 日
編集済み: Balaji Chandrasekaran 2020 年 6 月 21 日
IS THERE A GENERIC SOLUTION TO ALL DISTROS .deb based ? i tried installing all packages @ last directly from apt didnt resolve the videoreader issue.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2017 年 5 月 25 日

編集済み:

2020 年 6 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by