Page 1 of 1

VLC and crontab

Posted: 22 Oct 2005 01:33
by andyrod
Hi !

I have been playing around with VLC, and I found this software AMAZING!

Is it possible to record a live radio with VLC using the crontab? I am listening to this french radio (france info), which URL is
mms://vip9.yacast.fr/encoderfranceinfo

I tried entered the following 2 lines to my crontab :

0 8 21 10 * vlc mms://vip9.yacast.fr/encoderfranceinfo --intf dummy --sout file/ogg:/home/andy/franceinfo.ogg 1>/dev/null 2>&1
30 8 21 10 * killall vlc

to my understanding, this is supposed to start reading the stream from 8 AM during 30 minutes, and save the incoming stream directly in the OGG format in the file franceinfo.ogg.

Unfortunately, this doesn't work! Anyone?

Cheers,
Andy

Re: VLC and crontab

Posted: 05 Sep 2008 23:18
by Arfyness
I was trying to run vlc from a cron job also, and I think there's a problem with the DISPLAY variable not being set.

I'm researching this now, will post a solution here if I find it. (I'm not sure about recording to a file though)