Streaming various radio streams to FStream on the iPhone
FStream is a really neat streaming radio program for the iPhone.
Although it supports various WMA streams, I found that it did
not successfully work with some of the Australian ABC WMA
streaming radio services.  The most reliable method seems to
simply use a low-bandwidth MP3 stream over HTTP (24 kbps sounds
fine and works great even over Edge). I could find a number of
other blogs, etc. with static methods for streaming, but nothing
that reliably did on-the-fly conversion of an incoming stream.
My solution is simple Python HTTP server I'm calling stream2mp3.
It uses mplayer, lame and a few pipes to take the incoming
stream (which is pretty much anything mplayer can handle, which
is pretty much anything unencrypted) and spit it out as a low-
bandwidth MP3 stream over HTTP.  It seems to reliably handle
dropped and closed connections, and clean-up after itself. I'd
certainly be interested in any bug fixes or suggestions. I guess
the major disadvantages i