The Grumpy Editor's guide to audio stream grabbers
Posted May 11, 2006 15:32 UTC (Thu) by
stevan (subscriber, #4342)
Parent article:
The Grumpy Editor's guide to audio stream grabbers
May I humbly submit a little script that I use for recording BBC output,
especially BBC7 stuff from their "Listen Again" page. BBC output is in
Realaudio format, but I've used the same script for other formats too.
You need the URL of the stream. This can usually be pasted from the
clipboard, but is sometimes hidden when you use the BBC RadioPlayer front
end. However, you can find the URL in your squid logs!
The script accepts the URL and a final file name as arguments. Of course,
the final result is an ogg file. I hope someone will improve it so that
it becomes clickable app under KDE.
Stevan
------
#!/bin/sh
FILE=$RANDOM
QUALITY=48
mplayer -nojoystick -nolirc -prefer-ipv4 -playlist $1 -ao \
pcm:file=~/Desktop/$FILE.wav -vc dummy -vo null
cd ~/Desktop
oggenc -b $QUALITY $FILE.wav
rm $FILE.wav
mv $FILE.ogg `echo $2 | tr " " _`.ogg
(
Log in to post comments)