Easy Audio Stream Recording with Streamripper

Posted by reto on 02 April, 2006 15:24

Streamripper is one of the most popular audio stream recording tools (i.e. stream rippers) available. If you know streamripper already, you may know it as a Winamp plugin, but streamripper is available as standalone binary, too! And the best: it's open source and available for Linux, Windows and OSX (BTW: If you are on OSX you may try StreamripperX, which features a nice GUI). The following examples are tested on a Windows box but surely work as well on the other plattforms. I started recording my favourite radio station in the evening and listen to it while I'm in the car driving to work the next day. This is what i tell streamripper to do:
streamripper.exe -d E:/tmp/streams -r 9009 -M 67 -o never -T
Streamripper expects an url to the stream in the first place, followed by some parameters (there is a nice readme, explaining full potential of streamripper, I will only explain the ones I need):
-d e:/folder/for/your/streams
Lets streamripper know where it should put the files to. Streamripper will create a directory for each stream (i.e url) if you don't like that add the parameter -s.
-r 9009
This comes in handy if you would like to listen to the stream you are ripping. Instead of downloading the stream twice, once to streamripper and once to, say winamp, just connect Winamp to Streamripper which is relaying the stream on port 9009 in this example: locahost:9009
-M 67
Streamripper stops after x seconds, considering, that I need an audio CD lasting for 74 minutes this is a bit tricky, because Streamripper may stop earlier. This happens for example if a song is played twice within 74 minutes (which I'm removing with -o never). So I'm better off calculating the amount of mp3 data i need to download to get 74 minutes music. This of course depends on the quality of the stream, but as the stream has a constant bit rate it's quite easy:
Bit-rate x seconds / 8 / 1024 / 1024 = File Size in MB
128'000 x 4'440 / 8 / 1024 / 1024 = 67 MB
-o never
I don't want Streamripper to overwrite files already ripped (with the same name). This should make sure I don't have duplicated tracks on cd at the end.
This one is not very important, it helps keeping the carbage (incomplete streams/tracks) as small as possible by truncating completed files in the incomplete folder to zero bytes if they are duplicates.

For easy reuse, I'm using a windows shortcut. just create a shortcut, right click and edit "target" field in the properties. you simply need to append the parameters after the streamripper.exe. (like you see above, all in one line)

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.

Related Articles
Media-Server Requirements
IE7 - New Hope for Standards Compliant Webdesign
Generic Phishing Attack or an attack on PostFinance?
Maintenance Release of pLog available
Mercedes-Benz Mixed Tape



Mercedes-Benz Mixed Tape

Reto's Weblog | 13/12/2006 23:11

Thanks to Habi dumping links, too. I'm now listening to mixed-tape #15, which is probably the coolest compilation freely available for you to download atm.No DRM, no stream ripping, just plain good old mp3 in a zip. That's what I call marketing...