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