wok diff motion/stuff/motion.conf @ rev 20069

busybox/udhcpc6: update script (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 23 17:21:58 2017 +0200 (2017-09-23)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/motion/stuff/motion.conf	Sat Sep 23 17:21:58 2017 +0200
     1.3 @@ -0,0 +1,637 @@
     1.4 +# Rename this distribution example file to motion.conf
     1.5 +#
     1.6 +# This config file was generated by motion 3.2.12
     1.7 +
     1.8 +
     1.9 +############################################################
    1.10 +# Daemon
    1.11 +############################################################
    1.12 +
    1.13 +# Start in daemon (background) mode and release terminal (default: off)
    1.14 +daemon on
    1.15 +
    1.16 +# File to store the process ID, also called pid file. (default: not defined)
    1.17 +process_id_file /run/motion/motion.pid 
    1.18 +
    1.19 +############################################################
    1.20 +# Basic Setup Mode
    1.21 +############################################################
    1.22 +
    1.23 +# Start in Setup-Mode, daemon disabled. (default: off)
    1.24 +setup_mode off
    1.25 +
    1.26 +###########################################################
    1.27 +# Capture device options
    1.28 +############################################################
    1.29 +
    1.30 +# Videodevice to be used for capturing  (default /dev/video0)
    1.31 +# for FreeBSD default is /dev/bktr0
    1.32 +videodevice /dev/video0
    1.33 +
    1.34 +# v4l2_palette allows to choose preferable palette to be use by motion
    1.35 +# to capture from those supported by your videodevice. (default: 8)
    1.36 +# E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and
    1.37 +# V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.
    1.38 +# Setting v4l2_palette to 1 forces motion to use V4L2_PIX_FMT_SBGGR8
    1.39 +# instead.
    1.40 +#
    1.41 +# Values :
    1.42 +# V4L2_PIX_FMT_SN9C10X : 0  'S910'
    1.43 +# V4L2_PIX_FMT_SBGGR8  : 1  'BA81'
    1.44 +# V4L2_PIX_FMT_MJPEG   : 2  'MJPEG'
    1.45 +# V4L2_PIX_FMT_JPEG    : 3  'JPEG'
    1.46 +# V4L2_PIX_FMT_RGB24   : 4  'RGB3'
    1.47 +# V4L2_PIX_FMT_UYVY    : 5  'UYVY'
    1.48 +# V4L2_PIX_FMT_YUYV    : 6  'YUYV'
    1.49 +# V4L2_PIX_FMT_YUV422P : 7  '422P'
    1.50 +# V4L2_PIX_FMT_YUV420  : 8  'YU12'
    1.51 +v4l2_palette 8
    1.52 +
    1.53 +# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
    1.54 +# This is ONLY used for FreeBSD. Leave it commented out for Linux
    1.55 +; tunerdevice /dev/tuner0
    1.56 +
    1.57 +# The video input to be used (default: 8)
    1.58 +# Should normally be set to 0 or 1 for video/TV cards, and 8 for USB cameras
    1.59 +input 8
    1.60 +
    1.61 +# The video norm to use (only for video capture and TV tuner cards)
    1.62 +# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
    1.63 +norm 0
    1.64 +
    1.65 +# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
    1.66 +frequency 0
    1.67 +
    1.68 +# Rotate image this number of degrees. The rotation affects all saved images as
    1.69 +# well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
    1.70 +rotate 0
    1.71 +
    1.72 +# Image width (pixels). Valid range: Camera dependent, default: 352
    1.73 +width 320
    1.74 +
    1.75 +# Image height (pixels). Valid range: Camera dependent, default: 288
    1.76 +height 240
    1.77 +
    1.78 +# Maximum number of frames to be captured per second.
    1.79 +# Valid range: 2-100. Default: 100 (almost no limit).
    1.80 +framerate 2
    1.81 +
    1.82 +# Minimum time in seconds between capturing picture frames from the camera.
    1.83 +# Default: 0 = disabled - the capture rate is given by the camera framerate.
    1.84 +# This option is used when you want to capture images at a rate lower than 2 per second.
    1.85 +minimum_frame_time 0
    1.86 +
    1.87 +# URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)
    1.88 +# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
    1.89 +; netcam_url value
    1.90 +
    1.91 +# Username and password for network camera (only if required). Default: not defined
    1.92 +# Syntax is user:password
    1.93 +; netcam_userpass value
    1.94 +
    1.95 +# The setting for keep-alive of network socket, should improve performance on compatible net cameras.
    1.96 +# 1.0:         The historical implementation using HTTP/1.0, closing the socket after each http request.
    1.97 +# keep_alive:  Use HTTP/1.0 requests with keep alive header to reuse the same connection.
    1.98 +# 1.1:         Use HTTP/1.1 requests that support keep alive as default.
    1.99 +# Default: 1.0
   1.100 +; netcam_http 1.0
   1.101 +
   1.102 +# URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
   1.103 +# If a port number other than 80 is needed, use "http://myproxy:1234".
   1.104 +# Default: not defined
   1.105 +; netcam_proxy value 
   1.106 +
   1.107 +# Set less strict jpeg checks for network cameras with a poor/buggy firmware.
   1.108 +# Default: off
   1.109 +netcam_tolerant_check off
   1.110 +
   1.111 +# Let motion regulate the brightness of a video device (default: off).
   1.112 +# The auto_brightness feature uses the brightness option as its target value.
   1.113 +# If brightness is zero auto_brightness will adjust to average brightness value 128.
   1.114 +# Only recommended for cameras without auto brightness
   1.115 +auto_brightness off
   1.116 +
   1.117 +# Set the initial brightness of a video device.
   1.118 +# If auto_brightness is enabled, this value defines the average brightness level
   1.119 +# which Motion will try and adjust to.
   1.120 +# Valid range 0-255, default 0 = disabled
   1.121 +brightness 0
   1.122 +
   1.123 +# Set the contrast of a video device.
   1.124 +# Valid range 0-255, default 0 = disabled
   1.125 +contrast 0
   1.126 +
   1.127 +# Set the saturation of a video device.
   1.128 +# Valid range 0-255, default 0 = disabled
   1.129 +saturation 0
   1.130 +
   1.131 +# Set the hue of a video device (NTSC feature).
   1.132 +# Valid range 0-255, default 0 = disabled
   1.133 +hue 0
   1.134 +
   1.135 +
   1.136 +############################################################
   1.137 +# Round Robin (multiple inputs on same video device name)
   1.138 +############################################################
   1.139 +
   1.140 +# Number of frames to capture in each roundrobin step (default: 1)
   1.141 +roundrobin_frames 1
   1.142 +
   1.143 +# Number of frames to skip before each roundrobin step (default: 1)
   1.144 +roundrobin_skip 1
   1.145 +
   1.146 +# Try to filter out noise generated by roundrobin (default: off)
   1.147 +switchfilter off
   1.148 +
   1.149 +
   1.150 +############################################################
   1.151 +# Motion Detection Settings:
   1.152 +############################################################
   1.153 +
   1.154 +# Threshold for number of changed pixels in an image that
   1.155 +# triggers motion detection (default: 1500)
   1.156 +threshold 1500
   1.157 +
   1.158 +# Automatically tune the threshold down if possible (default: off)
   1.159 +threshold_tune off
   1.160 +
   1.161 +# Noise threshold for the motion detection (default: 32)
   1.162 +noise_level 32
   1.163 +
   1.164 +# Automatically tune the noise threshold (default: on)
   1.165 +noise_tune on
   1.166 +
   1.167 +# Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)
   1.168 +# Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.
   1.169 +# (l)abeling must only be used once and the 'l' must be the last letter.
   1.170 +# Comment out to disable
   1.171 +despeckle EedDl
   1.172 +
   1.173 +# Detect motion in predefined areas (1 - 9). Areas are numbered like that:  1 2 3
   1.174 +# A script (on_area_detected) is started immediately when motion is         4 5 6
   1.175 +# detected in one of the given areas, but only once during an event.        7 8 9
   1.176 +# One or more areas can be specified with this option. (Default: not defined)
   1.177 +; area_detect value
   1.178 +
   1.179 +# PGM file to use as a sensitivity mask.
   1.180 +# Full path name to. (Default: not defined)
   1.181 +; mask_file value
   1.182 +
   1.183 +# Dynamically create a mask file during operation (default: 0)
   1.184 +# Adjust speed of mask changes from 0 (off) to 10 (fast)
   1.185 +smart_mask_speed 0
   1.186 +
   1.187 +# Ignore sudden massive light intensity changes given as a percentage of the picture
   1.188 +# area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled
   1.189 +lightswitch 0
   1.190 +
   1.191 +# Picture frames must contain motion at least the specified number of frames
   1.192 +# in a row before they are detected as true motion. At the default of 1, all
   1.193 +# motion is detected. Valid range: 1 to thousands, recommended 1-5
   1.194 +minimum_motion_frames 1
   1.195 +
   1.196 +# Specifies the number of pre-captured (buffered) pictures from before motion
   1.197 +# was detected that will be output at motion detection.
   1.198 +# Recommended range: 0 to 5 (default: 0)
   1.199 +# Do not use large values! Large values will cause Motion to skip video frames and
   1.200 +# cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead.
   1.201 +pre_capture 0
   1.202 +
   1.203 +# Number of frames to capture after motion is no longer detected (default: 0)
   1.204 +post_capture 0
   1.205 +
   1.206 +# Gap is the seconds of no motion detection that triggers the end of an event
   1.207 +# An event is defined as a series of motion images taken within a short timeframe.
   1.208 +# Recommended value is 60 seconds (Default). The value 0 is allowed and disables
   1.209 +# events causing all Motion to be written to one single mpeg file and no pre_capture.
   1.210 +gap 60
   1.211 +
   1.212 +# Maximum length in seconds of an mpeg movie
   1.213 +# When value is exceeded a new mpeg file is created. (Default: 0 = infinite)
   1.214 +max_mpeg_time 0
   1.215 +
   1.216 +# Always save images even if there was no motion (default: off)
   1.217 +output_all off
   1.218 +
   1.219 +
   1.220 +############################################################
   1.221 +# Image File Output
   1.222 +############################################################
   1.223 +
   1.224 +# Output 'normal' pictures when motion is detected (default: on)
   1.225 +# Valid values: on, off, first, best, center
   1.226 +# When set to 'first', only the first picture of an event is saved.
   1.227 +# Picture with most motion of an event is saved when set to 'best'.
   1.228 +# Picture with motion nearest center of picture is saved when set to 'center'.
   1.229 +# Can be used as preview shot for the corresponding movie.
   1.230 +output_normal on
   1.231 +
   1.232 +# Output pictures with only the pixels moving object (ghost images) (default: off)
   1.233 +output_motion off
   1.234 +
   1.235 +# The quality (in percent) to be used by the jpeg compression (default: 75)
   1.236 +quality 75
   1.237 +
   1.238 +# Output ppm images instead of jpeg (default: off)
   1.239 +ppm off
   1.240 +
   1.241 +
   1.242 +############################################################
   1.243 +# FFMPEG related options
   1.244 +# Film (mpeg) file output, and deinterlacing of the video input
   1.245 +# The options movie_filename and timelapse_filename are also used
   1.246 +# by the ffmpeg feature
   1.247 +############################################################
   1.248 +
   1.249 +# Use ffmpeg to encode mpeg movies in realtime (default: off)
   1.250 +#ffmpeg_cap_new on
   1.251 +
   1.252 +# Use ffmpeg to make movies with only the pixels moving
   1.253 +# object (ghost images) (default: off)
   1.254 +#ffmpeg_cap_motion off
   1.255 +
   1.256 +# Use ffmpeg to encode a timelapse movie 
   1.257 +# Default value 0 = off - else save frame every Nth second
   1.258 +#ffmpeg_timelapse 0
   1.259 +
   1.260 +# The file rollover mode of the timelapse video
   1.261 +# Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual
   1.262 +#ffmpeg_timelapse_mode daily
   1.263 +
   1.264 +# Bitrate to be used by the ffmpeg encoder (default: 400000)
   1.265 +# This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)
   1.266 +#ffmpeg_bps 500000
   1.267 +
   1.268 +# Enables and defines variable bitrate for the ffmpeg encoder.
   1.269 +# ffmpeg_bps is ignored if variable bitrate is enabled.
   1.270 +# Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,
   1.271 +# or the range 2 - 31 where 2 means best quality and 31 is worst.
   1.272 +#ffmpeg_variable_bitrate 0
   1.273 +
   1.274 +# Codec to used by ffmpeg for the video compression.
   1.275 +# Timelapse mpegs are always made in mpeg1 format independent from this option.
   1.276 +# Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.
   1.277 +# mpeg1 - gives you files with extension .mpg
   1.278 +# mpeg4 or msmpeg4 - gives you files with extension .avi
   1.279 +# msmpeg4 is recommended for use with Windows Media Player because
   1.280 +# it requires no installation of codec on the Windows client.
   1.281 +# swf - gives you a flash film with extension .swf
   1.282 +# flv - gives you a flash video with extension .flv
   1.283 +# ffv1 - FF video codec 1 for Lossless Encoding ( experimental )
   1.284 +# mov - QuickTime ( testing )
   1.285 +#ffmpeg_video_codec mpeg4
   1.286 +
   1.287 +# Use ffmpeg to deinterlace video. Necessary if you use an analog camera
   1.288 +# and see horizontal combing on moving objects in video or pictures.
   1.289 +# (default: off)
   1.290 +#ffmpeg_deinterlace off
   1.291 +
   1.292 +
   1.293 +############################################################
   1.294 +# Snapshots (Traditional Periodic Webcam File Output)
   1.295 +############################################################
   1.296 +
   1.297 +# Make automated snapshot every N seconds (default: 0 = disabled)
   1.298 +snapshot_interval 0
   1.299 +
   1.300 +
   1.301 +############################################################
   1.302 +# Text Display
   1.303 +# %Y = year, %m = month, %d = date,
   1.304 +# %H = hour, %M = minute, %S = second, %T = HH:MM:SS,
   1.305 +# %v = event, %q = frame number, %t = thread (camera) number,
   1.306 +# %D = changed pixels, %N = noise level, \n = new line,
   1.307 +# %i and %J = width and height of motion area,
   1.308 +# %K and %L = X and Y coordinates of motion center
   1.309 +# %C = value defined by text_event - do not use with text_event!
   1.310 +# You can put quotation marks around the text to allow
   1.311 +# leading spaces
   1.312 +############################################################
   1.313 +
   1.314 +# Locate and draw a box around the moving object.
   1.315 +# Valid values: on, off and preview (default: off)
   1.316 +# Set to 'preview' will only draw a box in preview_shot pictures.
   1.317 +locate off
   1.318 +
   1.319 +# Draws the timestamp using same options as C function strftime(3)
   1.320 +# Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock
   1.321 +# Text is placed in lower right corner
   1.322 +text_right %Y-%m-%d\n%T-%q
   1.323 +
   1.324 +# Draw a user defined text on the images using same options as C function strftime(3)
   1.325 +# Default: Not defined = no text
   1.326 +# Text is placed in lower left corner
   1.327 +; text_left CAMERA %t
   1.328 +
   1.329 +# Draw the number of changed pixed on the images (default: off)
   1.330 +# Will normally be set to off except when you setup and adjust the motion settings
   1.331 +# Text is placed in upper right corner
   1.332 +text_changes off
   1.333 +
   1.334 +# This option defines the value of the special event conversion specifier %C
   1.335 +# You can use any conversion specifier in this option except %C. Date and time
   1.336 +# values are from the timestamp of the first image in the current event.
   1.337 +# Default: %Y%m%d%H%M%S
   1.338 +# The idea is that %C can be used filenames and text_left/right for creating
   1.339 +# a unique identifier for each event.
   1.340 +text_event %Y%m%d%H%M%S
   1.341 +
   1.342 +# Draw characters at twice normal size on images. (default: off)
   1.343 +text_double off
   1.344 +
   1.345 +
   1.346 +############################################################
   1.347 +# Target Directories and filenames For Images And Films
   1.348 +# For the options snapshot_, jpeg_, mpeg_ and timelapse_filename
   1.349 +# you can use conversion specifiers
   1.350 +# %Y = year, %m = month, %d = date,
   1.351 +# %H = hour, %M = minute, %S = second,
   1.352 +# %v = event, %q = frame number, %t = thread (camera) number,
   1.353 +# %D = changed pixels, %N = noise level,
   1.354 +# %i and %J = width and height of motion area,
   1.355 +# %K and %L = X and Y coordinates of motion center
   1.356 +# %C = value defined by text_event
   1.357 +# Quotation marks round string are allowed.
   1.358 +############################################################
   1.359 +
   1.360 +# Target base directory for pictures and films
   1.361 +# Recommended to use absolute path. (Default: current working directory)
   1.362 +target_dir /var/lib/motion/cam1
   1.363 +
   1.364 +# File path for snapshots (jpeg or ppm) relative to target_dir
   1.365 +# Default: %v-%Y%m%d%H%M%S-snapshot
   1.366 +# Default value is equivalent to legacy oldlayout option
   1.367 +# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot
   1.368 +# File extension .jpg or .ppm is automatically added so do not include this.
   1.369 +# Note: A symbolic link called lastsnap.jpg created in the target_dir will always
   1.370 +# point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'
   1.371 +snapshot_filename %v-%Y%m%d%H%M%S-snapshot
   1.372 +
   1.373 +# File path for motion triggered images (jpeg or ppm) relative to target_dir
   1.374 +# Default: %v-%Y%m%d%H%M%S-%q
   1.375 +# Default value is equivalent to legacy oldlayout option
   1.376 +# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
   1.377 +# File extension .jpg or .ppm is automatically added so do not include this
   1.378 +# Set to 'preview' together with best-preview feature enables special naming
   1.379 +# convention for preview shots. See motion guide for details
   1.380 +jpeg_filename %v-%Y%m%d%H%M%S-%q
   1.381 +
   1.382 +# File path for motion triggered ffmpeg films (mpeg) relative to target_dir
   1.383 +# Default: %v-%Y%m%d%H%M%S
   1.384 +# Default value is equivalent to legacy oldlayout option
   1.385 +# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S
   1.386 +# File extension .mpg or .avi is automatically added so do not include this
   1.387 +# This option was previously called ffmpeg_filename
   1.388 +#movie_filename %v-%Y%m%d%H%M%S
   1.389 +
   1.390 +# File path for timelapse mpegs relative to target_dir
   1.391 +# Default: %Y%m%d-timelapse
   1.392 +# Default value is near equivalent to legacy oldlayout option
   1.393 +# For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse
   1.394 +# File extension .mpg is automatically added so do not include this
   1.395 +#timelapse_filename %Y%m%d-timelapse
   1.396 +
   1.397 +
   1.398 +############################################################
   1.399 +# Live Webcam Server
   1.400 +############################################################
   1.401 +
   1.402 +# The mini-http server listens to this port for requests (default: 0 = disabled)
   1.403 +webcam_port 8081
   1.404 +
   1.405 +# Quality of the jpeg (in percent) images produced (default: 50) 
   1.406 +webcam_quality 50
   1.407 +
   1.408 +# Output frames at 1 fps when no motion is detected and increase to the
   1.409 +# rate given by webcam_maxrate when motion is detected (default: off)
   1.410 +webcam_motion off
   1.411 +
   1.412 +# Maximum framerate for webcam streams (default: 1)
   1.413 +webcam_maxrate 1
   1.414 +
   1.415 +# Restrict webcam connections to localhost only (default: on)
   1.416 +webcam_localhost on
   1.417 +
   1.418 +# Limits the number of images per connection (default: 0 = unlimited)
   1.419 +# Number can be defined by multiplying actual webcam rate by desired number of seconds
   1.420 +# Actual webcam rate is the smallest of the numbers framerate and webcam_maxrate
   1.421 +webcam_limit 0
   1.422 +
   1.423 +
   1.424 +############################################################
   1.425 +# HTTP Based Control
   1.426 +############################################################
   1.427 +
   1.428 +# TCP/IP port for the http server to listen on (default: 0 = disabled)
   1.429 +control_port 8080
   1.430 +
   1.431 +# Restrict control connections to localhost only (default: on)
   1.432 +control_localhost on
   1.433 +
   1.434 +# Output for http server, select off to choose raw text plain (default: on)
   1.435 +control_html_output on
   1.436 +
   1.437 +# Authentication for the http based control. Syntax username:password
   1.438 +# Default: not defined (Disabled)
   1.439 +; control_authentication username:password
   1.440 +
   1.441 +
   1.442 +############################################################
   1.443 +# Tracking (Pan/Tilt)
   1.444 +############################################################
   1.445 +
   1.446 +# Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic, 5=uvcvideo)
   1.447 +# The generic type enables the definition of motion center and motion size to
   1.448 +# be used with the conversion specifiers for options like on_motion_detected
   1.449 +track_type 0
   1.450 +
   1.451 +# Enable auto tracking (default: off)
   1.452 +track_auto off
   1.453 +
   1.454 +# Serial port of motor (default: none)
   1.455 +; track_port value
   1.456 +
   1.457 +# Motor number for x-axis (default: 0)
   1.458 +track_motorx 0
   1.459 +
   1.460 +# Motor number for y-axis (default: 0)
   1.461 +track_motory 0
   1.462 +
   1.463 +# Maximum value on x-axis (default: 0)
   1.464 +track_maxx 0
   1.465 +
   1.466 +# Maximum value on y-axis (default: 0)
   1.467 +track_maxy 0
   1.468 +
   1.469 +# ID of an iomojo camera if used (default: 0)
   1.470 +track_iomojo_id 0
   1.471 +
   1.472 +# Angle in degrees the camera moves per step on the X-axis
   1.473 +# with auto-track (default: 10)
   1.474 +# Currently only used with pwc type cameras
   1.475 +track_step_angle_x 10
   1.476 +
   1.477 +# Angle in degrees the camera moves per step on the Y-axis
   1.478 +# with auto-track (default: 10)
   1.479 +# Currently only used with pwc type cameras
   1.480 +track_step_angle_y 10
   1.481 +
   1.482 +# Delay to wait for after tracking movement as number
   1.483 +# of picture frames (default: 10)
   1.484 +track_move_wait 10
   1.485 +
   1.486 +# Speed to set the motor to (stepper motor option) (default: 255)
   1.487 +track_speed 255
   1.488 +
   1.489 +# Number of steps to make (stepper motor option) (default: 40)
   1.490 +track_stepsize 40
   1.491 +
   1.492 +
   1.493 +############################################################
   1.494 +# External Commands, Warnings and Logging:
   1.495 +# You can use conversion specifiers for the on_xxxx commands
   1.496 +# %Y = year, %m = month, %d = date,
   1.497 +# %H = hour, %M = minute, %S = second,
   1.498 +# %v = event, %q = frame number, %t = thread (camera) number,
   1.499 +# %D = changed pixels, %N = noise level,
   1.500 +# %i and %J = width and height of motion area,
   1.501 +# %K and %L = X and Y coordinates of motion center
   1.502 +# %C = value defined by text_event
   1.503 +# %f = filename with full path
   1.504 +# %n = number indicating filetype
   1.505 +# Both %f and %n are only defined for on_picture_save,
   1.506 +# on_movie_start and on_movie_end
   1.507 +# Quotation marks round string are allowed.
   1.508 +############################################################
   1.509 +
   1.510 +# Do not sound beeps when detecting motion (default: on)
   1.511 +# Note: Motion never beeps when running in daemon mode.
   1.512 +quiet on
   1.513 +
   1.514 +# Command to be executed when an event starts. (default: none)
   1.515 +# An event starts at first motion detected after a period of no motion defined by gap 
   1.516 +; on_event_start value
   1.517 +
   1.518 +# Command to be executed when an event ends after a period of no motion
   1.519 +# (default: none). The period of no motion is defined by option gap.
   1.520 +; on_event_end value
   1.521 +
   1.522 +# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
   1.523 +# To give the filename as an argument to a command append it with %f
   1.524 +; on_picture_save value
   1.525 +
   1.526 +# Command to be executed when a motion frame is detected (default: none)
   1.527 +; on_motion_detected value
   1.528 +
   1.529 +# Command to be executed when motion in a predefined area is detected
   1.530 +# Check option 'area_detect'.   (default: none)
   1.531 +; on_area_detected value
   1.532 +
   1.533 +# Command to be executed when a movie file (.mpg|.avi) is created. (default: none)
   1.534 +# To give the filename as an argument to a command append it with %f
   1.535 +; on_movie_start value
   1.536 +
   1.537 +# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
   1.538 +# To give the filename as an argument to a command append it with %f
   1.539 +; on_movie_end value
   1.540 +
   1.541 +# Command to be executed when a camera can't be opened or if it is lost
   1.542 +# NOTE: There is situations when motion doesn't detect a lost camera!
   1.543 +# It depends on the driver, some drivers don't detect a lost camera at all
   1.544 +# Some hang the motion thread. Some even hang the PC! (default: none)
   1.545 +; on_camera_lost value
   1.546 +
   1.547 +############################################################
   1.548 +# Common Options For MySQL and PostgreSQL database features.
   1.549 +# Options require the MySQL/PostgreSQL options to be active also.
   1.550 +############################################################
   1.551 +
   1.552 +# Log to the database when creating motion triggered image file  (default: on)
   1.553 +#sql_log_image on
   1.554 +
   1.555 +# Log to the database when creating a snapshot image file (default: on)
   1.556 +#sql_log_snapshot on
   1.557 +
   1.558 +# Log to the database when creating motion triggered mpeg file (default: off)
   1.559 +#sql_log_mpeg off
   1.560 +
   1.561 +# Log to the database when creating timelapse mpeg file (default: off)
   1.562 +#sql_log_timelapse off
   1.563 +
   1.564 +# SQL query string that is sent to the database
   1.565 +# Use same conversion specifiers has for text features
   1.566 +# Additional special conversion specifiers are
   1.567 +# %n = the number representing the file_type
   1.568 +# %f = filename with full path
   1.569 +# Default value:
   1.570 +# insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
   1.571 +#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')
   1.572 +
   1.573 +
   1.574 +############################################################
   1.575 +# Database Options For MySQL
   1.576 +############################################################
   1.577 +
   1.578 +# Mysql database to log to (default: not defined)
   1.579 +; mysql_db value
   1.580 +
   1.581 +# The host on which the database is located (default: localhost)
   1.582 +; mysql_host value
   1.583 +
   1.584 +# User account name for MySQL database (default: not defined)
   1.585 +; mysql_user value
   1.586 +
   1.587 +# User password for MySQL database (default: not defined)
   1.588 +; mysql_password value
   1.589 +
   1.590 +
   1.591 +############################################################
   1.592 +# Database Options For PostgreSQL
   1.593 +############################################################
   1.594 +
   1.595 +# PostgreSQL database to log to (default: not defined)
   1.596 +; pgsql_db value
   1.597 +
   1.598 +# The host on which the database is located (default: localhost)
   1.599 +; pgsql_host value
   1.600 +
   1.601 +# User account name for PostgreSQL database (default: not defined)
   1.602 +; pgsql_user value
   1.603 +
   1.604 +# User password for PostgreSQL database (default: not defined)
   1.605 +; pgsql_password value
   1.606 +
   1.607 +# Port on which the PostgreSQL database is located (default: 5432)
   1.608 +; pgsql_port 5432
   1.609 +
   1.610 +
   1.611 +############################################################
   1.612 +# Video Loopback Device (vloopback project)
   1.613 +############################################################
   1.614 +
   1.615 +# Output images to a video4linux loopback device
   1.616 +# The value '-' means next available (default: not defined)
   1.617 +; video_pipe value
   1.618 +
   1.619 +# Output motion images to a video4linux loopback device
   1.620 +# The value '-' means next available (default: not defined)
   1.621 +; motion_video_pipe value
   1.622 +
   1.623 +
   1.624 +##############################################################
   1.625 +# Thread config files - One for each camera.
   1.626 +# Except if only one camera - You only need this config file.
   1.627 +# If you have more than one camera you MUST define one thread
   1.628 +# config file for each camera in addition to this config file.
   1.629 +##############################################################
   1.630 +
   1.631 +# Remember: If you have more than one camera you must have one
   1.632 +# thread file for each camera. E.g. 2 cameras requires 3 files:
   1.633 +# This motion.conf file AND thread1.conf and thread2.conf.
   1.634 +# Only put the options that are unique to each camera in the
   1.635 +# thread config files. 
   1.636 +; thread /usr/local/etc/thread1.conf
   1.637 +; thread /usr/local/etc/thread2.conf
   1.638 +; thread /usr/local/etc/thread3.conf
   1.639 +; thread /usr/local/etc/thread4.conf
   1.640 +