motion

You should edit the settings: videodevice, input, norm, frequency, width, height and target_dir in /etc/motion.conf