V4l capturing and pvr tool
avicap [options][files|URLs]
avicap
avicap is a video4linux capturing and PVR tool.
avicap can shutdown/poweroff and poweron/reboot your computer again
look here for a full end user documentation on Avicap, its timertable/PVR mode and it's shutdown options:
http://avifile.sourceforge.net/
-timer start in automatic timer (PVR) mode