Effacer les filtres
Effacer les filtres

Audioread for MP3s on Linux

1 vue (au cours des 30 derniers jours)
Frank Zalkow
Frank Zalkow le 10 Août 2016
Modifié(e) : Frank-Michael le 13 Nov 2017
I fail to read mp3 files with Matlab's audioread.
>> audioread('file.mp3')
Error using audioread (line 88)
The file type is not supported
I am on Ubuntu 16.04 and have Matlab R2016a installed. I already have done the workaround for this bug . (Link against my system's more recent libstdc++.) See:
$ readlink -f /usr/local/MATLAB/R2016a/sys/os/glnxa64/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
I have the suspicion, that it could be an gstreamer-issue... As far as I understand, Matlab uses gstreamer 0.1 and I suppose to have gstreamer0.1-fluendo-mp3 installed. However, this is not available for Ubuntu 16.04, only gstreamer 1.0 is available:
$ apt-cache search gstreamer fluendo-mp3
gstreamer1.0-fluendo-mp3 - Fluendo mp3 decoder GStreamer 1.0 plugin
Any ideas how I could be able to decode mp3 files with audioread? Can I tell Matlab to use gstreamer 1.0 instead of 0.1? Any help is much appreciated.
(I already asked this question on Stackoverflow, with no success so far.)
  1 commentaire
Frank Zalkow
Frank Zalkow le 16 Août 2016
Modifié(e) : Frank Zalkow le 16 Août 2016
In the case anyone else is interested in this: I contacted the Mathworks support. This functionality is currently not available under Ubuntu 16.04 and there is no workaround. It is intended to be fixed in a future Matlab release.

Connectez-vous pour commenter.

Réponses (1)

Frank-Michael
Frank-Michael le 12 Nov 2017
Modifié(e) : Frank-Michael le 13 Nov 2017
Doesnt sound like a particular good solution. They (mathworks) remove wavread which was working quite well and replace it by other code which is not working on all systems due to old linked libraries ... For those who have not yet the most recent Matlab with fixed linkings: you can use audacity (open source) as a workaround - which allows to export /modify various audio formats and can also make a CSV export which finally can go into Matlab
  1 commentaire
Walter Roberson
Walter Roberson le 12 Nov 2017
Not really relevant, as wavread() was only for .wav files, but the poster was hoping to read .mp3 files

Connectez-vous pour commenter.

Catégories

En savoir plus sur Install Products dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by