less than 1 minute read

You’ll need Mplayer and Lame of course to do this.
Here is my script:


########################################
#!/bin/bash
echo “Enter name of URL to capture”

read URL

mplayer -dumpstream -dumpfile song.dump $URL

mplayer -vc dummy -vo null -ao pcm song.dump

echo “Enter Song name you want to save stream as (i.e. Doowap.mp3)”

read songname

lame -m s -q 2 –vbr-new -V 1 -B 320 audiodump.wav $songname

rm audiodump.wav
rm song.dump
##################################################

Updated: