MATLAB Answers

0

Why do I receive an error when creating a VideoReader object on Linux in MATLAB R2010b (7.11)?

I installed the latest GStreamer plugins on my Fedora14 64 bit machine to read a video. I can read this video with totem but when I try to read it with 'VideoReader' in MATLAB I get an error message:
??? The file requires the following codec(s) to be installed on your system:
video/mpeg
Error in ==> VideoReader.VideoReader>VideoReader.init at 423
obj.VideoReaderImpl = audiovideo.mmreader(fullName);
Error in ==> VideoReader.VideoReader>VideoReader.VideoReader at 133
obj.init(fileName);
The same thing happen when I try to get informations on this video file with 'mmfileinfo', but the 'aviinfo' function works well and the 'VideoCompression' field is 'FMP4'
I get the same error on Ubuntu 64 bit.

4 Answers

Answer by MathWorks Support Team on 30 Jul 2013
 Accepted Answer

Newer versions of some gstreamer plugins require a later version of libstdc++ than the one which is shipped with MATLAB.
As a workaround you can run MATLAB on the version of libstdc++ installed on your system:
1. cd to (matlabroot)/sys/os/glnxa64/
2. Rename libstdc++.so.6 to backuplibstdc++.so.6
3. Rename libstdc++.so.6.0.10 to backuplibstdc++.so.6.0.10
4. Restart MATLAB and execute the code again.

  4 Comments

Show 1 older comment
Thanks a million....it worked for me on Matlab2017b with Ubuntu 16.4
it worked for me on Matlab2017b with Ubuntu 16.4
It works for me in Matlab R2018a. The only thing that changes was that in step 3 i rename libstdc++.so.6.0.22 to backuplibstdc++.so.6.0.22 instead of the number 10 at the end of the files. Thank you so much!

Sign in to comment.


Answer by rockNroll87q on 10 Nov 2015

I have pretty much the same problem. Ubuntu 14.04.3 LTS, 64 bit - trusty, with MATLAB R2012a.
I already tried the proposed method, but it didn't solve. My matlab has libstdc++.so.6 and libstdc++.so.6.0.13. My system libstdc++.so.6.0.19.
I also installed all gstreamer0.10 libraries and libx264-142 (with apt-get) and ffmpeg (source code). The problem arises with both VideoReader and mmreader.
Any suggestion?

  0 Comments

Sign in to comment.


Answer by vijay chander on 23 Feb 2014

??? The file requires the following codec(s) to be installed on your system: h264
Error in ==> VideoReader.VideoReader>VideoReader.init at 423 obj.VideoReaderImpl = audiovideo.mmreader(fullName);
Error in ==> VideoReader.VideoReader>VideoReader.VideoReader at 133 obj.init(fileName);
i'm also facing the same problem im using matlab r2011a 64bit on windows7 please help me
thank you..

  0 Comments

Sign in to comment.


Answer by AYADI lassaad on 5 Mar 2016

la methode n est pas claire j ais rien compris

  0 Comments

Sign in to comment.