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:
Post a Comment