# Thread1 is USB1.1 Philips TouCam Pro II

videodevice /dev/video0
input 8

# The next two lines can be enabled to record audio.
# on_event_start arecord -f S16_LE -r 22050 -D plughw:%t /home/mh/motion_data/%Y%m%d_%H%M%S_thread%t.wav
# on_event_end ps -ef | grep arecord | grep plughw:%t | grep -v grep  | awk '{print $2}' | xargs kill -9

width 640
height 480
threshold 500

framerate 10

movie_filename %Y%m%d_%H%M%S_thread1
snapshot_filename %Y%m%d_%H%M%S_snapshot_thread1
snapshot_interval 3600

#post_capture is in frames (25 with framerate=5 gives 5seconds).
post_capture 2

# gap is in seconds (time from last motion detected AND last post_capture stored for defining event_end.
gap 60
