Rip Stream To MP3

How to rip an audiostream to MP3? I will take an example with my favorite radiostation di.fm.

First, get the file with all systems that broadcast the right channel and I take “Vocal Trance” as an example.

wget http://di.fm/mp3/vocaltrance.pls

Then look in this file and search for lines like

File1=http://64.236.98.50:80/stream/1065

You will find multiple File#= lines, pick any you like. Now you have the URL of a broadcast. Start ripping it:

cd to_directory_i_want_to_have_the_files_in
streamripper http://64.236.98.50:80/stream/1065 -q -M 700

The option -q numbers the generated MP3 files and -M 700 rips until it has 700Mb of files. Why 700Mb? It fits on a CD so I can use it in my car and with then bitrate used by many stations hours of my favorite music fit on a single CD. But using -l 7200 limits the recording to 2 hours (7200 seconds).

StreamRipper has a very old KDE GUI called KStreamRipper. It doesn't work on my system, that is why I mentioned the commandline instructions.