I followed https://software.intel.com/en-us/articles/play-audio-from-your-intel-edison-via-bluetooth-using-adva... this document to get wav files to play using Gstreamer and pulseaudio over bluetooth to a speaker. At the end of the document it says:
"You may run into issues playing .mp3, stay tuned for updates."
Has anyone got mp3s to work? I'm currently using the wavparse plugin:
gst-launch-1.0 filesrc location= /home/root/music/sound.wav ! wavparse ! pulsesink
I would expect it to be mad for MP3:
gst-launch-1.0 filesrc location= /home/root/music/sound.mp3 ! mad ! pulsesink
But if I try that I get an error: "Your GStreamer installation is missing a plug-in."
I've got mp3s to play using
mpg123 and alsa http://alextgalileo.altervista.org/blog/lets-make-noise-play-audio-edison/ from AlexT's repo and tutorials.
I'm wondering if anyone has the gstreamer plugins sorted
Does this procedure work for .wav files? One alternative would be to convert the .mp3 files to .wav files.
You can try converting the .mp3 files to a .wav file and check if the command
gst-launch-1.0 filesrc location= /home/root/music/sound.wav ! wavparse ! pulsesink works for you.
Yes, I can play wav files with gstreamer, just not mp3 files.
I could convert the mp3 files to wav files as you suggest, it would allow me to keep going with my project, but in the long term I was intending to have a lot of music stored on the edison to play through a bluetooth speaker, so the MP3 compression would allow me to store more music.
as far as I can see AlexT only has the gstreamer "good" plugins and not the "ugly" ones (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-ugly-plugins/html/ GStreamer Ugly Plugins 1.0 Plugins Reference Manual: GStreamer Ugly Plugins 1.0 Plugins Reference Manual) which would cover mp3.
Check gstreamer manual (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/manual.pdf http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/manual.pdf) on the differences:
so you may check whether you can use a mp3 decoder out of the "ugly" plugins. Alternatively, there is also the Fluendo mp3 gstreamer decoder plugin you may want to check: http://core.fluendo.com/gstreamer/src/gst-fluendo-mp3/ Index of /gstreamer/src/gst-fluendo-mp3