
daemon (on/off) - whether motion will start in daemon mode (in background). You can also specify the -n option at startup, then the program will run as usual.videodevice /dev/video0 - we specify our video device. I have this / dev / video0.rotate (0,90,180,270) - rotate the image by a specified number of degrees (if the camera is attached at an angle)width 320
height 240framerate (2-100) - the number of frames captured per second. Naturally, the greater the value, the greater the consumption of computer resources. Choose the optimal value.minimum_frame_time 0 - after the previous option - allows you to set the minimum time between capturing two frames. You can, for example, capture a frame every 5 seconds.netcam_url value - use if access to your camera is via a network. instead of value, specify the path to the video stream. By default, this option is not used.auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0threshold 1500 - can be described as sensitivity to determine movement. The smaller the value, the more sensitive the detector.noise_level 32 - noise level. Allows you to ignore the noise created by the camera. Set the optimum value for your camera.area_detect (1-9) Allows you to area_detect (1-9) only a specific area. 1 - upper left corner, 2 - upper middle part, ... 5 - center, ... 9 - lower right corner.mask_file value - Specify the path to the pgm file with a motion mask that does not need to be fixed. Allows you to ignore the rocking branches of trees, etc. For more information about the pgm files here netpbm.sourceforge.net/doc/pgm.htmlsnapshot_interval N - Creates snapshots every N seconds.locate (on/off) - draw a frame around a moving object.target_dir /usr/local/apache2/htdocs/cam - The folder where the images will be saved. I set this value ~ / motionshotssnapshot_filename %v-%Y%m%d%H%M%S-snapshot
jpeg_filename %v-%Y%m%d%H%M%S-%q
movie_filename %v-%Y%m%d%H%M%Son_event_start value
on_event_end value
on_picture_save value
on_motion_detected value
on_area_detected value
on_movie_start value
on_movie_end value
on_camera_lost valuemotion [-c ///] . You can also add to the list of daemons of your system (rc-update add motion default for ghetts, for archa - add to DAEMONS = () in /etc/rc.conf, for other distributions I don’t know for sure, but this is not more difficult)[1] File of type 1 saved to: /home/vladimir/motionshots/01-20110727140020-00.jpg

Source: https://habr.com/ru/post/125216/
All Articles