All | 43 Folders | Accessibility | BoingBoing | Books | Computer Related | Family | Films | General | Hacking | Hobbies | Humor | Java | Links | Omni | OpenSolaris | Puzzles and Games

« Runescape - Online... | Main | Christmas Lights... »
20061209 Saturday December 09, 2006

Can't Get Radio Paradise MP3 Audio Streams To Play On Ubuntu Edgy

This shouldn't be so hard, but I can't find a solution. Hopefully one of the Ubuntu cognoscenti will come to the rescue.

The Problem.
I'm trying to find an audio player for my Ubuntu Edgy 64-bit system that can stream Radio Paradise, my favorite Internet Radio station. This is yet another of those things I currently use either a Windows or Mac OS X machine for (with iTunes), and for which I'm now trying to find a solution for, under Ubuntu.

I first tried xmms, because that's what the Radio Paradise website suggests. I right clicked over the xmms GUI, and selected "Play Location" from the menu. I copied in the URL of the 32Kb MP3 streaming link, and then clicked the OK button. Nothing appeared to happen. Certainly no audio playing.

I then tried totem, as that was the default application suggested by Firefox in the "Opening rp_32.m3u" dialog window when I clicked on this link.

I got a popup error dialog containing:

Totem could not play 'http://205.188.215.226:8000'.

You do not have a decoder installed to handle this file. You might need 
to install the necessary plugins

I then tried rhythmbox, typing the URL for the 32Kb MP3 stream into the "New Internet Radio Station" popup and clicking on the Add button. It appears in the table of available stations. Double clicking on it results in an error dialog stating:

Couldn't start Playback

You do not have a decoder installed to handle this file. You might need 
to install the necessary plugins

Probably using the same underlying audio libraries.

I then found My quest for a Linux audio player by Peter Enseleit. He seems to like MPlayer best. Okay, I'll give that a try. I found that the MPlayer MPlayer download site recommends building from the source. Aww, that's so sweet, but really I have a life to live. I want a solution that "Just Works(TM)". I then found another website that showed me how to install the required Ubuntu packages. I did that. So I now have MPlayer on my system. I tried Applications->Sound & Video->MPlayer Movie Player, right clicked to get the menu and selected Open...->Play URL... and entered the streaming URL again. I got an error dialog saying:

Couldn't resolve name for AF_INET6: www.radioparadise.com

Unlike Peter, I don't feel like trying another dozen audio players.

I suspect all these problems are the same thing. I know that MP3 is a patented codec, so it's probable that this is simply a case of none of these players having an MP3 codec by default.

I've spent an inordinate amount of time googling around trying to find a solution on how to do this, but to no avail.

So...

Can anybody point me at a Ubuntu HOWTO for how to set this up for personal use on an Edgy system? And make sure that it works for Radio Paradise!

If I get a workable solution suggested, I'll update this blog entry accordingly, to hopefully alleviate the pain of the next person who wants to do this and goes googling for a solution.

Thanks!

Update:
Thanks to the first three people to comment. I've now installed gstreamer-fluendo-mp3 and gstreamer-plugins-ugly via the Synaptic Package Manager, and reclicked on the RP MP3 link, and totem now streams the radio station just fine.

[]

[]

[]

( Dec 09 2006, 07:30:54 PM PST ) [Listen] Permalink Comments [11]

Comments:

Totem and Rhythmbox are both using the Gstreamer multimedia framework. Installing gstreamer0.10-plugins-ugly (which can be found in the universe section of the Ubuntu repository) will allow Gstreamer to decode MPEG audio (as well as a few other things). See http://www.ubuntu.com/ubuntu/components to find out how to tell Apt about the universe section; or download the package directly from http://packages.ubuntu.com/gstreamer0.10-plugins-ugly

Posted by Sam Morris on December 09, 2006 at 07:53 PM PST #

I'm running Edgy 64-bit. I just copied the URL you gave into the "open location" dialogue in Totem and.... it just started playing. Are you sure you have a GStreamer MP3 decoder installed (either package gstreamer-plugins-ugly or gstreamer-fluendo-mp3 from multiverse will do).

Posted by Tristan Brindle on December 09, 2006 at 07:54 PM PST #

I run stock Debian GNU/Linux. I clicked on the link you gave, and Firefox^WIceweasel offered to open it in Totem. I clicked OK, Totem started, buffered for a moment, and started playing. (Note that I use totem-xine, not totem-gstreamer.) I then pulled up Quod Libet, switched to the Internet Radio view, clicked New Station, copied the URL into the box, hit OK, and hit Play, and Quod Libet started playing it. I actually had the most trouble getting MPlayer to play it; for that, I had to give MPlayer the URL for the underlying stream, not the URL for the m3u file. I would recommend trying the following: * Install totem-xine, and see if that works better. * For the gstreamer-based players, I have the following gstreamer 0.10 packages installed: gstreamer0.10-ffmpeg, gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, gstreamer0.10-plugins-bad, gstreamer0.10-plugins-ugly.

Posted by Anonymous on December 09, 2006 at 07:58 PM PST #

Thanks guys!

I installed gstreamer-fluendo-mp3 and gstreamer-plugins-ugly via the Synaptic Package Manager, and reclicked on the RP MP3 link, and totem now works great.

I'll update the blog post accordingly.

Posted by Rich Burridge on December 09, 2006 at 08:15 PM PST #

Rich, your question is covered in the Ubuntu manual, which is both included in every Ubuntu installation (under System --> Help) as well as available on-line here: https://help.ubuntu.com/6.10/ubuntu/desktopguide/C/codecs.html

Posted by JanC on December 10, 2006 at 08:01 AM PST #

Hi JanC. Thanks!

I've gone ahead and installed all those extra packages.

I think what I was hoping for here was ease-of-use. Why aren't these codecs installed by default? I'd guess that in some cases this is because of the patent issues. Fair enough. What would have really been nice is if one of those applications -- especially if I tried to use something as popular as MP3 -- had fired up a dialog that instead of just saying:

Couldn't start Playback

You do not have a decoder installed to handle this file. You might need 
to install the necessary plugins

had gone the extra mile and quoted the URL that you pointed me too.

I know that Ubuntu often add their own patches to "standard" GNOME software. This looks like another perfect place for a patch.

Posted by Rich Burridge on December 10, 2006 at 08:22 AM PST #

Ahh, I just saw the comment on that webpage:

Some of these packages may not be permitted in some countries: you should verify that you are permitted to use them before installing them.

Fair enough. That explains why they aren't installed by default. My suggestion from the previous comment still stands though.

Posted by Rich Burridge on December 10, 2006 at 08:27 AM PST #

MPlayer should have worked if you had waited a bit longer. "Couldn't resolve name for AF_INET6: www.radioparadise.com" is just a warning, it'll fall back on IPv4.

Posted by 71.206.231.102 on December 10, 2006 at 09:43 AM PST #

Nope. Or at least not for me. I just retried MPlayer, and got the same problem.

Posted by Rich Burridge on December 10, 2006 at 09:51 AM PST #

As far as I know adding a 'download codec' link to the media players is included in Ubuntu Fiesty planning.

Posted by ak on December 10, 2006 at 04:34 PM PST #

Excellent! Even better. Thanks ak.

Posted by Rich Burridge on December 10, 2006 at 06:33 PM PST #

Post a Comment:

Comments are closed for this entry.