Borrar filtros
Borrar filtros

Audioread for MP3s on Linux

1 visualización (últimos 30 días)
Frank Zalkow
Frank Zalkow el 10 de Ag. de 2016
Editada: Frank-Michael el 13 de Nov. de 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 comentario
Frank Zalkow
Frank Zalkow el 16 de Ag. de 2016
Editada: Frank Zalkow el 16 de Ag. de 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.

Iniciar sesión para comentar.

Respuestas (1)

Frank-Michael
Frank-Michael el 12 de Nov. de 2017
Editada: Frank-Michael el 13 de Nov. de 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 comentario
Walter Roberson
Walter Roberson el 12 de Nov. de 2017
Not really relevant, as wavread() was only for .wav files, but the poster was hoping to read .mp3 files

Iniciar sesión para comentar.

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by