I really enjoy to listen radio. Most of the radio use Realaudio stream. On Un*x, you usually can use realplayer. Now i want to convert this stream to mp3 in order to listen it on my mp3 player.
- First down the .ram file
- open it to find the rtsp url (something like rtsp://XXXX/stream.rm)
- ask mplayer to encode it in wav
- next transform it to mp3 (with lame)
mplayer -cache 10 -ao pcm -aofile stream.wav rtsp://XXXX/stream.rm lame stream.wav
I wrote a little script to do this directly look at realRip for more informations. To use it simply call “realRip.py stream.ram” or “realRip.py http://XXXX/stream.ram” (it will download the ram file and parse it..)