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://" --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.