Recording RealAudio streams and converting them to MP3
- February 1st, 2007
- Posted in Linux . mplayer
- Write comment
A friend of mine recently had his 5 minutes of fame of Five Live and asked me to if I could covert the “Listen again” to an mp3 so it could be saved for the good of Humanity. Here how I did it:
- Finding the name of the stream can sometime be a bit tricky. If you can get it to play in the stand alone RealPlayer then you can just click on File->Clip properties->Clip source. This will then bizzarely open a webpage. You looking for an address like rtsp://rmv8.bbc.net.uk/radio5/anita_mon.ra. If you can’t open it then it’s a case of looking though the source of the page.
- Now you’ve got the address, run the following command:
mplayer -noframedrop -dumpfile file.rm -dumpstream rtsp://rmv8.bbc.net.uk/radio5/anita_mon.ra
This will save the clip as file.rm. Watch out though, this is recorded in real time. So a 3 hour radio show will take… 3 Hours! - Next you need to covert the realmedia file to wav, again mplayer is your friend
mplayer file.rm -ao pcm:file=file.wav -vc dummy -vo null - Last stage is to convert from wav to mp3 using lame. I like to hedge my bets and encode it as VBR
lame -V file.mp3 file.wav --tt "Title" --ta "author"
You should have have a shiny MP3 file for your troubles.
This friend of yours. He must be totally fckin awesome!
I worship him.
Actually he’s a bit of a farmer