motion notes
From Noah.org
http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome
configuration
Edit /etc/motion/motion.conf.
videodevice /dev/video1 width 1280 height 960 #width 1920 #height 1080 #width 2304 #height 1296 movie_filename %Y%m%d%H%M%S-%v timelapse_filename %Y%m%d-timelapse gap 10 pre_capture 1 post_capture 1 text_right %Y-%m-%d\n%T-%q jpeg_filename %Y%m%d%H%M%S-%v-%q snapshot_filename %Y%m%d%H%M%S-snapshot snapshot_interval 1 #snapshot_interval 60 framerate 30 # Threshold for number of pixels that triggers motion detection (default: 1500) # 10% is a massive change. # 1280*720=921600 pixels # 92160 is 10% of 921600 pixels #threshold 92160 #threshold 9216 threshold 921 # jpeg quality quality 95 # Valid values: 0 (default = no rotation), 90, 180 and 270. rotate 0 minimum_motion_frames 2 text_right %Y-%m-%d\n%T-%q text_changes on text_double on
A different example:
width 640 height 480 #movie_filename %Y%m%d%H%M%S-%v #timelapse_filename %Y%m%d-timelapse gap 3 pre_capture 0 post_capture 0 text_right %Y-%m-%d\n%T-%q jpeg_filename %Y%m%d%H%M%S-%v-%q snapshot_filename %Y%m%d%H%M%S-snapshot snapshot_interval 0 #snapshot_interval 60 framerate 1 videodevice /dev/video1 # Threshold for number of pixels that triggers motion detection (default: 1500) # 10% is a massive change. # 640*480=307200 # 307200 * 0.05 = 15360 threshold 15360 # jpeg quality quality 95 # Valid values: 0 (default = no rotation), 90, 180 and 270. rotate 0 # Motion events and end cause a light to turn on and off. on_event_end br --port=/dev/ttyUSB0 --house=A --off=1 on_motion_detected br --port=/dev/ttyUSB0 --house=A --on=1