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

9 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2010b

Community Treasure Hunt

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

Start Hunting!

Translated by