#! /bin/sh # getstream / Auldor 2007 (longbow.tar.cc) # A simple script to download RealAudio streams and convert them to MP3s # Based on commands from http://stommel.tamu.edu/~baum/linux-music.html # Test on http://bbc.co.uk/doctorwho/classic/ram/nb/gunfighters2_au_nb.ram VERSION='0.2' echo "Stream URL (must start with http:// and end with .ram)" read url mplayer -playlist $url -ao pcm:file=stream.tmp.wav -vc dummy -vo null echo "Stream downloaded. Save MP3 as... (must end with .mp3)" read file lame stream.tmp.wav $file rm stream.tmp.wav