V4l capturing and pvr tool
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:
-timer start in automatic timer (PVR) mode