MATLAB: Error using VideoReader/init (line 619)

videoreader libmwgstreamerplugin

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?

Best Answer

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.