MATLAB Cannot Find Codecs on Linux

31 visualizzazioni (ultimi 30 giorni)
ifiedler
ifiedler il 21 Ott 2015
Commentato: ifiedler il 23 Ott 2015
I get the following error:
Error using VideoReader/init (line 457)
The file requires the following codec(s) to be installed on your system:
video/mpeg
When I run:
v = VideoReader('video.mpg');
This happens with all video types except .ogv files.
However I have the codecs and can open various file types including .mpg using video software other than MATLAB.
I have tried:
"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. "
Suggested here:
and:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
but apparently this is deprecated and no longer available.
Neither of these work. This could be as a result of new versions of MATLAB and Ubuntu causing new problems.
  2 Commenti
Dinesh Iyer
Dinesh Iyer il 22 Ott 2015
The libstdc++ workaround appears to be for a separate issue and does not apply here.
VideoReader uses Gstreamer for video reading. Can you check if you are able to view the file using totem Player? Also check the Gstreamer version used by Totem to make sure it is not 1.0 (Menu bar Help > About totem). VideoReader supports only 0.10.
After installing the ffmpeg gstreamer plugins, can you check if you are able to read xylophone.mp4?
Dinesh
ifiedler
ifiedler il 23 Ott 2015
Mostly resolved.
It appears that the problem was that I had the newer version of gstreamer.
sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
sudo apt-get -y install gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
has given MATLAB access to the video/mpeg codec. I.e. I can open .mpg files.
I am still missing video/x-h264 for opening mp4 files. gstreamer0.10-ffmpeg recommended is not available.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by