All of the interesting technological, artistic or just plain fun subjects I'd investigate if I had an infinite number of lifetimes. In other words, a dumping ground...

Saturday 29 May 2010

Saving the FBI Radio stream to mp3 on Linux (Ubuntu Lucid)

crontab
0 18  * * mon-fri  /home/tohare/fbi.sh >> /home/tohare/mimms.log 2>&1
30 20  * * mon-fri  /home/tohare/convert_fbi.sh >> /home/tohare/mimms.log 2>&1

save the stream (fbi.sh)
#!/bin/bash
/usr/bin/mimms -v -t 120 mms://wm9.streaming.telstra.com/UCS-wh_fbi0live1  /home/tohare/web-music/fbi-radio-sunsets-`date +%F`.asf > /home/tohare/mimms.log 2>&1


convert to mp3 (convert_fbi.sh)
#!/bin/bash
cd /home/tohare/web-music
/usr/bin/ffmpeg  -i /home/tohare/web-music/fbi-radio-sunsets-`date +%F`.asf /home/tohare/web-music/fbi-radio-sunsets-`date +%F`.mp3 >> /home/tohare/mimms.log 2>&1
/usr/bin/mp3info -t "fbi-radio-sunsets-`date +%F`" -a "FBI Radio" -g "Dance" -y "`date +%Y`" /home/tohare/web-music/fbi-radio-sunsets-`date +%F`.mp3 >> /home/tohare/mimms.log 2>&1
/usr/bin/mp3splt -s /home/tohare/web-music/fbi-radio-sunsets-`date +%F`.mp3 -d fbi-radio-sunsets-`date +%F`  >> /home/tohare/mimms.log 2>&1

No comments:

tim's shared items

Add to Google Reader or Homepage