Using VLC and cron to record a stream

Here is how to schedule a TV recording with VLC and cron. Enter this in crontab -e:

# m h  dom mon dow   command
45 18 11 10 * vlc -I http "rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=295" --sout file/ts://$HOME/tv-france3.mpg >& $HOME/vlc.log

-I http is needed do not start any GUI. We are running VLC in a cron job so there is neither X11 display nor TTY. --sout file tells vlc to write the video to a file.

#vlc