Dumping realaudio files with Mplayer

Mplayer is the swiss army knife when it comes to multimedia. Sometimes you want to save those streams so that you can listen to them for example in you MP3-player. No problems using mplayer. Find out the URL for the stream to download. It looks something like this:
rtsp://my.domain.net/streaming/media.ra
rtsp://my.domain.net/streaming/media.rm

Sometimes the URL:s are contained in a ram-file, then just download the file:

wget http://my.domain.net/streaming/media.ram

Checking the contents of the file should reveal something similar to the links above, ie:

rtsp://my.domain.net/streaming/media.ra
rtsp://my.domain.net/streaming/media.rm

To download let mplayer do the work:

mplayer -dumpstream rtsp://my.domain.net/streaming/media.ra

This will download the media and store it in file called stream.dump. Convert this file to wav format using mplayer again:

mplayer -o pcm stream.dump

This in turn will generate a file named audiodump.wav. In this example I use lame to convert the file to MP3:

lame –tt “Title of track” –ta “Artist name” audiodump.wav example.mp3

Tada!

Comments

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><pre>
  • Lines and paragraphs break automatically.

More information about formatting options

To combat spam, please enter the code in the image.