twitch

Music blog

Music blog
www.fenetre8.com. Fourni par Blogger.

[ubuntu] HOWTO: Record internet radio using VLC

[ubuntu] HOWTO: Record internet radio using VLC

using VLC:

1. Create a script file 'recordmyshow.sh', with the following content.
Code:
#!/bin/sh
NOW=$(date +"%b-%d-%y")

cvlc --run-time=7200 http://kqed-ice.streamguys.org:80/kqedradio-ch-e1 --sout "#duplicate{dst=std{access=file,mux=raw,dst=/home/<user>/myshow-$NOW.mp3}" vlc://quit ;
cvlc is the commandline version of vlc
use --run-time to indicate the duration of the show in seconds
Replace the url to the radio station of your choice and dst to the path you desire. That's it

2. Mark the file as executable
Code:
chmod +x recordmyshow.sh
3. Schedule the recording in cron.
a. Launch the cron
Code:
crontab -e
b. Put the schedule in it
Code:
00 18 * * 06 /home/<user>/recordmyshow.sh

0 commentaires:

Enregistrer un commentaire