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.
Howto:
- 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..)
I recently wrote a guide explaining how to convert .ra files to mp3 using only open source software (mplayer and lame) on windows. You can find it here : http://www.digital-atheist.com/tutorials.html
Since wav files occupy quite some space, a better method to convert a real audio file would be the following:
# mkfifo stream.wav
# mplayer mplayer -ao pcm:file=stream.wav rtsp://XXXX/stream.rm &
# lame stream.wav
# rm stream.wav
mkfifo create a socalled ‘named pipe’ (see http://www2.linuxjournal.com/article/2156 for a tutorial). mplayer writes to that pipe while lame (at the same time) reads from it and encodes the file on the fly.
Flohack, yes that’s pretty fine :)
Warning mplayer team has changed the syntax.. now it’s:
mplayer -cache 128 -ao pcm:file=stream.wav rtsp://XXXX/XXX.rm
thanx for this article !
While it worked perfectly in the past, it stopped working for some streams.
For example, this one:
rtsp://rmv8.bbc.net.uk/worldservice/learningenglish/10days/day5audiobda.rm?BBC-UID=442ac8cfcb223134814687d0e155a1ce83e3d037700001af72f9e03c3140af02&SSO2-UID=
works in totem and media player but not in this script. Any clue why?
Is their a way to keep the ID3tag that’s in the .rm when convert it to the mp3?
Thank you.
Thanks for the help. There are numerous sites that offer this. I’ve found another way of converting audio to wav/mp3. Here’s the link http://wavtomp3converterfree.com
This makes listening to your music tracks convenient. I’ve also learned another way of converting files to MP3, try this http://convertfilestomp3.com
you now can simply use ffmpeg:
ffmpeg -i input.rm output.wav
OR
ffmpeg -i input.rm output.mp3 ( you must install LAME)
Hi, I found an archive of an old radio show I want to listen to, but it’s only available in “.smil” . These streams are playable in Real Player, but extremely slow to load. I’d like to convert these to .mp3.
Any suggestions?
Thanks!