rev |
line source |
pankso@13652
|
1 # Rename this distribution example file to motion.conf
|
pankso@13652
|
2 #
|
pankso@13652
|
3 # This config file was generated by motion 3.2.12
|
pankso@13652
|
4
|
pankso@13652
|
5
|
pankso@13652
|
6 ############################################################
|
pankso@13652
|
7 # Daemon
|
pankso@13652
|
8 ############################################################
|
pankso@13652
|
9
|
pankso@13652
|
10 # Start in daemon (background) mode and release terminal (default: off)
|
pankso@13652
|
11 daemon on
|
pankso@13652
|
12
|
pankso@13652
|
13 # File to store the process ID, also called pid file. (default: not defined)
|
pankso@13652
|
14 process_id_file /run/motion/motion.pid
|
pankso@13652
|
15
|
pankso@13652
|
16 ############################################################
|
pankso@13652
|
17 # Basic Setup Mode
|
pankso@13652
|
18 ############################################################
|
pankso@13652
|
19
|
pankso@13652
|
20 # Start in Setup-Mode, daemon disabled. (default: off)
|
pankso@13652
|
21 setup_mode off
|
pankso@13652
|
22
|
pankso@13652
|
23 ###########################################################
|
pankso@13652
|
24 # Capture device options
|
pankso@13652
|
25 ############################################################
|
pankso@13652
|
26
|
pankso@13652
|
27 # Videodevice to be used for capturing (default /dev/video0)
|
pankso@13652
|
28 # for FreeBSD default is /dev/bktr0
|
pankso@13652
|
29 videodevice /dev/video0
|
pankso@13652
|
30
|
pankso@13652
|
31 # v4l2_palette allows to choose preferable palette to be use by motion
|
pankso@13652
|
32 # to capture from those supported by your videodevice. (default: 8)
|
pankso@13652
|
33 # E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and
|
pankso@13652
|
34 # V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.
|
pankso@13652
|
35 # Setting v4l2_palette to 1 forces motion to use V4L2_PIX_FMT_SBGGR8
|
pankso@13652
|
36 # instead.
|
pankso@13652
|
37 #
|
pankso@13652
|
38 # Values :
|
pankso@13652
|
39 # V4L2_PIX_FMT_SN9C10X : 0 'S910'
|
pankso@13652
|
40 # V4L2_PIX_FMT_SBGGR8 : 1 'BA81'
|
pankso@13652
|
41 # V4L2_PIX_FMT_MJPEG : 2 'MJPEG'
|
pankso@13652
|
42 # V4L2_PIX_FMT_JPEG : 3 'JPEG'
|
pankso@13652
|
43 # V4L2_PIX_FMT_RGB24 : 4 'RGB3'
|
pankso@13652
|
44 # V4L2_PIX_FMT_UYVY : 5 'UYVY'
|
pankso@13652
|
45 # V4L2_PIX_FMT_YUYV : 6 'YUYV'
|
pankso@13652
|
46 # V4L2_PIX_FMT_YUV422P : 7 '422P'
|
pankso@13652
|
47 # V4L2_PIX_FMT_YUV420 : 8 'YU12'
|
pankso@13652
|
48 v4l2_palette 8
|
pankso@13652
|
49
|
pankso@13652
|
50 # Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
|
pankso@13652
|
51 # This is ONLY used for FreeBSD. Leave it commented out for Linux
|
pankso@13652
|
52 ; tunerdevice /dev/tuner0
|
pankso@13652
|
53
|
pankso@13652
|
54 # The video input to be used (default: 8)
|
pankso@13652
|
55 # Should normally be set to 0 or 1 for video/TV cards, and 8 for USB cameras
|
pankso@13652
|
56 input 8
|
pankso@13652
|
57
|
pankso@13652
|
58 # The video norm to use (only for video capture and TV tuner cards)
|
pankso@13652
|
59 # Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
|
pankso@13652
|
60 norm 0
|
pankso@13652
|
61
|
pankso@13652
|
62 # The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
|
pankso@13652
|
63 frequency 0
|
pankso@13652
|
64
|
pankso@13652
|
65 # Rotate image this number of degrees. The rotation affects all saved images as
|
pankso@13652
|
66 # well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
|
pankso@13652
|
67 rotate 0
|
pankso@13652
|
68
|
pankso@13652
|
69 # Image width (pixels). Valid range: Camera dependent, default: 352
|
pankso@13652
|
70 width 320
|
pankso@13652
|
71
|
pankso@13652
|
72 # Image height (pixels). Valid range: Camera dependent, default: 288
|
pankso@13652
|
73 height 240
|
pankso@13652
|
74
|
pankso@13652
|
75 # Maximum number of frames to be captured per second.
|
pankso@13652
|
76 # Valid range: 2-100. Default: 100 (almost no limit).
|
pankso@13652
|
77 framerate 2
|
pankso@13652
|
78
|
pankso@13652
|
79 # Minimum time in seconds between capturing picture frames from the camera.
|
pankso@13652
|
80 # Default: 0 = disabled - the capture rate is given by the camera framerate.
|
pankso@13652
|
81 # This option is used when you want to capture images at a rate lower than 2 per second.
|
pankso@13652
|
82 minimum_frame_time 0
|
pankso@13652
|
83
|
pankso@13652
|
84 # URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)
|
pankso@13652
|
85 # Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
|
pankso@13652
|
86 ; netcam_url value
|
pankso@13652
|
87
|
pankso@13652
|
88 # Username and password for network camera (only if required). Default: not defined
|
pankso@13652
|
89 # Syntax is user:password
|
pankso@13652
|
90 ; netcam_userpass value
|
pankso@13652
|
91
|
pankso@13652
|
92 # The setting for keep-alive of network socket, should improve performance on compatible net cameras.
|
pankso@13652
|
93 # 1.0: The historical implementation using HTTP/1.0, closing the socket after each http request.
|
pankso@13652
|
94 # keep_alive: Use HTTP/1.0 requests with keep alive header to reuse the same connection.
|
pankso@13652
|
95 # 1.1: Use HTTP/1.1 requests that support keep alive as default.
|
pankso@13652
|
96 # Default: 1.0
|
pankso@13652
|
97 ; netcam_http 1.0
|
pankso@13652
|
98
|
pankso@13652
|
99 # URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
|
pankso@13652
|
100 # If a port number other than 80 is needed, use "http://myproxy:1234".
|
pankso@13652
|
101 # Default: not defined
|
pankso@13652
|
102 ; netcam_proxy value
|
pankso@13652
|
103
|
pankso@13652
|
104 # Set less strict jpeg checks for network cameras with a poor/buggy firmware.
|
pankso@13652
|
105 # Default: off
|
pankso@13652
|
106 netcam_tolerant_check off
|
pankso@13652
|
107
|
pankso@13652
|
108 # Let motion regulate the brightness of a video device (default: off).
|
pankso@13652
|
109 # The auto_brightness feature uses the brightness option as its target value.
|
pankso@13652
|
110 # If brightness is zero auto_brightness will adjust to average brightness value 128.
|
pankso@13652
|
111 # Only recommended for cameras without auto brightness
|
pankso@13652
|
112 auto_brightness off
|
pankso@13652
|
113
|
pankso@13652
|
114 # Set the initial brightness of a video device.
|
pankso@13652
|
115 # If auto_brightness is enabled, this value defines the average brightness level
|
pankso@13652
|
116 # which Motion will try and adjust to.
|
pankso@13652
|
117 # Valid range 0-255, default 0 = disabled
|
pankso@13652
|
118 brightness 0
|
pankso@13652
|
119
|
pankso@13652
|
120 # Set the contrast of a video device.
|
pankso@13652
|
121 # Valid range 0-255, default 0 = disabled
|
pankso@13652
|
122 contrast 0
|
pankso@13652
|
123
|
pankso@13652
|
124 # Set the saturation of a video device.
|
pankso@13652
|
125 # Valid range 0-255, default 0 = disabled
|
pankso@13652
|
126 saturation 0
|
pankso@13652
|
127
|
pankso@13652
|
128 # Set the hue of a video device (NTSC feature).
|
pankso@13652
|
129 # Valid range 0-255, default 0 = disabled
|
pankso@13652
|
130 hue 0
|
pankso@13652
|
131
|
pankso@13652
|
132
|
pankso@13652
|
133 ############################################################
|
pankso@13652
|
134 # Round Robin (multiple inputs on same video device name)
|
pankso@13652
|
135 ############################################################
|
pankso@13652
|
136
|
pankso@13652
|
137 # Number of frames to capture in each roundrobin step (default: 1)
|
pankso@13652
|
138 roundrobin_frames 1
|
pankso@13652
|
139
|
pankso@13652
|
140 # Number of frames to skip before each roundrobin step (default: 1)
|
pankso@13652
|
141 roundrobin_skip 1
|
pankso@13652
|
142
|
pankso@13652
|
143 # Try to filter out noise generated by roundrobin (default: off)
|
pankso@13652
|
144 switchfilter off
|
pankso@13652
|
145
|
pankso@13652
|
146
|
pankso@13652
|
147 ############################################################
|
pankso@13652
|
148 # Motion Detection Settings:
|
pankso@13652
|
149 ############################################################
|
pankso@13652
|
150
|
pankso@13652
|
151 # Threshold for number of changed pixels in an image that
|
pankso@13652
|
152 # triggers motion detection (default: 1500)
|
pankso@13652
|
153 threshold 1500
|
pankso@13652
|
154
|
pankso@13652
|
155 # Automatically tune the threshold down if possible (default: off)
|
pankso@13652
|
156 threshold_tune off
|
pankso@13652
|
157
|
pankso@13652
|
158 # Noise threshold for the motion detection (default: 32)
|
pankso@13652
|
159 noise_level 32
|
pankso@13652
|
160
|
pankso@13652
|
161 # Automatically tune the noise threshold (default: on)
|
pankso@13652
|
162 noise_tune on
|
pankso@13652
|
163
|
pankso@13652
|
164 # Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)
|
pankso@13652
|
165 # Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.
|
pankso@13652
|
166 # (l)abeling must only be used once and the 'l' must be the last letter.
|
pankso@13652
|
167 # Comment out to disable
|
pankso@13652
|
168 despeckle EedDl
|
pankso@13652
|
169
|
pankso@13652
|
170 # Detect motion in predefined areas (1 - 9). Areas are numbered like that: 1 2 3
|
pankso@13652
|
171 # A script (on_area_detected) is started immediately when motion is 4 5 6
|
pankso@13652
|
172 # detected in one of the given areas, but only once during an event. 7 8 9
|
pankso@13652
|
173 # One or more areas can be specified with this option. (Default: not defined)
|
pankso@13652
|
174 ; area_detect value
|
pankso@13652
|
175
|
pankso@13652
|
176 # PGM file to use as a sensitivity mask.
|
pankso@13652
|
177 # Full path name to. (Default: not defined)
|
pankso@13652
|
178 ; mask_file value
|
pankso@13652
|
179
|
pankso@13652
|
180 # Dynamically create a mask file during operation (default: 0)
|
pankso@13652
|
181 # Adjust speed of mask changes from 0 (off) to 10 (fast)
|
pankso@13652
|
182 smart_mask_speed 0
|
pankso@13652
|
183
|
pankso@13652
|
184 # Ignore sudden massive light intensity changes given as a percentage of the picture
|
pankso@13652
|
185 # area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled
|
pankso@13652
|
186 lightswitch 0
|
pankso@13652
|
187
|
pankso@13652
|
188 # Picture frames must contain motion at least the specified number of frames
|
pankso@13652
|
189 # in a row before they are detected as true motion. At the default of 1, all
|
pankso@13652
|
190 # motion is detected. Valid range: 1 to thousands, recommended 1-5
|
pankso@13652
|
191 minimum_motion_frames 1
|
pankso@13652
|
192
|
pankso@13652
|
193 # Specifies the number of pre-captured (buffered) pictures from before motion
|
pankso@13652
|
194 # was detected that will be output at motion detection.
|
pankso@13652
|
195 # Recommended range: 0 to 5 (default: 0)
|
pankso@13652
|
196 # Do not use large values! Large values will cause Motion to skip video frames and
|
pankso@13652
|
197 # cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead.
|
pankso@13652
|
198 pre_capture 0
|
pankso@13652
|
199
|
pankso@13652
|
200 # Number of frames to capture after motion is no longer detected (default: 0)
|
pankso@13652
|
201 post_capture 0
|
pankso@13652
|
202
|
pankso@13652
|
203 # Gap is the seconds of no motion detection that triggers the end of an event
|
pankso@13652
|
204 # An event is defined as a series of motion images taken within a short timeframe.
|
pankso@13652
|
205 # Recommended value is 60 seconds (Default). The value 0 is allowed and disables
|
pankso@13652
|
206 # events causing all Motion to be written to one single mpeg file and no pre_capture.
|
pankso@13652
|
207 gap 60
|
pankso@13652
|
208
|
pankso@13652
|
209 # Maximum length in seconds of an mpeg movie
|
pankso@13652
|
210 # When value is exceeded a new mpeg file is created. (Default: 0 = infinite)
|
pankso@13652
|
211 max_mpeg_time 0
|
pankso@13652
|
212
|
pankso@13652
|
213 # Always save images even if there was no motion (default: off)
|
pankso@13652
|
214 output_all off
|
pankso@13652
|
215
|
pankso@13652
|
216
|
pankso@13652
|
217 ############################################################
|
pankso@13652
|
218 # Image File Output
|
pankso@13652
|
219 ############################################################
|
pankso@13652
|
220
|
pankso@13652
|
221 # Output 'normal' pictures when motion is detected (default: on)
|
pankso@13652
|
222 # Valid values: on, off, first, best, center
|
pankso@13652
|
223 # When set to 'first', only the first picture of an event is saved.
|
pankso@13652
|
224 # Picture with most motion of an event is saved when set to 'best'.
|
pankso@13652
|
225 # Picture with motion nearest center of picture is saved when set to 'center'.
|
pankso@13652
|
226 # Can be used as preview shot for the corresponding movie.
|
pankso@13652
|
227 output_normal on
|
pankso@13652
|
228
|
pankso@13652
|
229 # Output pictures with only the pixels moving object (ghost images) (default: off)
|
pankso@13652
|
230 output_motion off
|
pankso@13652
|
231
|
pankso@13652
|
232 # The quality (in percent) to be used by the jpeg compression (default: 75)
|
pankso@13652
|
233 quality 75
|
pankso@13652
|
234
|
pankso@13652
|
235 # Output ppm images instead of jpeg (default: off)
|
pankso@13652
|
236 ppm off
|
pankso@13652
|
237
|
pankso@13652
|
238
|
pankso@13652
|
239 ############################################################
|
pankso@13652
|
240 # FFMPEG related options
|
pankso@13652
|
241 # Film (mpeg) file output, and deinterlacing of the video input
|
pankso@13652
|
242 # The options movie_filename and timelapse_filename are also used
|
pankso@13652
|
243 # by the ffmpeg feature
|
pankso@13652
|
244 ############################################################
|
pankso@13652
|
245
|
pankso@13652
|
246 # Use ffmpeg to encode mpeg movies in realtime (default: off)
|
pankso@13652
|
247 #ffmpeg_cap_new on
|
pankso@13652
|
248
|
pankso@13652
|
249 # Use ffmpeg to make movies with only the pixels moving
|
pankso@13652
|
250 # object (ghost images) (default: off)
|
pankso@13652
|
251 #ffmpeg_cap_motion off
|
pankso@13652
|
252
|
pankso@13652
|
253 # Use ffmpeg to encode a timelapse movie
|
pankso@13652
|
254 # Default value 0 = off - else save frame every Nth second
|
pankso@13652
|
255 #ffmpeg_timelapse 0
|
pankso@13652
|
256
|
pankso@13652
|
257 # The file rollover mode of the timelapse video
|
pankso@13652
|
258 # Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual
|
pankso@13652
|
259 #ffmpeg_timelapse_mode daily
|
pankso@13652
|
260
|
pankso@13652
|
261 # Bitrate to be used by the ffmpeg encoder (default: 400000)
|
pankso@13652
|
262 # This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)
|
pankso@13652
|
263 #ffmpeg_bps 500000
|
pankso@13652
|
264
|
pankso@13652
|
265 # Enables and defines variable bitrate for the ffmpeg encoder.
|
pankso@13652
|
266 # ffmpeg_bps is ignored if variable bitrate is enabled.
|
pankso@13652
|
267 # Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,
|
pankso@13652
|
268 # or the range 2 - 31 where 2 means best quality and 31 is worst.
|
pankso@13652
|
269 #ffmpeg_variable_bitrate 0
|
pankso@13652
|
270
|
pankso@13652
|
271 # Codec to used by ffmpeg for the video compression.
|
pankso@13652
|
272 # Timelapse mpegs are always made in mpeg1 format independent from this option.
|
pankso@13652
|
273 # Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.
|
pankso@13652
|
274 # mpeg1 - gives you files with extension .mpg
|
pankso@13652
|
275 # mpeg4 or msmpeg4 - gives you files with extension .avi
|
pankso@13652
|
276 # msmpeg4 is recommended for use with Windows Media Player because
|
pankso@13652
|
277 # it requires no installation of codec on the Windows client.
|
pankso@13652
|
278 # swf - gives you a flash film with extension .swf
|
pankso@13652
|
279 # flv - gives you a flash video with extension .flv
|
pankso@13652
|
280 # ffv1 - FF video codec 1 for Lossless Encoding ( experimental )
|
pankso@13652
|
281 # mov - QuickTime ( testing )
|
pankso@13652
|
282 #ffmpeg_video_codec mpeg4
|
pankso@13652
|
283
|
pankso@13652
|
284 # Use ffmpeg to deinterlace video. Necessary if you use an analog camera
|
pankso@13652
|
285 # and see horizontal combing on moving objects in video or pictures.
|
pankso@13652
|
286 # (default: off)
|
pankso@13652
|
287 #ffmpeg_deinterlace off
|
pankso@13652
|
288
|
pankso@13652
|
289
|
pankso@13652
|
290 ############################################################
|
pankso@13652
|
291 # Snapshots (Traditional Periodic Webcam File Output)
|
pankso@13652
|
292 ############################################################
|
pankso@13652
|
293
|
pankso@13652
|
294 # Make automated snapshot every N seconds (default: 0 = disabled)
|
pankso@13652
|
295 snapshot_interval 0
|
pankso@13652
|
296
|
pankso@13652
|
297
|
pankso@13652
|
298 ############################################################
|
pankso@13652
|
299 # Text Display
|
pankso@13652
|
300 # %Y = year, %m = month, %d = date,
|
pankso@13652
|
301 # %H = hour, %M = minute, %S = second, %T = HH:MM:SS,
|
pankso@13652
|
302 # %v = event, %q = frame number, %t = thread (camera) number,
|
pankso@13652
|
303 # %D = changed pixels, %N = noise level, \n = new line,
|
pankso@13652
|
304 # %i and %J = width and height of motion area,
|
pankso@13652
|
305 # %K and %L = X and Y coordinates of motion center
|
pankso@13652
|
306 # %C = value defined by text_event - do not use with text_event!
|
pankso@13652
|
307 # You can put quotation marks around the text to allow
|
pankso@13652
|
308 # leading spaces
|
pankso@13652
|
309 ############################################################
|
pankso@13652
|
310
|
pankso@13652
|
311 # Locate and draw a box around the moving object.
|
pankso@13652
|
312 # Valid values: on, off and preview (default: off)
|
pankso@13652
|
313 # Set to 'preview' will only draw a box in preview_shot pictures.
|
pankso@13652
|
314 locate off
|
pankso@13652
|
315
|
pankso@13652
|
316 # Draws the timestamp using same options as C function strftime(3)
|
pankso@13652
|
317 # Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock
|
pankso@13652
|
318 # Text is placed in lower right corner
|
pankso@13652
|
319 text_right %Y-%m-%d\n%T-%q
|
pankso@13652
|
320
|
pankso@13652
|
321 # Draw a user defined text on the images using same options as C function strftime(3)
|
pankso@13652
|
322 # Default: Not defined = no text
|
pankso@13652
|
323 # Text is placed in lower left corner
|
pankso@13652
|
324 ; text_left CAMERA %t
|
pankso@13652
|
325
|
pankso@13652
|
326 # Draw the number of changed pixed on the images (default: off)
|
pankso@13652
|
327 # Will normally be set to off except when you setup and adjust the motion settings
|
pankso@13652
|
328 # Text is placed in upper right corner
|
pankso@13652
|
329 text_changes off
|
pankso@13652
|
330
|
pankso@13652
|
331 # This option defines the value of the special event conversion specifier %C
|
pankso@13652
|
332 # You can use any conversion specifier in this option except %C. Date and time
|
pankso@13652
|
333 # values are from the timestamp of the first image in the current event.
|
pankso@13652
|
334 # Default: %Y%m%d%H%M%S
|
pankso@13652
|
335 # The idea is that %C can be used filenames and text_left/right for creating
|
pankso@13652
|
336 # a unique identifier for each event.
|
pankso@13652
|
337 text_event %Y%m%d%H%M%S
|
pankso@13652
|
338
|
pankso@13652
|
339 # Draw characters at twice normal size on images. (default: off)
|
pankso@13652
|
340 text_double off
|
pankso@13652
|
341
|
pankso@13652
|
342
|
pankso@13652
|
343 ############################################################
|
pankso@13652
|
344 # Target Directories and filenames For Images And Films
|
pankso@13652
|
345 # For the options snapshot_, jpeg_, mpeg_ and timelapse_filename
|
pankso@13652
|
346 # you can use conversion specifiers
|
pankso@13652
|
347 # %Y = year, %m = month, %d = date,
|
pankso@13652
|
348 # %H = hour, %M = minute, %S = second,
|
pankso@13652
|
349 # %v = event, %q = frame number, %t = thread (camera) number,
|
pankso@13652
|
350 # %D = changed pixels, %N = noise level,
|
pankso@13652
|
351 # %i and %J = width and height of motion area,
|
pankso@13652
|
352 # %K and %L = X and Y coordinates of motion center
|
pankso@13652
|
353 # %C = value defined by text_event
|
pankso@13652
|
354 # Quotation marks round string are allowed.
|
pankso@13652
|
355 ############################################################
|
pankso@13652
|
356
|
pankso@13652
|
357 # Target base directory for pictures and films
|
pankso@13652
|
358 # Recommended to use absolute path. (Default: current working directory)
|
pankso@13652
|
359 target_dir /var/lib/motion/cam1
|
pankso@13652
|
360
|
pankso@13652
|
361 # File path for snapshots (jpeg or ppm) relative to target_dir
|
pankso@13652
|
362 # Default: %v-%Y%m%d%H%M%S-snapshot
|
pankso@13652
|
363 # Default value is equivalent to legacy oldlayout option
|
pankso@13652
|
364 # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot
|
pankso@13652
|
365 # File extension .jpg or .ppm is automatically added so do not include this.
|
pankso@13652
|
366 # Note: A symbolic link called lastsnap.jpg created in the target_dir will always
|
pankso@13652
|
367 # point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'
|
pankso@13652
|
368 snapshot_filename %v-%Y%m%d%H%M%S-snapshot
|
pankso@13652
|
369
|
pankso@13652
|
370 # File path for motion triggered images (jpeg or ppm) relative to target_dir
|
pankso@13652
|
371 # Default: %v-%Y%m%d%H%M%S-%q
|
pankso@13652
|
372 # Default value is equivalent to legacy oldlayout option
|
pankso@13652
|
373 # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
|
pankso@13652
|
374 # File extension .jpg or .ppm is automatically added so do not include this
|
pankso@13652
|
375 # Set to 'preview' together with best-preview feature enables special naming
|
pankso@13652
|
376 # convention for preview shots. See motion guide for details
|
pankso@13652
|
377 jpeg_filename %v-%Y%m%d%H%M%S-%q
|
pankso@13652
|
378
|
pankso@13652
|
379 # File path for motion triggered ffmpeg films (mpeg) relative to target_dir
|
pankso@13652
|
380 # Default: %v-%Y%m%d%H%M%S
|
pankso@13652
|
381 # Default value is equivalent to legacy oldlayout option
|
pankso@13652
|
382 # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S
|
pankso@13652
|
383 # File extension .mpg or .avi is automatically added so do not include this
|
pankso@13652
|
384 # This option was previously called ffmpeg_filename
|
pankso@13652
|
385 #movie_filename %v-%Y%m%d%H%M%S
|
pankso@13652
|
386
|
pankso@13652
|
387 # File path for timelapse mpegs relative to target_dir
|
pankso@13652
|
388 # Default: %Y%m%d-timelapse
|
pankso@13652
|
389 # Default value is near equivalent to legacy oldlayout option
|
pankso@13652
|
390 # For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse
|
pankso@13652
|
391 # File extension .mpg is automatically added so do not include this
|
pankso@13652
|
392 #timelapse_filename %Y%m%d-timelapse
|
pankso@13652
|
393
|
pankso@13652
|
394
|
pankso@13652
|
395 ############################################################
|
pankso@13652
|
396 # Live Webcam Server
|
pankso@13652
|
397 ############################################################
|
pankso@13652
|
398
|
pankso@13652
|
399 # The mini-http server listens to this port for requests (default: 0 = disabled)
|
pankso@13652
|
400 webcam_port 8081
|
pankso@13652
|
401
|
pankso@13652
|
402 # Quality of the jpeg (in percent) images produced (default: 50)
|
pankso@13652
|
403 webcam_quality 50
|
pankso@13652
|
404
|
pankso@13652
|
405 # Output frames at 1 fps when no motion is detected and increase to the
|
pankso@13652
|
406 # rate given by webcam_maxrate when motion is detected (default: off)
|
pankso@13652
|
407 webcam_motion off
|
pankso@13652
|
408
|
pankso@13652
|
409 # Maximum framerate for webcam streams (default: 1)
|
pankso@13652
|
410 webcam_maxrate 1
|
pankso@13652
|
411
|
pankso@13652
|
412 # Restrict webcam connections to localhost only (default: on)
|
pankso@13652
|
413 webcam_localhost on
|
pankso@13652
|
414
|
pankso@13652
|
415 # Limits the number of images per connection (default: 0 = unlimited)
|
pankso@13652
|
416 # Number can be defined by multiplying actual webcam rate by desired number of seconds
|
pankso@13652
|
417 # Actual webcam rate is the smallest of the numbers framerate and webcam_maxrate
|
pankso@13652
|
418 webcam_limit 0
|
pankso@13652
|
419
|
pankso@13652
|
420
|
pankso@13652
|
421 ############################################################
|
pankso@13652
|
422 # HTTP Based Control
|
pankso@13652
|
423 ############################################################
|
pankso@13652
|
424
|
pankso@13652
|
425 # TCP/IP port for the http server to listen on (default: 0 = disabled)
|
pankso@13652
|
426 control_port 8080
|
pankso@13652
|
427
|
pankso@13652
|
428 # Restrict control connections to localhost only (default: on)
|
pankso@13652
|
429 control_localhost on
|
pankso@13652
|
430
|
pankso@13652
|
431 # Output for http server, select off to choose raw text plain (default: on)
|
pankso@13652
|
432 control_html_output on
|
pankso@13652
|
433
|
pankso@13652
|
434 # Authentication for the http based control. Syntax username:password
|
pankso@13652
|
435 # Default: not defined (Disabled)
|
pankso@13652
|
436 ; control_authentication username:password
|
pankso@13652
|
437
|
pankso@13652
|
438
|
pankso@13652
|
439 ############################################################
|
pankso@13652
|
440 # Tracking (Pan/Tilt)
|
pankso@13652
|
441 ############################################################
|
pankso@13652
|
442
|
pankso@13652
|
443 # Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic, 5=uvcvideo)
|
pankso@13652
|
444 # The generic type enables the definition of motion center and motion size to
|
pankso@13652
|
445 # be used with the conversion specifiers for options like on_motion_detected
|
pankso@13652
|
446 track_type 0
|
pankso@13652
|
447
|
pankso@13652
|
448 # Enable auto tracking (default: off)
|
pankso@13652
|
449 track_auto off
|
pankso@13652
|
450
|
pankso@13652
|
451 # Serial port of motor (default: none)
|
pankso@13652
|
452 ; track_port value
|
pankso@13652
|
453
|
pankso@13652
|
454 # Motor number for x-axis (default: 0)
|
pankso@13652
|
455 track_motorx 0
|
pankso@13652
|
456
|
pankso@13652
|
457 # Motor number for y-axis (default: 0)
|
pankso@13652
|
458 track_motory 0
|
pankso@13652
|
459
|
pankso@13652
|
460 # Maximum value on x-axis (default: 0)
|
pankso@13652
|
461 track_maxx 0
|
pankso@13652
|
462
|
pankso@13652
|
463 # Maximum value on y-axis (default: 0)
|
pankso@13652
|
464 track_maxy 0
|
pankso@13652
|
465
|
pankso@13652
|
466 # ID of an iomojo camera if used (default: 0)
|
pankso@13652
|
467 track_iomojo_id 0
|
pankso@13652
|
468
|
pankso@13652
|
469 # Angle in degrees the camera moves per step on the X-axis
|
pankso@13652
|
470 # with auto-track (default: 10)
|
pankso@13652
|
471 # Currently only used with pwc type cameras
|
pankso@13652
|
472 track_step_angle_x 10
|
pankso@13652
|
473
|
pankso@13652
|
474 # Angle in degrees the camera moves per step on the Y-axis
|
pankso@13652
|
475 # with auto-track (default: 10)
|
pankso@13652
|
476 # Currently only used with pwc type cameras
|
pankso@13652
|
477 track_step_angle_y 10
|
pankso@13652
|
478
|
pankso@13652
|
479 # Delay to wait for after tracking movement as number
|
pankso@13652
|
480 # of picture frames (default: 10)
|
pankso@13652
|
481 track_move_wait 10
|
pankso@13652
|
482
|
pankso@13652
|
483 # Speed to set the motor to (stepper motor option) (default: 255)
|
pankso@13652
|
484 track_speed 255
|
pankso@13652
|
485
|
pankso@13652
|
486 # Number of steps to make (stepper motor option) (default: 40)
|
pankso@13652
|
487 track_stepsize 40
|
pankso@13652
|
488
|
pankso@13652
|
489
|
pankso@13652
|
490 ############################################################
|
pankso@13652
|
491 # External Commands, Warnings and Logging:
|
pankso@13652
|
492 # You can use conversion specifiers for the on_xxxx commands
|
pankso@13652
|
493 # %Y = year, %m = month, %d = date,
|
pankso@13652
|
494 # %H = hour, %M = minute, %S = second,
|
pankso@13652
|
495 # %v = event, %q = frame number, %t = thread (camera) number,
|
pankso@13652
|
496 # %D = changed pixels, %N = noise level,
|
pankso@13652
|
497 # %i and %J = width and height of motion area,
|
pankso@13652
|
498 # %K and %L = X and Y coordinates of motion center
|
pankso@13652
|
499 # %C = value defined by text_event
|
pankso@13652
|
500 # %f = filename with full path
|
pankso@13652
|
501 # %n = number indicating filetype
|
pankso@13652
|
502 # Both %f and %n are only defined for on_picture_save,
|
pankso@13652
|
503 # on_movie_start and on_movie_end
|
pankso@13652
|
504 # Quotation marks round string are allowed.
|
pankso@13652
|
505 ############################################################
|
pankso@13652
|
506
|
pankso@13652
|
507 # Do not sound beeps when detecting motion (default: on)
|
pankso@13652
|
508 # Note: Motion never beeps when running in daemon mode.
|
pankso@13652
|
509 quiet on
|
pankso@13652
|
510
|
pankso@13652
|
511 # Command to be executed when an event starts. (default: none)
|
pankso@13652
|
512 # An event starts at first motion detected after a period of no motion defined by gap
|
pankso@13652
|
513 ; on_event_start value
|
pankso@13652
|
514
|
pankso@13652
|
515 # Command to be executed when an event ends after a period of no motion
|
pankso@13652
|
516 # (default: none). The period of no motion is defined by option gap.
|
pankso@13652
|
517 ; on_event_end value
|
pankso@13652
|
518
|
pankso@13652
|
519 # Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
|
pankso@13652
|
520 # To give the filename as an argument to a command append it with %f
|
pankso@13652
|
521 ; on_picture_save value
|
pankso@13652
|
522
|
pankso@13652
|
523 # Command to be executed when a motion frame is detected (default: none)
|
pankso@13652
|
524 ; on_motion_detected value
|
pankso@13652
|
525
|
pankso@13652
|
526 # Command to be executed when motion in a predefined area is detected
|
pankso@13652
|
527 # Check option 'area_detect'. (default: none)
|
pankso@13652
|
528 ; on_area_detected value
|
pankso@13652
|
529
|
pankso@13652
|
530 # Command to be executed when a movie file (.mpg|.avi) is created. (default: none)
|
pankso@13652
|
531 # To give the filename as an argument to a command append it with %f
|
pankso@13652
|
532 ; on_movie_start value
|
pankso@13652
|
533
|
pankso@13652
|
534 # Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
|
pankso@13652
|
535 # To give the filename as an argument to a command append it with %f
|
pankso@13652
|
536 ; on_movie_end value
|
pankso@13652
|
537
|
pankso@13652
|
538 # Command to be executed when a camera can't be opened or if it is lost
|
pankso@13652
|
539 # NOTE: There is situations when motion doesn't detect a lost camera!
|
pankso@13652
|
540 # It depends on the driver, some drivers don't detect a lost camera at all
|
pankso@13652
|
541 # Some hang the motion thread. Some even hang the PC! (default: none)
|
pankso@13652
|
542 ; on_camera_lost value
|
pankso@13652
|
543
|
pankso@13652
|
544 ############################################################
|
pankso@13652
|
545 # Common Options For MySQL and PostgreSQL database features.
|
pankso@13652
|
546 # Options require the MySQL/PostgreSQL options to be active also.
|
pankso@13652
|
547 ############################################################
|
pankso@13652
|
548
|
pankso@13652
|
549 # Log to the database when creating motion triggered image file (default: on)
|
pankso@13652
|
550 #sql_log_image on
|
pankso@13652
|
551
|
pankso@13652
|
552 # Log to the database when creating a snapshot image file (default: on)
|
pankso@13652
|
553 #sql_log_snapshot on
|
pankso@13652
|
554
|
pankso@13652
|
555 # Log to the database when creating motion triggered mpeg file (default: off)
|
pankso@13652
|
556 #sql_log_mpeg off
|
pankso@13652
|
557
|
pankso@13652
|
558 # Log to the database when creating timelapse mpeg file (default: off)
|
pankso@13652
|
559 #sql_log_timelapse off
|
pankso@13652
|
560
|
pankso@13652
|
561 # SQL query string that is sent to the database
|
pankso@13652
|
562 # Use same conversion specifiers has for text features
|
pankso@13652
|
563 # Additional special conversion specifiers are
|
pankso@13652
|
564 # %n = the number representing the file_type
|
pankso@13652
|
565 # %f = filename with full path
|
pankso@13652
|
566 # Default value:
|
pankso@13652
|
567 # insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
|
pankso@13652
|
568 #sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
|
pankso@13652
|
569
|
pankso@13652
|
570
|
pankso@13652
|
571 ############################################################
|
pankso@13652
|
572 # Database Options For MySQL
|
pankso@13652
|
573 ############################################################
|
pankso@13652
|
574
|
pankso@13652
|
575 # Mysql database to log to (default: not defined)
|
pankso@13652
|
576 ; mysql_db value
|
pankso@13652
|
577
|
pankso@13652
|
578 # The host on which the database is located (default: localhost)
|
pankso@13652
|
579 ; mysql_host value
|
pankso@13652
|
580
|
pankso@13652
|
581 # User account name for MySQL database (default: not defined)
|
pankso@13652
|
582 ; mysql_user value
|
pankso@13652
|
583
|
pankso@13652
|
584 # User password for MySQL database (default: not defined)
|
pankso@13652
|
585 ; mysql_password value
|
pankso@13652
|
586
|
pankso@13652
|
587
|
pankso@13652
|
588 ############################################################
|
pankso@13652
|
589 # Database Options For PostgreSQL
|
pankso@13652
|
590 ############################################################
|
pankso@13652
|
591
|
pankso@13652
|
592 # PostgreSQL database to log to (default: not defined)
|
pankso@13652
|
593 ; pgsql_db value
|
pankso@13652
|
594
|
pankso@13652
|
595 # The host on which the database is located (default: localhost)
|
pankso@13652
|
596 ; pgsql_host value
|
pankso@13652
|
597
|
pankso@13652
|
598 # User account name for PostgreSQL database (default: not defined)
|
pankso@13652
|
599 ; pgsql_user value
|
pankso@13652
|
600
|
pankso@13652
|
601 # User password for PostgreSQL database (default: not defined)
|
pankso@13652
|
602 ; pgsql_password value
|
pankso@13652
|
603
|
pankso@13652
|
604 # Port on which the PostgreSQL database is located (default: 5432)
|
pankso@13652
|
605 ; pgsql_port 5432
|
pankso@13652
|
606
|
pankso@13652
|
607
|
pankso@13652
|
608 ############################################################
|
pankso@13652
|
609 # Video Loopback Device (vloopback project)
|
pankso@13652
|
610 ############################################################
|
pankso@13652
|
611
|
pankso@13652
|
612 # Output images to a video4linux loopback device
|
pankso@13652
|
613 # The value '-' means next available (default: not defined)
|
pankso@13652
|
614 ; video_pipe value
|
pankso@13652
|
615
|
pankso@13652
|
616 # Output motion images to a video4linux loopback device
|
pankso@13652
|
617 # The value '-' means next available (default: not defined)
|
pankso@13652
|
618 ; motion_video_pipe value
|
pankso@13652
|
619
|
pankso@13652
|
620
|
pankso@13652
|
621 ##############################################################
|
pankso@13652
|
622 # Thread config files - One for each camera.
|
pankso@13652
|
623 # Except if only one camera - You only need this config file.
|
pankso@13652
|
624 # If you have more than one camera you MUST define one thread
|
pankso@13652
|
625 # config file for each camera in addition to this config file.
|
pankso@13652
|
626 ##############################################################
|
pankso@13652
|
627
|
pankso@13652
|
628 # Remember: If you have more than one camera you must have one
|
pankso@13652
|
629 # thread file for each camera. E.g. 2 cameras requires 3 files:
|
pankso@13652
|
630 # This motion.conf file AND thread1.conf and thread2.conf.
|
pankso@13652
|
631 # Only put the options that are unique to each camera in the
|
pankso@13652
|
632 # thread config files.
|
pankso@13652
|
633 ; thread /usr/local/etc/thread1.conf
|
pankso@13652
|
634 ; thread /usr/local/etc/thread2.conf
|
pankso@13652
|
635 ; thread /usr/local/etc/thread3.conf
|
pankso@13652
|
636 ; thread /usr/local/etc/thread4.conf
|
pankso@13652
|
637
|