How can I check why I cannot reach the motion webserver at localhost on the given port in the motion.conf ?
Question
Hi, I'm searching the requests and answers, the FAQ and the online documentation but somehow I could use some help achieving my goal. I'm running Motion on Ubuntu Lucid Lynx (10.04) Motion does run. It used the motion.conf by running motion -n -c /home/zanco It saves images when motion appears in the given folder and it saves images on an regular interval as given in the motion.conf
I added port numbers for the HTTP server, 8181 for the stream and 8180 for the control. I turned localhost access off. However, I cannot reach the webserver from Firefox on the localhost nor from another PC in my network with Firefox or Opera. Page cannot be displayed, try again later. Netscan from a Windows machine shows no open ports at 8180 or 8181.
Edit 28-11 15:51 After starting Motion a status screen appears, from which the line "Started stream webcam from port bla bla " is missing. So, the webserver is not started, but I have no clue why not. I noticed in other screendumps from motion users that this line should be there to show the webcam is streaming.
Below are my motion.conf and the results of sudo netstat -puta.
Edit 01-12-2011 / Problem is solved.Here's some detailed info how and what.
When starting motion with "motion -n -c /home/zanco/motion.conf " I did receive a message that motion.conf could not be located. Since then I started with "motion -n -c /home/zanco " after which Motion started and did run. However, there where some strange things. Some things worked as expected and edited in the conf and some things did not (webserver and regular webcam image save location).
This made me think about 2 different motion.conf files somehow messing up with each other. Did a file search and indeed in /etc there was another motion.conf. I did remove this file after which starting "motion -n -c /home/zanco " did deliver a message that motion.conf could not be found. So I tried again with "motion -n -c /home/zanco/motion.conf" which brought me back to the first error about motion.conf not being able to be located. Than I got a DejaVu about rights. From the wild of my brain I did a chmod 777 to the motion.conf file. From that moment on, motion starts with the motion.conf in the specified folder and webstream and webcontrol do work.
Perhaps someone else runs into this problem and does have some use from this piece of text.
%BLACK%%GREEN%Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 *:www *:* LISTEN 1187/apache2 %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 *:ssh *:* LISTEN 729/sshd %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 localhost:ipp *:* LISTEN 1061/cupsd %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 *:8000 *:* LISTEN 947/icecast2 %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 *:7144 *:* LISTEN 1019/peercast %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 *:7145 *:* LISTEN 1019/peercast %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 localhost:mysql *:* LISTEN 1021/mysqld %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:58386 173.194.18.108:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:36331 ez-in-f97.1e100.n:https ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:58999 192.168.0.:microsoft-ds ESTABLISHED - %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:38201 ew-in-f101.1e100.ne:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:45258 ey-in-f147.1e100.ne:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:45255 ey-in-f147.1e100.ne:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:33640 zanco-desktop.loca:4040 ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:33641 zanco-desktop.loca:4040 ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:33638 zanco-desktop.loca:4040 ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:45256 ey-in-f147.1e100.ne:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:42241 ey-in-f101.1e100.ne:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:46414 ey-in-f102.1e100.ne:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:45259 ey-in-f147.1e100.ne:www ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:33642 zanco-desktop.loca:4040 ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:33639 zanco-desktop.loca:4040 ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp 0 0 zanco-desktop.loc:33637 zanco-desktop.loca:4040 ESTABLISHED 2802/firefox-bin%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 [::]:ssh [::]:* LISTEN 729/sshd %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 localhost:ipp [::]:* LISTEN 1061/cupsd %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 [::]:9412 [::]:* LISTEN 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 [::]:55301 [::]:* LISTEN 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 [::]:4040 [::]:* LISTEN 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 [::]:5900 [::]:* LISTEN 2651/vino-server%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 192.168.0.99%32165:4040 192.168.0.99%1396:33637 ESTABLISHED 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 192.168.0.99%32165:4040 192.168.0.99%1396:33638 ESTABLISHED 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 192.168.0.99%32165:4040 192.168.0.99%1396:33641 ESTABLISHED 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 192.168.0.99%32165:4040 192.168.0.99%1396:33642 ESTABLISHED 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 192.168.0.99%32165:4040 192.168.0.99%1396:33639 ESTABLISHED 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%tcp6 0 0 192.168.0.99%32165:4040 192.168.0.99%1396:33640 ESTABLISHED 1381/java %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%udp 0 0 *:mdns *:* 748/avahi-daemon: r%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%udp 0 0 *:44180 *:* 748/avahi-daemon: r%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Rename this distribution example file to motion.conf%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%#%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# This config file was generated by motion 3.2.11%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Daemon%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Start in daemon (background) mode and release terminal (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%daemon off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File to store the process ID, also called pid file. (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%process_id_file /var/run/motion/motion.pid %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Basic Setup Mode%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Start in Setup-Mode, daemon disabled. (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%setup_mode off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%###########################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Capture device options%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Videodevice to be used for capturing (default /dev/video0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# for FreeBSD default is /dev/bktr0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%videodevice /dev/video0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# v4l2_palette allows to choose preferable palette to be use by motion%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# to capture from those supported by your videodevice. (default: 8)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Setting v4l2_palette to 1 forces motion to use V4L2_PIX_FMT_SBGGR8%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# instead.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%#%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Values :%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_SN9C10X : 0 'S910'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_SBGGR8 : 1 'BA81'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_MJPEG : 2 'MJPEG'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_JPEG : 3 'JPEG'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_RGB24 : 4 'RGB3'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_UYVY : 5 'UYVY'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_YUYV : 6 'YUYV'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_YUV422P : 7 '422P'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# V4L2_PIX_FMT_YUV420 : 8 'YU12'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%v4l2_palette 8%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# This is ONLY used for FreeBSD. Leave it commented out for Linux%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; tunerdevice /dev/tuner0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The video input to be used (default: 8)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Should normally be set to 0 or 1 for video/TV cards, and 8 for USB cameras%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%input 1%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The video norm to use (only for video capture and TV tuner cards)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%norm 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%frequency 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Rotate image this number of degrees. The rotation affects all saved images as%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%rotate 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Image width (pixels). Valid range: Camera dependent, default: 352%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%width 640%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Image height (pixels). Valid range: Camera dependent, default: 288%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%height 480%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Maximum number of frames to be captured per second.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid range: 2-100. Default: 100 (almost no limit).%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%framerate 10%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Minimum time in seconds between capturing picture frames from the camera.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: 0 = disabled - the capture rate is given by the camera framerate.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# This option is used when you want to capture images at a rate lower than 2 per second.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%minimum_frame_time 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; netcam_url value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Username and password for network camera (only if required). Default: not defined%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Syntax is user:password%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; netcam_userpass value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The setting for keep-alive of network socket, should improve performance on compatible net cameras.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# 1.0: The historical implementation using HTTP/1.0, closing the socket after each http request.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# keep_alive: Use HTTP/1.0 requests with keep alive header to reuse the same connection.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# 1.1: Use HTTP/1.1 requests that support keep alive as default.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: 1.0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; netcam_http 1.0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# URL to use for a netcam proxy server, if required, e.g. "http://myproxy".%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# If a port number other than 80 is needed, use "http://myproxy:1234".%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: not defined%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; netcam_proxy value %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Set less strict jpeg checks for network cameras with a poor/buggy firmware.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%netcam_tolerant_check off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Let motion regulate the brightness of a video device (default: off).%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The auto_brightness feature uses the brightness option as its target value.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# If brightness is zero auto_brightness will adjust to average brightness value 128.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Only recommended for cameras without auto brightness%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%auto_brightness off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Set the initial brightness of a video device.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# If auto_brightness is enabled, this value defines the average brightness level%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# which Motion will try and adjust to.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid range 0-255, default 0 = disabled%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%brightness 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Set the contrast of a video device.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid range 0-255, default 0 = disabled%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%contrast 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Set the saturation of a video device.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid range 0-255, default 0 = disabled%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%saturation 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Set the hue of a video device (NTSC feature).%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid range 0-255, default 0 = disabled%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%hue 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Round Robin (multiple inputs on same video device name)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Number of frames to capture in each roundrobin step (default: 1)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%roundrobin_frames 1%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Number of frames to skip before each roundrobin step (default: 1)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%roundrobin_skip 1%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Try to filter out noise generated by roundrobin (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%switchfilter off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Motion Detection Settings:%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Threshold for number of changed pixels in an image that%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# triggers motion detection (default: 1500)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%threshold 1500%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Automatically tune the threshold down if possible (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%threshold_tune off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Noise threshold for the motion detection (default: 32)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%noise_level 32%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Automatically tune the noise threshold (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%noise_tune on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# (l)abeling must only be used once and the 'l' must be the last letter.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Comment out to disable%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%despeckle EedDl%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Detect motion in predefined areas (1 - 9). Areas are numbered like that: 1 2 3%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# A script (on_area_detected) is started immediately when motion is 4 5 6%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# detected in one of the given areas, but only once during an event. 7 8 9%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# One or more areas can be specified with this option. (Default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; area_detect value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# PGM file to use as a sensitivity mask.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Full path name to. (Default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; mask_file value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Dynamically create a mask file during operation (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Adjust speed of mask changes from 0 (off) to 10 (fast)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%smart_mask_speed 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Ignore sudden massive light intensity changes given as a percentage of the picture%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%lightswitch 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Picture frames must contain motion at least the specified number of frames%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# in a row before they are detected as true motion. At the default of 1, all%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# motion is detected. Valid range: 1 to thousands, recommended 1-5%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%minimum_motion_frames 1%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Specifies the number of pre-captured (buffered) pictures from before motion%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# was detected that will be output at motion detection.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Recommended range: 0 to 5 (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Do not use large values! Large values will cause Motion to skip video frames and%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%pre_capture 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Number of frames to capture after motion is no longer detected (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%post_capture 5%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Gap is the seconds of no motion detection that triggers the end of an event%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# An event is defined as a series of motion images taken within a short timeframe.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Recommended value is 60 seconds (Default). The value 0 is allowed and disables%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# events causing all Motion to be written to one single mpeg file and no pre_capture.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%gap 60%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Maximum length in seconds of an mpeg movie%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# When value is exceeded a new mpeg file is created. (Default: 0 = infinite)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%max_mpeg_time 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Always save images even if there was no motion (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%output_all on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Image File Output%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Output 'normal' pictures when motion is detected (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid values: on, off, first, best, center%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# When set to 'first', only the first picture of an event is saved.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Picture with most motion of an event is saved when set to 'best'.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Picture with motion nearest center of picture is saved when set to 'center'.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Can be used as preview shot for the corresponding movie.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%output_normal on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Output pictures with only the pixels moving object (ghost images) (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%output_motion off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The quality (in percent) to be used by the jpeg compression (default: 75)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%quality 100%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Output ppm images instead of jpeg (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ppm off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# FFMPEG related options%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Film (mpeg) file output, and deinterlacing of the video input%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The options movie_filename and timelapse_filename are also used%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# by the ffmpeg feature%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Use ffmpeg to encode mpeg movies in realtime (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_cap_new on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Use ffmpeg to make movies with only the pixels moving%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# object (ghost images) (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_cap_motion off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Use ffmpeg to encode a timelapse movie %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default value 0 = off - else save frame every Nth second%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_timelapse 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The file rollover mode of the timelapse video%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_timelapse_mode daily%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Bitrate to be used by the ffmpeg encoder (default: 400000)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_bps 500000%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Enables and defines variable bitrate for the ffmpeg encoder.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# ffmpeg_bps is ignored if variable bitrate is enabled.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# or the range 2 - 31 where 2 means best quality and 31 is worst.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_variable_bitrate 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Codec to used by ffmpeg for the video compression.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Timelapse mpegs are always made in mpeg1 format independent from this option.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# mpeg1 - gives you files with extension .mpg%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# mpeg4 or msmpeg4 - gives you files with extension .avi%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# msmpeg4 is recommended for use with Windows Media Player because%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# it requires no installation of codec on the Windows client.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# swf - gives you a flash film with extension .swf%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# flv - gives you a flash video with extension .flv%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# ffv1 - FF video codec 1 for Lossless Encoding ( experimental )%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# mov - QuickTime ( testing )%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_video_codec swf%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Use ffmpeg to deinterlace video. Necessary if you use an analog camera%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# and see horizontal combing on moving objects in video or pictures.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%ffmpeg_deinterlace off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Snapshots (Traditional Periodic Webcam File Output)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Make automated snapshot every N seconds (default: 0 = disabled)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%snapshot_interval 300%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Text Display%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %Y = year, %m = month, %d = date,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %H = hour, %M = minute, %S = second, %T = HH:MM:SS,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %v = event, %q = frame number, %t = thread (camera) number,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %D = changed pixels, %N = noise level, \n = new line,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %i and %J = width and height of motion area,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %K and %L = X and Y coordinates of motion center%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %C = value defined by text_event - do not use with text_event!%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# You can put quotation marks around the text to allow%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# leading spaces%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Locate and draw a box around the moving object.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Valid values: on, off and preview (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Set to 'preview' will only draw a box in preview_shot pictures.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%locate on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Draws the timestamp using same options as C function strftime(3)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Text is placed in lower right corner%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%text_right %Y-%m-%d\n%T-%q%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Draw a user defined text on the images using same options as C function strftime(3)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: Not defined = no text%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Text is placed in lower left corner%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; text_left CAMERA %t%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Draw the number of changed pixed on the images (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Will normally be set to off except when you setup and adjust the motion settings%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Text is placed in upper right corner%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%text_changes off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# This option defines the value of the special event conversion specifier %C%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# You can use any conversion specifier in this option except %C. Date and time%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# values are from the timestamp of the first image in the current event.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: %Y%m%d%H%M%S%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The idea is that %C can be used filenames and text_left/right for creating%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# a unique identifier for each event.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%text_event %Y%m%d%H%M%S%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Draw characters at twice normal size on images. (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%text_double off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Target Directories and filenames For Images And Films%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# For the options snapshot_, jpeg_, mpeg_ and timelapse_filename%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# you can use conversion specifiers%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %Y = year, %m = month, %d = date,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %H = hour, %M = minute, %S = second,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %v = event, %q = frame number, %t = thread (camera) number,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %D = changed pixels, %N = noise level,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %i and %J = width and height of motion area,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %K and %L = X and Y coordinates of motion center%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %C = value defined by text_event%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Quotation marks round string are allowed.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Target base directory for pictures and films%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Recommended to use absolute path. (Default: current working directory)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%target_dir /home/zanco/webcam%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File path for snapshots (jpeg or ppm) relative to target_dir%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: %v-%Y%m%d%H%M%S-snapshot%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default value is equivalent to legacy oldlayout option%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File extension .jpg or .ppm is automatically added so do not include this.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Note: A symbolic link called lastsnap.jpg created in the target_dir will always%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%snapshot_filename %v-%Y%m%d%H%M%S-snapshot%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File path for motion triggered images (jpeg or ppm) relative to target_dir%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: %v-%Y%m%d%H%M%S-%q%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default value is equivalent to legacy oldlayout option%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File extension .jpg or .ppm is automatically added so do not include this%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Set to 'preview' together with best-preview feature enables special naming%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# convention for preview shots. See motion guide for details%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%jpeg_filename %v-%Y%m%d%H%M%S-%q%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File path for motion triggered ffmpeg films (mpeg) relative to target_dir%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: %v-%Y%m%d%H%M%S%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default value is equivalent to legacy oldlayout option%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File extension .mpg or .avi is automatically added so do not include this%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# This option was previously called ffmpeg_filename%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%movie_filename %v-%Y%m%d%H%M%S%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File path for timelapse mpegs relative to target_dir%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: %Y%m%d-timelapse%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default value is near equivalent to legacy oldlayout option%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# File extension .mpg is automatically added so do not include this%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%timelapse_filename %Y%m%d-timelapse%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Live Webcam Server%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The mini-http server listens to this port for requests (default: 0 = disabled)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%webcam_port 8181%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Quality of the jpeg images produced (default: 50)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%webcam_quality 75%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Output frames at 1 fps when no motion is detected and increase to the%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# rate given by webcam_maxrate when motion is detected (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%webcam_motion off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Maximum framerate for webcam streams (default: 1)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%webcam_maxrate 1%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Restrict webcam connections to localhost only (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%webcam_localhost off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Limits the number of images per connection (default: 0 = unlimited)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Number can be defined by multiplying actual webcam rate by desired number of seconds%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Actual webcam rate is the smallest of the numbers framerate and webcam_maxrate%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%webcam_limit 1200%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# HTTP Based Control%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# TCP/IP port for the http server to listen on (default: 0 = disabled)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%control_port 8180%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Restrict control connections to localhost only (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%control_localhost off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Output for http server, select off to choose raw text plain (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%control_html_output on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Authentication for the http based control. Syntax username:password%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default: not defined (Disabled)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; control_authentication username:password%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Tracking (Pan/Tilt)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic, 5=uvcvideo)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The generic type enables the definition of motion center and motion size to%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# be used with the conversion specifiers for options like on_motion_detected%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_type 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Enable auto tracking (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_auto off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Serial port of motor (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; track_port value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Motor number for x-axis (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_motorx 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Motor number for y-axis (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_motory 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Maximum value on x-axis (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_maxx 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Maximum value on y-axis (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_maxy 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# ID of an iomojo camera if used (default: 0)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_iomojo_id 0%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Angle in degrees the camera moves per step on the X-axis%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# with auto-track (default: 10)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Currently only used with pwc type cameras%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_step_angle_x 10%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Angle in degrees the camera moves per step on the Y-axis%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# with auto-track (default: 10)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Currently only used with pwc type cameras%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_step_angle_y 10%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Delay to wait for after tracking movement as number%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# of picture frames (default: 10)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_move_wait 10%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Speed to set the motor to (stepper motor option) (default: 255)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_speed 255%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Number of steps to make (stepper motor option) (default: 40)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%track_stepsize 40%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# External Commands, Warnings and Logging:%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# You can use conversion specifiers for the on_xxxx commands%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %Y = year, %m = month, %d = date,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %H = hour, %M = minute, %S = second,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %v = event, %q = frame number, %t = thread (camera) number,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %D = changed pixels, %N = noise level,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %i and %J = width and height of motion area,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %K and %L = X and Y coordinates of motion center%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %C = value defined by text_event%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %f = filename with full path%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %n = number indicating filetype%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Both %f and %n are only defined for on_picture_save,%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# on_movie_start and on_movie_end%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Quotation marks round string are allowed.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Do not sound beeps when detecting motion (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Note: Motion never beeps when running in daemon mode.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%quiet on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when an event starts. (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# An event starts at first motion detected after a period of no motion defined by gap %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_event_start value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when an event ends after a period of no motion%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# (default: none). The period of no motion is defined by option gap.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_event_end value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# To give the filename as an argument to a command append it with %f%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_picture_save value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when a motion frame is detected (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_motion_detected value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when motion in a predefined area is detected%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Check option 'area_detect'. (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_area_detected value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when a movie file (.mpg|.avi) is created. (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# To give the filename as an argument to a command append it with %f%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_movie_start value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# To give the filename as an argument to a command append it with %f%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_movie_end value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Command to be executed when a camera can't be opened or if it is lost%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# NOTE: There is situations when motion doesn't detect a lost camera!%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# It depends on the driver, some drivers don't detect a lost camera at all%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Some hang the motion thread. Some even hang the PC! (default: none)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; on_camera_lost value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Common Options For MySQL and PostgreSQL database features.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Options require the MySQL/PostgreSQL options to be active also.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Log to the database when creating motion triggered image file (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%sql_log_image on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Log to the database when creating a snapshot image file (default: on)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%sql_log_snapshot on%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Log to the database when creating motion triggered mpeg file (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%sql_log_mpeg off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Log to the database when creating timelapse mpeg file (default: off)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%sql_log_timelapse off%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# SQL query string that is sent to the database%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Use same conversion specifiers has for text features%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Additional special conversion specifiers are%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %n = the number representing the file_type%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# %f = filename with full path%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Default value:%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%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')%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Database Options For MySQL%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Mysql database to log to (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; mysql_db value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The host on which the database is located (default: localhost)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; mysql_host value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# User account name for MySQL database (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; mysql_user value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# User password for MySQL database (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; mysql_password value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Database Options For PostgreSQL%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# PostgreSQL database to log to (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; pgsql_db value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The host on which the database is located (default: localhost)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; pgsql_host value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# User account name for PostgreSQL database (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; pgsql_user value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# User password for PostgreSQL database (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; pgsql_password value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Port on which the PostgreSQL database is located (default: 5432)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; pgsql_port 5432%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Video Loopback Device (vloopback project)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Output images to a video4linux loopback device%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The value '-' means next available (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; video_pipe value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Output motion images to a video4linux loopback device%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# The value '-' means next available (default: not defined)%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; motion_video_pipe value%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%##############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Thread config files - One for each camera.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Except if only one camera - You only need this config file.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# If you have more than one camera you MUST define one thread%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# config file for each camera in addition to this config file.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%##############################################################%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Remember: If you have more than one camera you must have one%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# thread file for each camera. E.g. 2 cameras requires 3 files:%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# This motion.conf file AND thread1.conf and thread2.conf.%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# Only put the options that are unique to each camera in the%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%# thread config files. %ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; thread /usr/local/etc/thread1.conf%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; thread /usr/local/etc/thread2.conf%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; thread /usr/local/etc/thread3.conf%ENDCOLOR%%ENDCOLOR%
%BLACK%%GREEN%; thread /usr/local/etc/thread4.conf%ENDCOLOR%%ENDCOLOR%
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Ubuntu 10.04 |
--
BenZandstra - 28 Nov 2010
Answer