wok-current view motion/stuff/motion-4.4.0.conf @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | |
children |
line source
1 # This distribution example file is renamed to /etc/motion/motion.conf
2 # and modified for SliTaz.
3 #
4 # This config file was generated by motion 4.4.0
5 # Documentation: /usr/share/doc/motion/motion_guide.html
6 #
7 # This file contains only the basic configuration options to get a
8 # system working. There are many more options available. Please
9 # consult the documentation for the complete list of all options.
10 #
12 ############################################################
13 # System control configuration parameters
14 ############################################################
16 # Start in daemon (background) mode and release terminal.
17 daemon on
19 # Start in Setup-Mode, daemon disabled.
20 setup_mode off
22 # File to store the process ID.
23 pid_file /run/motion/motion.pid
25 # File to write logs messages into. If not defined stderr and syslog is used.
26 ; log_file value
28 # Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL).
29 log_level 6
31 # Target directory for pictures, snapshots and movies
32 target_dir /var/lib/motion/cam1
34 # Video device (e.g. /dev/video0) to be used for capturing.
35 video_device /dev/video0
37 # Parameters to control video device. See motion_guide.html
38 ; vid_control_params value
40 # The full URL of the network camera stream.
41 ; netcam_url value
43 # Name of mmal camera (e.g. vc.ril.camera for pi camera).
44 ; mmalcam_name value
46 # Camera control parameters (see raspivid/raspistill tool documentation)
47 ; mmalcam_control_params value
49 ############################################################
50 # Image Processing configuration parameters
51 ############################################################
53 # Image width in pixels.
54 # width 640 replaced by
55 width 320
57 # Image height in pixels.
58 # height 480 replaced by
59 height 240
61 # Maximum number of frames to be captured per second.
62 # framerate 15 replaced by
63 framerate 2
65 # Text to be overlayed in the lower left corner of images
66 ; text_left CAMERA1
68 # Text to be overlayed in the lower right corner of images.
69 text_right %Y-%m-%d\n%T-%q
71 ############################################################
72 # Motion detection configuration parameters
73 ############################################################
75 # Always save pictures and movies even if there was no motion.
76 emulate_motion off
78 # Threshold for number of changed pixels that triggers motion.
79 threshold 1500
81 # Noise threshold for the motion detection.
82 noise_level 32
84 # Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel.
85 despeckle_filter EedDl
87 # Number of images that must contain motion to trigger an event.
88 minimum_motion_frames 1
90 # Gap in seconds of no motion detected that triggers the end of an event.
91 event_gap 60
93 # The number of pre-captured (buffered) pictures from before motion.
94 # pre_capture 3 replaced by
95 pre_capture 0
97 # Number of frames to capture after motion is no longer detected.
98 post_capture 0
100 ############################################################
101 # Script execution configuration parameters
102 ############################################################
104 # Command to be executed when an event starts.
105 ; on_event_start value
107 # Command to be executed when an event ends.
108 ; on_event_end value
110 # Command to be executed when a movie file is closed.
111 ; on_movie_end value
113 ############################################################
114 # Picture output configuration parameters
115 ############################################################
117 # Output pictures when motion is detected
118 picture_output off
120 # File name(without extension) for pictures relative to target directory
121 picture_filename %Y%m%d%H%M%S-%q
123 ############################################################
124 # Movie output configuration parameters
125 ############################################################
127 # Create movies of motion events.
128 movie_output on
130 # Maximum length of movie in seconds.
131 # movie_max_time 60 replaced by
132 movie_max_time 0
134 # The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best)
135 # movie_quality 45 replaced by
136 movie_quality 75
138 # Container/Codec to used for the movie. See motion_guide.html
139 movie_codec mkv
141 # File name(without extension) for movies relative to target directory
142 movie_filename %t-%v-%Y%m%d%H%M%S
144 ############################################################
145 # Webcontrol configuration parameters
146 ############################################################
148 # Port number used for the webcontrol.
149 webcontrol_port 8080
151 # Restrict webcontrol connections to the localhost.
152 webcontrol_localhost on
154 # Type of configuration options to allow via the webcontrol.
155 webcontrol_parms 0
157 ############################################################
158 # Live stream configuration parameters
159 ############################################################
161 # The port number for the live stream.
162 stream_port 8081
164 # Restrict stream connections to the localhost.
165 stream_localhost on
167 ##############################################################
168 # Camera config files - One for each camera.
169 ##############################################################
170 ; camera /etc/motion/camera1.conf
171 ; camera /etc/motion/camera2.conf
172 ; camera /etc/motion/camera3.conf
173 ; camera /etc/motion/camera4.conf
175 ##############################################################
176 # Directory to read '.conf' files for cameras.
177 ##############################################################
178 ; camera_dir /etc/motion/conf.d