theremin-pi/motion/motion.conf

51 lines
1.4 KiB
Text
Raw Normal View History

daemon off
setup_mode off
log_level 6
log_file /dev/null
stream_localhost off
stream_port 8080
stream_motion on
stream_preview_method 4
videodevice /dev/video0
camera_name MaudeCam
camera_id 1
width 1024
height 768
locate_motion_mode on
framerate 5
text_left MAUDECAM!!
text_changes on
text_scale 3
text_right %Y-%m-%d\n%T-%q
emulate_motion off
threshold 2500 # Threshold for number of changed pixels that triggers motion.
threshold_maximum 2050000
lightswitch_percent 40
lightswitch_frames 15
; noise_level 32 # Noise threshold for the motion detection.
despeckle_filter EedDl
minimum_motion_frames 3 # Number of images that must contain motion to trigger an event.
event_gap 30 # Gap in seconds of no motion detected that triggers the end of an event.
pre_capture 2 # The number of pre-captured (buffered) pictures from before motion.
post_capture 0 # Number of frames to capture after motion is no longer detected.
on_event_start echo 1 | nc localhost 62877
on_event_end find /service/motion/capture -type f -mtime +12 -depth 1 -delete
picture_output first
picture_filename capture/%Y%m%d%H%M%S-%q
#timelapse_mode weekly
#timelapse_interval 1800
#timelapse_filename timelapse/%Y%m%d
movie_output off
#movie_max_time 60 # Maximum length of movie in seconds.
#movie_quality 0 # The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best)
#movie_codec mkv
#movie_filename motion/%t-%v-%Y%m%d%H%M%S