Motion - Motion Options Alphabetical Manpage

Man Page With Autogenerated Options List


.TH MOTION 1 2008-09-20 "Motion" "Motion Options and Config Files"
.SH NAME
motion \-   Detect motion using a video4linux device
.SH SYNOPSIS
.B motion
[ -hns ] [ -c config file path ] [ -d level ] [ -p process_id_file ]
.SH DESCRIPTION
.I  Motion
uses a video4linux device to detect motion. If motion is detected both normal
and motion pictures will be taken. Motion can also take actions to notify you
if needed. Creation of automated snapshots is also possible.
.SH OPTIONS
.TP
.B \-c
Full path and filename of config file. E.g. /home/kurt/motion.conf. Default is /usr/local/etc unless specified differently when building Motion. Many RPMs and debian packages will most likely use /etc or /etc/motion as default.
.TP
.B \-h
Show help screen.
.TP
.B \-n
Run in non-daemon mode.
.TP
.B \-s
Run in setup mode. Also forces non-daemon mode
.TP
.B \-d level
Run in debug mode, level 1-9.
.TP
.B \-p
Full path and filename for process id file (pid file). E.g /var/run/motion.pid. Default is not defined. Pid file is only created when Motion is started in daemon mode.
.TP
.SH "CONFIG FILE OPTIONS"
These are the options that can be used in the config file.
.I They are overridden by the commandline!
All number values are integer numbers (no decimals allowed).
Boolean options can be on or off (values "1", "yes" and "on" all means true and any other value means false).
.TP
.B  %CALC{"$LOWER()"}%
Values:  / Default: 
.br

.TP
.B  %CALC{"$LOWER()"}%
Values:  / Default: 
.br

.TP
.B area_detect %CALC{"$LOWER(String)"}%
Values: 1 - 999999999 / Default: Not defined
.br
Detect motion center in predefined areas. A script (on_area_detected) is started immediately when motion center is detected in one of the given areas, but only once during an event even if there is motion in a different configured area. Take care: This option does NOT restrict detection to these areas!, Detect motion center in predefined areas. A script (on_area_detected) is started immediately when motion center is detected in one of the given areas, but only once during an event even if there is motion in a different configured area. Take care: This option does NOT restrict detection to these areas!
.TP
.B auto_brightness %CALC{"$LOWER(Boolean)"}%
Values: on, off / Default: off
.br
Let motion regulate the brightness of a video device. Only recommended for cameras without auto brightness, Let motion regulate the brightness of a video device. Only recommended for cameras without auto brightness
.TP
.B brightness %CALC{"$LOWER(Integer)"}%
Values: 0 - 255 / Default: 0 (disabled)
.br
The brightness level for the video device., The brightness level for the video device.
.TP
.B contrast %CALC{"$LOWER(Boolean)"}%
Values: 0 - 255 / Default: 0 (disabled)
.br
The contrast level for the video device. Disabled (Value 0) means that Motion does not set the contrast value., The contrast level for the video device. Disabled (Value 0) means that Motion does not set the contrast value.
.TP
.B daemon %CALC{"$LOWER(Boolean)"}%
Values: on, off / Default: off
.br
Start in daemon (background) mode and release terminal. This option must be placed in motion.conf and not in a thread config file., Start in daemon (background) mode and release terminal. This option must be placed in motion.conf and not in a thread config file.
.TP
.B database_busy_timeout %CALC{"$LOWER(Integer)"}%
Values: 0 .. positive integer / Default: 0
.br
Database wait time in milliseconds for locked database to be unlocked before returning database locked error (default 0). If the database is busy when the request is issued, this parameter indicates the time to wait before issuing a timeout message, Database wait time in milliseconds for locked database to be unlocked before returning database locked error (default 0). If the database is busy when the request is issued, this parameter indicates the time to wait before issuing a timeout message
.TP
.B database_dbname %CALC{"$LOWER(String)"}%
Values: Max 4095 characters / Default: Not defined
.br
The name of the database. For Sqlite3, the full path and name to the database, The name of the database. For Sqlite3, the full path and name to the database
.TP
.B database_host %CALC{"$LOWER(String)"}%
Values: Max 4095 characters / Default: localhost
.br
IP address or domain name for the database server. Use "localhost" if motion and the database runs on the same server., IP address or domain name for the database server. Use "localhost" if motion and the database runs on the same server.
.TP
.B database_password %CALC{"$LOWER(String)"}%
Values: Max 4095 characters / Default: Not defined
.br
The user password for the database, The user password for the database
.TP
.B database_port %CALC{"$LOWER(String)"}%
Values: 1-65535 / Default: Not defined
.br
The port number that is used for the database. Typical values are: mysql=3306 and postgresql=5432 , The port number that is used for the database. Typical values are: mysql=3306 and postgresql=5432 
.TP
.B database_type %CALC{"$LOWER(Discrete Strings)"}%
Values: mysql, postgresql, sqlite3 / Default: Not defined
.br
Type of database used. Leave it undefined if you are not using databases, Type of database used. Leave it undefined if you are not using databases
.TP
.B database_user %CALC{"$LOWER(String)"}%
Values: Max 4095 characters / Default: Not defined
.br
User account name for database, User account name for database
.TP
.B despeckle %CALC{"$LOWER(String)"}%
Values: EedDl / Default: Not defined
.br
Despeckle motion image using combinations of (E/e)rode or (D/d)ilate. And ending with optional (l)abeling., Despeckle motion image using combinations of (E/e)rode or (D/d)ilate. And ending with optional (l)abeling.
.TP
.B emulate_motion %CALC{"$LOWER(Boolean)"}%
Values: on, off / Default: off
.br
Always save images even if there was no motion., Always save images even if there was no motion.
.TP
.B event_gap %CALC{"$LOWER(Integer)"}%
Values: 0 - 2147483647 / Default: 60
.br
event_gap is the seconds of no motion detection that triggers the end of an event. An event is defined as a series of motion images taken within a short time-frame., event_gap is the seconds of no motion detection that triggers the end of an event. An event is defined as a series of motion images taken within a short time-frame.
.TP
.B exif_text %CALC{"$LOWER(String)"}%
Values: Max 4095 characters / Default: Empty string
.br
Use this option to specify the text to include in a JPEG EXIF comment The EXIF timestamp is included independent of this text. , Use this option to specify the text to include in a JPEG EXIF comment The EXIF timestamp is included independent of this text. 
.TP
.B ffmpeg_bps %CALC{"$LOWER(Integer)"}%
Values: 0 - 9999999 / Default: 400000
.br
Bitrate of mpegs produced by ffmpeg. Bitrate is bits per second. Default: 400000 (400kbps). Higher value mans better quality and larger files. Option requires that ffmpeg libraries are installed., Bitrate of mpegs produced by ffmpeg. Bitrate is bits per second. Default: 400000 (400kbps). Higher value mans better quality and larger files. Option requires that ffmpeg libraries are installed.
.TP
.B ffmpeg_duplicate_frames %CALC{"$LOWER(Boolean)"}%
Values: on, off / Default: on
.br
When creating videos, this feature will duplicate frames in order to keep up with the requested frames per second., When creating videos, this feature will duplicate frames in order to keep up with the requested frames per second.
.TP
.B ffmpeg_output_debug_movies %CALC{"$LOWER(Boolean)"}%
Values: on, off / Default: off
.br
Use ffmpeg libraries to encode motion type mpeg movies where you only see the pixels that changes., Use ffmpeg libraries to encode motion type mpeg movies where you only see the pixels that changes.
.TP
.B ffmpeg_output_movies %CALC{"$LOWER(Boolean)"}%
Values: on, off / Default: off
.br
Use ffmpeg libraries to encode mpeg movies in realtime., Use ffmpeg libraries to encode mpeg movies in realtime.
.TP
.B ffmpeg_timelapse %CALC{"$LOWER(Boolean)"}%
Values: 0 - 2147483647 / Default: 0 (disabled)
.br
Create a timelapse movie saving a picture frame at the interval in seconds set by this parameter. Set it to 0 if not used., Create a timelapse movie saving a picture frame at the interval in seconds set by this parameter. Set it to 0 if not used.
.TP
.B ffmpeg_timelapse_mode %CALC{"$LOWER(Discrete Strings)"}%
Values: hourly, daily, weekly-sunday, weekly-monday, monthly, manual / Default: daily
.br
The file rollover mode of the timelapse video., The file rollover mode of the timelapse video.
.TP
.B ffmpeg_variable_bitrate %CALC{"$LOWER(Integer)"}%
Values: 0, 2 - 31 / Default: 0 (disabled)
.br
Enables and defines variable bitrate for the ffmpeg encoder. ffmpeg_bps is ignored if variable bitrate is enabled. Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps, or the range 2 - 31 where 2 means best quality and 31 is worst., Enables and defines variable bitrate for the ffmpeg encoder. ffmpeg_bps is ignored if variable bitrate is enabled. Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps, or the range 2 - 31 where 2 means best quality and 31 is worst.
.TP
.B ffmpeg_video_codec %CALC{"$LOWER(Discrete Strings)"}%
Values: mpeg4, msmpeg4, swf, flv, ffv1, mov, ogg, mp4, mkv, hevc / Default: mpeg4
.br
Codec to be used by ffmpeg for the video compression. Timelapse will only work with the options mpeg4 or swf., Codec to be used by ffmpeg for the video compression. Timelapse will only work with the options mpeg4 or swf.
.TP
.B framerate %CALC{"$LOWER(Integer)"}%
Values: 2 - 100 / Default: 100 (no limit)
.br
Maximum number of frames to be captured from the camera per second., Maximum number of frames to be captured from the camera per second.
.TP
.B frequency %CALC{"$LOWER(Boolean)"}%
Values: 0 - 999999 / Default: 0 (Not set)
.br
The frequency to set the tuner to (kHz). Valid range: per tuner spec, default: 0 (Don't set it), The frequency to set the tuner to (kHz). Valid range: per tuner spec, default: 0 (Don't set it)
.TP
.B height  %CALC{"$LOWER(Integer)"}%
Values: Device Dependent / Default: 288
.br
The height of each frame in pixels., The height of each frame in pixels.
.TP
.B hue %CALC{"$LOWER(Integer)"}%
Values: 0 - 255 / Default: 0 (disabled)
.br
The hue level for the video device., The hue level for the video device.
.TP
.B input  %CALC{"$LOWER(Integer)"}%
Values: -1, 0, 1, 2, 3.... / Default: -1 (disabled)
.br
Input channel to use expressed as an integer number starting from 0. Should normally be set to 0 or 1 for video/TV cards, and -1 (disabled) for USB and network cameras., Input channel to use expressed as an integer number starting from 0. Should normally be set to 0 or 1 for video/TV cards, and -1 (disabled) for USB and network cameras.
.TP
.B ipv6_enabled %CALC{"$LOWER(Boolean)"}%
Values: on, off / Default: off
.br
Enable or disable IPV6 for http control and stream, Enable or disable IPV6 for http control and stream
.TP
.B lightswitch  %CALC{"$LOWER(Integer)"}%
Values: 0 - 100 / Default: 0 (disabled)
.br
Ignore sudden massive light intensity changes given as a percentage of the picture area that changed intensity., Ignore sudden massive light intensity changes given as a percentage of the picture area that changed intensity.
.TP
.B locate_motion_mode %CALC{"$LOWER(Boolean)"}%
Values: on, off, preview / Default: off
.br
Locate and draw a box around the moving object. Value 'preview' makes Motion only draw a box on a saved preview jpeg image and not on the saved mpeg movie. , Locate and draw a box around the moving object. Value 'preview' makes Motion only draw a box on a saved preview jpeg image and not on the saved mpeg movie. 
.TP
.B locate_motion_style %CALC{"$LOWER(Discrete Strings)"}%
Values: box, redbox, cross, redcross / Default: box
.br
Set the look and style of the locate box if enabled., Set the look and style of the locate box if enabled.
.TP
.B log_level %CALC{"$LOWER(Integer)"}%
Values: 1-9 / Default: 6
.br
This option specifies the level of verbosity of the messages sent from Motion. At a level of 8(DBG), there are a LOT of messages. At a level of 1(EMR) virtually no messages will be output.

The various levels are [1..9] (EMR, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL)., This option specifies the level of verbosity of the messages sent from Motion. At a level of 8(DBG), there are a LOT of messages. At a level of 1(EMR) virtually no messages will be output.

The various levels are [1..9] (EMR, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). .TP .B log_type %CALC{"$LOWER(Discrete Strings)"}% Values: COR, STR, ENC, NET, DBL, EVT, TRK, VID, ALL / Default: ALL .br The different components of Motion use different log types. This option allows the user to only show the messages from particular components., The different components of Motion use different log types. This option allows the user to only show the messages from particular components. .TP .B logfile %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Use this option to specify the full path and filename to use for logging of the messages generated from Motion. If this option is not defined, the stderr and syslog is used. Note that Motion can generate a LOT of messages and as a result, this option should be considered if the log_level is at any of the higher levels., Use this option to specify the full path and filename to use for logging of the messages generated from Motion. If this option is not defined, the stderr and syslog is used. Note that Motion can generate a LOT of messages and as a result, this option should be considered if the log_level is at any of the higher levels. .TP .B mask_file %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br PGM file to use as a sensitivity mask. This picture MUST have the same width and height as the frames being captured and be in binary format. , PGM file to use as a sensitivity mask. This picture MUST have the same width and height as the frames being captured and be in binary format. .TP .B max_movie_time %CALC{"$LOWER(Integer)"}% Values: 0 (infinite) - 2147483647 / Default: 3600 .br The maximum length of an mpeg movie in seconds. Set this to zero for unlimited length., The maximum length of an mpeg movie in seconds. Set this to zero for unlimited length. .TP .B minimum_frame_time %CALC{"$LOWER(Integer)"}% Values: 0 - 2147483647 / Default: 0 .br Minimum time in seconds between the capturing picture frames from the camera. Default: 0 = disabled - the capture rate is given by the camera framerate., Minimum time in seconds between the capturing picture frames from the camera. Default: 0 = disabled - the capture rate is given by the camera framerate. .TP .B minimum_motion_frames %CALC{"$LOWER(Boolean)"}% Values: 1 - 1000s / Default: 1 .br Picture frames must contain motion at least the specified number of frames in a row before they are detected as true motion. At the default of 1, all motion is detected. Valid range is 1 to thousands, but it is recommended to keep it within 1-5., Picture frames must contain motion at least the specified number of frames in a row before they are detected as true motion. At the default of 1, all motion is detected. Valid range is 1 to thousands, but it is recommended to keep it within 1-5. .TP .B motion_video_pipe %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br The video4linux video loopback input device for motion images. If a particular pipe is to be used then use the device filename of this pipe, if a dash '-' is given motion will use /proc/video/vloopback/vloopbacks to locate a free pipe. Default: not set, The video4linux video loopback input device for motion images. If a particular pipe is to be used then use the device filename of this pipe, if a dash '-' is given motion will use /proc/video/vloopback/vloopbacks to locate a free pipe. Default: not set .TP .B movie_filename %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: %v-%Y%m%d%H%M%S .br File path for motion triggered ffmpeg movies (mpeg) relative to target_dir. This was previously called ffmpeg_filename., File path for motion triggered ffmpeg movies (mpeg) relative to target_dir. This was previously called ffmpeg_filename. .TP .B netcam_keepalive %CALC{"$LOWER(Discrete Strings)"}% Values: off, on, force / Default: off .br The setting for keep-alive of network socket, should improve performance on compatible net cameras.
, The setting for keep-alive of network socket, should improve performance on compatible net cameras.
.TP .B netcam_proxy %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br URL to use for a netcam proxy server, if required. The syntax is http://myproxy:portnumber, URL to use for a netcam proxy server, if required. The syntax is http://myproxy:portnumber .TP .B netcam_tolerant_check %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Set less strict jpeg checks for network cameras with a poor/buggy firmware., Set less strict jpeg checks for network cameras with a poor/buggy firmware. .TP .B netcam_url %CALC{"$LOWER(String)"}% Values: Max 4095 characters written as URL / Default: Not defined .br URL to use if you are using a network camera (incl http:// ftp:// mjpg:// rtsp:// mjpeg:// or file:///). Size will be autodetected
Must be a URL that returns single jpeg pictures or a raw mjpeg stream. A trailing slash may be required for some cameras., URL to use if you are using a network camera (incl http:// ftp:// mjpg:// rtsp:// mjpeg:// or file:///). Size will be autodetected
Must be a URL that returns single jpeg pictures or a raw mjpeg stream. A trailing slash may be required for some cameras. .TP .B netcam_userpass %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br The Username and password for the network camera. For http protocols, this option is for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication. To use no authentication simply remove this option. Note that only basic authentication is supported for connection to netwwork cameras. Digest authentication is not currently available , The Username and password for the network camera. For http protocols, this option is for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication. To use no authentication simply remove this option. Note that only basic authentication is supported for connection to netwwork cameras. Digest authentication is not currently available .TP .B noise_level %CALC{"$LOWER(Integer)"}% Values: 1 - 255 / Default: 32 .br The noise level is used as a threshold for distinguishing between noise and motion., The noise level is used as a threshold for distinguishing between noise and motion. .TP .B noise_tune %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br Activates the automatic tuning of noise level., Activates the automatic tuning of noise level. .TP .B norm %CALC{"$LOWER(Discrete Strings)"}% Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour) / Default: 0 (PAL) .br Select the norm of the video device. Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL), Select the norm of the video device. Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL) .TP .B on_area_detected %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when motion in a predefined area is detected. Check option area_detect., Command to be executed when motion in a predefined area is detected. Check option area_detect. .TP .B on_camera_lost %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when a camera can't be opened or if it is lost. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command. (new in 3.2.10), Command to be executed when a camera can't be opened or if it is lost. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command. (new in 3.2.10) .TP .B on_event_end %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when an event ends after a period of no motion. The period of no motion is defined by option gap. You can use [[Conversion Specifiers]] and spaces as part of the command., Command to be executed when an event ends after a period of no motion. The period of no motion is defined by option gap. You can use [[Conversion Specifiers]] and spaces as part of the command. .TP .B on_event_start %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when an event starts. An event starts at first motion detected after a period of no motion defined by gap. You can use ConversionSpecifiers and spaces as part of the command., Command to be executed when an event starts. An event starts at first motion detected after a period of no motion defined by gap. You can use ConversionSpecifiers and spaces as part of the command. .TP .B on_motion_detected %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when a motion frame is detected. You can use [[Conversion Specifiers]] and spaces as part of the command., Command to be executed when a motion frame is detected. You can use [[Conversion Specifiers]] and spaces as part of the command. .TP .B on_movie_end %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when an ffmpeg movie is closed at the end of an event. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command., Command to be executed when an ffmpeg movie is closed at the end of an event. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command. .TP .B on_movie_start %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when an mpeg movie is created. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command., Command to be executed when an mpeg movie is created. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command. .TP .B on_picture_save %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Command to be executed when an image is saved. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command., Command to be executed when an image is saved. You can use [[Conversion Specifiers]] and spaces as part of the command. Use %f for passing filename (with full path) to the command. .TP .B output_debug_pictures %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Output pictures with only the moving object. This feature generates the special motion type movies where you only see the pixels that changes as a graytone image. If labelling is enabled you see the largest area in blue.

If a Smartmask is specified, it is shown in red., Output pictures with only the moving object. This feature generates the special motion type movies where you only see the pixels that changes as a graytone image. If labelling is enabled you see the largest area in blue.

If a Smartmask is specified, it is shown in red. .TP .B output_pictures %CALC{"$LOWER(Discrete Strings)"}% Values: on, off, first, best, center / Default: on .br Normal image is an image that is stored when motion is detected. It is the same image that was taken by the camera. I.e. not a motion image like defined by output_motion. Default is that normal images are stored., Normal image is an image that is stored when motion is detected. It is the same image that was taken by the camera. I.e. not a motion image like defined by output_motion. Default is that normal images are stored. .TP .B picture_filename %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: %v-%Y%m%d%H%M%S-%q .br File path for motion triggered images (jpeg or ppm) relative to target_dir. Value 'preview' makes a jpeg filename with the same name body as the associated saved mpeg movie file., File path for motion triggered images (jpeg or ppm) relative to target_dir. Value 'preview' makes a jpeg filename with the same name body as the associated saved mpeg movie file. .TP .B picture_type %CALC{"$LOWER(Discrete Strings)"}% Values: jpeg, ppm / Default: jpeg .br This option specifies the type of picture file to output., This option specifies the type of picture file to output. .TP .B post_capture %CALC{"$LOWER(Integer)"}% Values: 0 - 2147483647 / Default: 0 (disabled) .br Specifies the number of frames to be captured after motion has been detected., Specifies the number of frames to be captured after motion has been detected. .TP .B power_line_frequency %CALC{"$LOWER(Discrete Strings)"}% Values: -1, 0, 1, 2, 3 / Default: -1 .br This option allows the user to specify the power line frequency that is applicable to the user. This option can help stabilize the images of some webcams that are sensitive to this frequency. This is not normally necessary., This option allows the user to specify the power line frequency that is applicable to the user. This option can help stabilize the images of some webcams that are sensitive to this frequency. This is not normally necessary. .TP .B pre_capture %CALC{"$LOWER(Integer)"}% Values: 0 - 100s / Default: 0 (disabled) .br Specifies the number of previous frames to be outputted at motion detection. Recommended range: 0 to 5, default=0. Do not use large values! Large values will cause Motion to skip video frames and cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead., Specifies the number of previous frames to be outputted at motion detection. Recommended range: 0 to 5, default=0. Do not use large values! Large values will cause Motion to skip video frames and cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead. .TP .B process_id_file %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br File to store the process ID, also called pid file. Recommended value when used: /var/run/motion.pid, File to store the process ID, also called pid file. Recommended value when used: /var/run/motion.pid .TP .B quality %CALC{"$LOWER(Integer)"}% Values: 1 - 100 / Default: 75 .br The quality for the jpeg images in percent., The quality for the jpeg images in percent. .TP .B quiet %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Be quiet, don't output beeps when detecting motion., Be quiet, don't output beeps when detecting motion. .TP .B rotate %CALC{"$LOWER(Discrete Strings)"}% Values: 0, 90, 180, 270 / Default: 0 (not rotated) .br Rotate image the given number of degrees. The rotation affects all saved images as well as mpeg movies., Rotate image the given number of degrees. The rotation affects all saved images as well as mpeg movies. .TP .B roundrobin_frames %CALC{"$LOWER(Integer)"}% Values: 1 - 2147483647 / Default: 1 .br Specifies the number of frames to capture before switching inputs, this way also slow switching (e.g. every second) is possible., Specifies the number of frames to capture before switching inputs, this way also slow switching (e.g. every second) is possible. .TP .B roundrobin_skip %CALC{"$LOWER(Integer)"}% Values: 1 - 2147483647 / Default: 1 .br Specifies the number of frames to skip after a switch. (1 if you are feeling lucky, 2 if you want to be safe)., Specifies the number of frames to skip after a switch. (1 if you are feeling lucky, 2 if you want to be safe). .TP .B rtsp_uses_tcp %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br This option specifies the transport method for rtsp cameras. The TCP transport is highly preferred because without this option the rtsp images are frequently corrupted and result in many false positive values and images that appear to be smeared. Off indicates that UDP will be used., This option specifies the transport method for rtsp cameras. The TCP transport is highly preferred because without this option the rtsp images are frequently corrupted and result in many false positive values and images that appear to be smeared. Off indicates that UDP will be used. .TP .B saturation %CALC{"$LOWER(Integer)"}% Values: 0 - 255 / Default: 0 (disabled) .br The colour saturation level for the video device., The colour saturation level for the video device. .TP .B sdl_threadnr %CALC{"$LOWER(Integer)"}% Values: 1-65535 / Default: Not defined .br The SDL option is optional and unusual. When SDL is included in the building of Motion, there is the ability for Motion to create a SDL preview window for the user. The author believes this option to be more of a proof of concept on how to create a SDL window and show the image. (This same functionality can be achieved via the stream options) To activate the SDL window, include SDL support in the building of the Motion application. Start Motion and note the thread number indicated. Once that is noted, specify that thread number (or 1 more than that number) for this option. When Motion is started again, it will then create a SDL window to preview the image. To close the window, press X. Author is not aware of any method to restart the SDL window after it has been closed. , The SDL option is optional and unusual. When SDL is included in the building of Motion, there is the ability for Motion to create a SDL preview window for the user. The author believes this option to be more of a proof of concept on how to create a SDL window and show the image. (This same functionality can be achieved via the stream options) To activate the SDL window, include SDL support in the building of the Motion application. Start Motion and note the thread number indicated. Once that is noted, specify that thread number (or 1 more than that number) for this option. When Motion is started again, it will then create a SDL window to preview the image. To close the window, press X. Author is not aware of any method to restart the SDL window after it has been closed. .TP .B setup_mode %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Run Motion in setup mode. , Run Motion in setup mode. .TP .B smart_mask_speed %CALC{"$LOWER(Integer)"}% Values: 0 - 10 / Default: 0 (disabled) .br Slugginess of the smart mask. Default is 0 = DISABLED. 1 is slow, 10 is fast., Slugginess of the smart mask. Default is 0 = DISABLED. 1 is slow, 10 is fast. .TP .B snapshot_filename %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: %v-%Y%m%d%H%M%S-snapshot .br File path for snapshots (jpeg or ppm) relative to target_dir., File path for snapshots (jpeg or ppm) relative to target_dir. .TP .B snapshot_interval %CALC{"$LOWER(Integer)"}% Values: 0 - 2147483647 / Default: 0 (disabled) .br Make automated snapshots every 'snapshot_interval' seconds., Make automated snapshots every 'snapshot_interval' seconds. .TP .B sql_log_movie %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Log to the database when creating motion triggered mpeg file., Log to the database when creating motion triggered mpeg file. .TP .B sql_log_picture %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br Log to the database when creating motion triggered image file., Log to the database when creating motion triggered image file. .TP .B sql_log_snapshot %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br Log to the database when creating a snapshot image file., Log to the database when creating a snapshot image file. .TP .B sql_log_timelapse %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Log to the database when creating timelapse mpeg file, Log to the database when creating timelapse mpeg file .TP .B sql_query %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C') .br SQL query string that is sent to the database. The values for each field are given by using [[ConversionSpecifiers][convertion specifiers]], SQL query string that is sent to the database. The values for each field are given by using [[ConversionSpecifiers][convertion specifiers]] .TP .B stream_auth_method %CALC{"$LOWER(Discrete Strings)"}% Values: 0, 1, 2 / Default: 0 .br This parameter establishes desired authentication method for the stream and web control ports. Disabled (0), Basic (1), MD5 Digest (2), This parameter establishes desired authentication method for the stream and web control ports. Disabled (0), Basic (1), MD5 Digest (2) .TP .B stream_authentication %CALC{"$LOWER(String)"}% Values: username:password / Default: Not defined .br This parameter establishes the username and password to use for the stream. The syntax is username:password .TP .B stream_limit %CALC{"$LOWER(Integer)"}% Values: 0 - 2147483647 / Default: 0 (unlimited) .br Limit the number of frames to number frames. After 'stream_limit' number of frames the connection will be closed by motion. The value 0 means unlimited., Limit the number of frames to number frames. After 'stream_limit' number of frames the connection will be closed by motion. The value 0 means unlimited. .TP .B stream_localhost %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br Limits the access to the webcam to the localhost., Limits the access to the webcam to the localhost. .TP .B stream_maxrate %CALC{"$LOWER(Integer)"}% Values: 1 - 100 / Default: 1 .br Limit the framerate of the webcam in frames per second. Default is 1. Set the value to 100 for practically unlimited., Limit the framerate of the webcam in frames per second. Default is 1. Set the value to 100 for practically unlimited. .TP .B stream_motion %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br If set to 'on' Motion sends slows down the webcam stream to 1 picture per second when no motion is detected. When motion is detected the stream runs as defined by stream_maxrate. When 'off' the webcam stream always runs as defined by stream_maxrate., If set to 'on' Motion sends slows down the webcam stream to 1 picture per second when no motion is detected. When motion is detected the stream runs as defined by stream_maxrate. When 'off' the webcam stream always runs as defined by stream_maxrate. .TP .B stream_port %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 0 (disabled) .br TCP port on which motion will listen for incoming connects with its webcam server., TCP port on which motion will listen for incoming connects with its webcam server. .TP .B stream_preview_newline %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br If the webcontrol page has HTML enabled, Motion displays all of the streams on the home webcontrol page in HTML format so that all the images can be viewed by standard browsers. This parameter determines whether the image is placed on a new line in the webcontrol web page. , If the webcontrol page has HTML enabled, Motion displays all of the streams on the home webcontrol page in HTML format so that all the images can be viewed by standard browsers. This parameter determines whether the image is placed on a new line in the webcontrol web page. .TP .B stream_preview_scale %CALC{"$LOWER(Integer)"}% Values: 1-65535 / Default: 25 .br If the webcontrol page has HTML enabled, Motion displays all of the streams on the home webcontrol page in HTML format so that all the images can be viewed by standard browsers. This parameter indicates the percentage to scale the stream image when it is placed on the page. Numbers greater than 100 are permitted., If the webcontrol page has HTML enabled, Motion displays all of the streams on the home webcontrol page in HTML format so that all the images can be viewed by standard browsers. This parameter indicates the percentage to scale the stream image when it is placed on the page. Numbers greater than 100 are permitted. .TP .B stream_quality %CALC{"$LOWER(Integer)"}% Values: 1 - 100 / Default: 50 .br Quality setting in percent for the mjpeg picture frames transferred over the webcam connection. Keep it low to restrict needed bandwidth., Quality setting in percent for the mjpeg picture frames transferred over the webcam connection. Keep it low to restrict needed bandwidth. .TP .B switchfilter %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Turns the switch filter on or off. The filter can distinguish between most switching noise and real motion. With this you can even set roundrobin_skip to 1 without generating much false detection., Turns the switch filter on or off. The filter can distinguish between most switching noise and real motion. With this you can even set roundrobin_skip to 1 without generating much false detection. .TP .B target_dir %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined = current working directory .br The full path for the target directory for picture and movie files to be saved., The full path for the target directory for picture and movie files to be saved. .TP .B text_changes %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Turns the text showing changed pixels on/off., Turns the text showing changed pixels on/off. .TP .B text_double %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Draw characters at twice normal size on images., Draw characters at twice normal size on images. .TP .B text_event %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: %Y%m%d%H%M%S .br This option defines the value of the speciel event conversion specifier %C. You can use any conversion specifier in this option except %C. Date and time values are from the timestamp of the first image in the current event., This option defines the value of the speciel event conversion specifier %C. You can use any conversion specifier in this option except %C. Date and time values are from the timestamp of the first image in the current event. .TP .B text_left %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br User defined text overlayed on each in the lower left corner. Use A-Z, a-z, 0-9, " / ( ) @ ~ # < > , . : - + _ \n and vertical bar and [[Conversion Specifiers][conversion specifiers]] (codes starting by a %)., User defined text overlayed on each in the lower left corner. Use A-Z, a-z, 0-9, " / ( ) @ ~ # < > , . : - + _ \n and vertical bar and [[Conversion Specifiers][conversion specifiers]] (codes starting by a %). .TP .B text_right %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: %Y-%m-%d\n%T .br User defined text overlayed on each in the lower right corner. Use A-Z, a-z, 0-9, " / ( ) @ ~ # < > , . : - + _ \n and vertical bar and [[Conversion Specifiers][conversion specifiers]] (codes starting by a %). Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock, User defined text overlayed on each in the lower right corner. Use A-Z, a-z, 0-9, " / ( ) @ ~ # < > , . : - + _ \n and vertical bar and [[Conversion Specifiers][conversion specifiers]] (codes starting by a %). Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock .TP .B thread %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br Specifies full path and filename for a thread config file. Each camera needs a thread config file containing the options that are unique to the camera. If you only have one camera you do not need thread config files. If you have two or more cameras you need one thread config file for each camera in addition to motion.conf. This option must be placed in motion.conf and not in a thread config file., Specifies full path and filename for a thread config file. Each camera needs a thread config file containing the options that are unique to the camera. If you only have one camera you do not need thread config files. If you have two or more cameras you need one thread config file for each camera in addition to motion.conf. This option must be placed in motion.conf and not in a thread config file. .TP .B threshold %CALC{"$LOWER(Integer)"}% Values: 1 - 2147483647 / Default: 1500 .br Threshold for declaring motion. The threshold is the number of changed pixels counted after noise filtering, masking, despeckle, and labelling., Threshold for declaring motion. The threshold is the number of changed pixels counted after noise filtering, masking, despeckle, and labelling. .TP .B threshold_tune %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Activates the automatic tuning of threshold level. ( It's broken ), Activates the automatic tuning of threshold level. ( It's broken ) .TP .B timelapse_filename %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: %v-%Y%m%d-timelapse .br File path for timelapse mpegs relative to target_dir (ffmpeg only)., File path for timelapse mpegs relative to target_dir (ffmpeg only). .TP .B track_auto %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: off .br Enable auto tracking, Enable auto tracking .TP .B track_iomojo_id %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 0 .br Use this option if you have an iomojo smilecam connected to the serial port instead of a general stepper motor controller., Use this option if you have an iomojo smilecam connected to the serial port instead of a general stepper motor controller. .TP .B track_maxx %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 0 .br The maximum position for servo x., The maximum position for servo x. .TP .B track_maxy %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 0 .br The maximum position for servo y., The maximum position for servo y. .TP .B track_motorx %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 0 .br The motor number that is used for controlling the x-axis., The motor number that is used for controlling the x-axis. .TP .B track_motory %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 0 .br The motor number that is used for controlling the y-axis., The motor number that is used for controlling the y-axis. .TP .B track_move_wait %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 10 .br Delay during which tracking is disabled after auto tracking has moved the camera. Delay is defined as number of picture frames., Delay during which tracking is disabled after auto tracking has moved the camera. Delay is defined as number of picture frames. .TP .B track_port %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br This is the device name of the serial port to which the stepper motor interface is connected., This is the device name of the serial port to which the stepper motor interface is connected. .TP .B track_speed %CALC{"$LOWER(Integer)"}% Values: 0 - 255 / Default: 255 .br Speed to set the motor to., Speed to set the motor to. .TP .B track_step_angle_x %CALC{"$LOWER(Integer)"}% Values: 0-90 / Default: 10 .br Angle in degrees the camera moves per step on the X-axis with auto tracking. Currently only used with pwc type cameras., Angle in degrees the camera moves per step on the X-axis with auto tracking. Currently only used with pwc type cameras. .TP .B track_step_angle_y %CALC{"$LOWER(Integer)"}% Values: 0-40 / Default: 10 .br Angle in degrees the camera moves per step on the Y-axis with auto tracking. Currently only used with pwc type cameras., Angle in degrees the camera moves per step on the Y-axis with auto tracking. Currently only used with pwc type cameras. .TP .B track_stepsize %CALC{"$LOWER(Integer)"}% Values: 0 - 255 / Default: 40 .br Number of steps to make., Number of steps to make. .TP .B track_type %CALC{"$LOWER(Discrete Strings)"}% Values: 0 (none), 1 (stepper), 2 (iomojo), 3 (pwc), 4 (generic), 5 (uvcvideo) / Default: 0 (None) .br Type of tracker., Type of tracker. .TP .B tunerdevice %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: /dev/tuner0 .br The tuner device used for controlling the tuner in a tuner card. This option is only used when Motion is compiled for FreeBSD., The tuner device used for controlling the tuner in a tuner card. This option is only used when Motion is compiled for FreeBSD. .TP .B v4l2_palette %CALC{"$LOWER(Integer)"}% Values: 0 - 17 / Default: 17 .br The v4l2_palette allows the user to choose preferable palette to be use by Motion. Note that this is only the preferred option. If the video device does not support the requested format, Motion will loop through the available palettes to try to find one that is supported by both Motion and the device. Motion will report the supported palettes of the device when Motion starts when the log_level is specified as NTC or higher. The default of 17 is highly preferred since this the native format that Motion uses internally. , The v4l2_palette allows the user to choose preferable palette to be use by Motion. Note that this is only the preferred option. If the video device does not support the requested format, Motion will loop through the available palettes to try to find one that is supported by both Motion and the device. Motion will report the supported palettes of the device when Motion starts when the log_level is specified as NTC or higher. The default of 17 is highly preferred since this the native format that Motion uses internally. .TP .B video_pipe %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: Not defined .br The video4linux video loopback input device for normal images. If a particular pipe is to be used then use the device filename of this pipe. If a dash '-' is given motion will use /proc/video/vloopback/vloopbacks to locate a free pipe., The video4linux video loopback input device for normal images. If a particular pipe is to be used then use the device filename of this pipe. If a dash '-' is given motion will use /proc/video/vloopback/vloopbacks to locate a free pipe. .TP .B videodevice %CALC{"$LOWER(String)"}% Values: Max 4095 characters / Default: /dev/video0 (FreeBSD: /dev/bktr0) .br The video device to be used for capturing. Default for Linux is /dev/video0. for FreeBSD the default is /dev/bktr0., The video device to be used for capturing. Default for Linux is /dev/video0. for FreeBSD the default is /dev/bktr0. .TP .B webcontrol_authentication %CALC{"$LOWER(String)"}% Values: Max 4096 characters / Default: Not defined .br To protect HTTP Control by username and password, use this option for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication. This option must be placed in motion.conf and not in a thread config file., To protect HTTP Control by username and password, use this option for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication. This option must be placed in motion.conf and not in a thread config file. .TP .B webcontrol_html_output %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br Enable HTML in the answer sent back to a browser connecting to the control_port. This option must be placed in motion.conf and not in a thread config file., Enable HTML in the answer sent back to a browser connecting to the control_port. This option must be placed in motion.conf and not in a thread config file. .TP .B webcontrol_localhost %CALC{"$LOWER(Boolean)"}% Values: on, off / Default: on .br Limits the http (html) control to the localhost. This option must be placed in motion.conf and not in a thread config file., Limits the http (html) control to the localhost. This option must be placed in motion.conf and not in a thread config file. .TP .B webcontrol_port %CALC{"$LOWER(Integer)"}% Values: 0 - 65535 / Default: 0 (disabled) .br Sets the port number for the http (html using browser) based remote control. This option must be placed in motion.conf and not in a thread config file., Sets the port number for the http (html using browser) based remote control. This option must be placed in motion.conf and not in a thread config file. .TP .B width %CALC{"$LOWER(Integer)"}% Values: Device Dependent / Default: 352 .br The width in pixels of each frame. Valid range is camera dependent., The width in pixels of each frame. Valid range is camera dependent. .SH SIGNALS Motion responds to the following signals: .TP .B SIGHUP The config file will be reread. .TP .B SIGTERM If needed motion will create an mpeg file of the last event and exit .TP .B SIGUSR1 Motion will create an mpeg file of the current event. .SH NOTES .TP .B Snapshot A snapshot is a picture taken at regular intervals independently of any movement in the picture. .TP .B Motion image A "motion" image/mpeg shows the pixels that have actually changed during the last frames. These pictures are not very useful for normal presentation to the public but they are quite useful for testing and tuning and making mask files as you can see exactly where motion sees something moving. Motion is shown in greytones. If labelling is enabled the largest area is marked as blue. Smart mask is shown in read. .TP .B Normal image A "normal" image is the real image taken by the camera with text overlayed. .TP .B Threads and config files If Motion was invoked with command line option -c pathname Motion will expect the config file to be as specified. When you specify the config file on the command line with -c you can call it anything. .br If you do not specify -c or the filename you give Motion does not exist, Motion will search for the configuration file called 'motion.conf' in the following order: .br 1. Current directory from where motion was invoked .br 2. Then in a directory called '.motion' in the current users home directory (shell environment variable $HOME). E.g. /home/goofy/.motion/motion.conf .br 3. The directory defined by the --sysconfdir=DIR when running .configure during installation of Motion (If this option was not defined the default is /usr/local/etc/) .br If you have write access to /usr/local/etc then the editor recommends having only one motion.conf file in the default /usr/local/etc/ directory. .br Motion has a configuration file in the distribution package called motion-dist.conf. When you run 'make install' this files gets copied to the /usr/local/etc directory. .br The configuration file needs to be renamed from motion-dist.conf to motion.conf. The original file is called motion-dist.conf so that your perfectly working motion.conf file does not accidentally get overwritten when you re-install or upgrade to a newer version of Motion. .br If you have more than one camera you should not try and invoke Motion more times. Motion is made to work with more than one camera in a very elegant way and the way to do it is to create a number of thread config files. Motion will then create an extra tread of itself for each camera. If you only have one camera you only need the motion.conf file. The minute you have two or more cameras you must have one thread config file per camera besides the motion.conf file. .br So if you have for example two cameras you need motion.conf and two thread config files. Total of 3 config files. .br An option that is common to all cameras can be placed in motion.conf. (You can also put all parameters in the thread files but that makes a lot of editing when you change a common thing). .br An option that is unique to a camera must be defined in each thread file. .br The first camera is defined in the first thread file called from motion.conf. The 2nd camera is defined in the 2nd thread file called from motion.conf etc. .br Any option defined in motion.conf will be used for all cameras except for the cameras in which the same option is defined in a thread config file. .br Motion reads its configuration parameters in the following sequence. If the same parameter exists more than one place the last one read wins. .br 1. Motion reads the configuration file motion.conf from the beginning of the file going down line by line. .br 2. If the option "thread" is defined in motion.conf, the thread configuration file(s) is/(are) read. .br 3. Motion continues reading the rest of the motion.conf file. Any options from here will overrule the same option previously defines in a thread config file. .br 4. Motion reads the command line option again overruling any previously defined options. .br So always call the thread config files in the end of the motion.conf file. If you define options in motion.conf AFTER the thread file calls, the same options in the thread files will never be used. So always put the thread file call at the end of motion.conf. .br If motion is built without specific features such as ffmpeg, mysql etc it will ignore the options that belongs to these features. You do not have to remove them or comment them out. .br If you run the http control command http://host:port/0/config/writeyes, motion will overwrite motion.conf and all the thread.conf files by autogenerated config files neatly formatted and only with the features included that Motion was built with. If you later re-build Motion with more features or upgrade to a new version, you can use your old config files, run the motion.conf.write command, and you will have new config files with the new options included all set to their default values. This makes upgrading very easy to do. .TP .B Conversion Specifiers for Advanced Filename and Text Features The table below shows all the supported Conversion Specifiers you can use in the options text_left, text_right, snapshot_filename, jpeg_filename, ffmpeg_filename, timelapse_filename, on_area_detected, on_camera_lost, on_event_start, on_event_end, on_picture_save, on_movie_start, on_movie_end, and on_motion_detected. .br In text_left and text_right you can additionally use '\n' for new line. .TP .B %a The abbreviated weekday name according to the current locale. .TP .B %A The full weekday name according to the current locale. .TP .B %b The abbreviated month name according to the current locale. .TP .B %B The full month name according to the current locale. .TP .B %c The preferred date and time representation for the current locale. .TP .B %C Text defined by the [[ConfigOptionTextEvent][text_event]] feature .TP .B %d The day of the month as a decimal number (range 01 to 31). .TP .B %D Number of pixels detected as Motion. If labelling is enabled the number is the number of pixels in the largest labelled motion area. .TP .B %E Modifier: use alternative format, see below. .TP .B %f File name - used in the [[ConfigOptionOnPictureSave][on_picture_save]], [[ConfigOptionOnMovieStart][on_movie_start]], [[ConfigOptionOnMovieEnd][on_movie_end]], and [[ConfigOptionSqlQuery][sql_query]] features. .TP .B %F Equivalent to %Y-%m-%d (the ISO 8601 date format). .TP .B %H The hour as a decimal number using a 24-hour clock (range 00 to 23). .TP .B %i Width of the rectangle containing the motion pixels (the rectangle that is shown on the image when [[ConfigOptionLocate][locate]] is on). .TP .B %I The hour as a decimal number using a 12-hour clock (range 01 to 12). .TP .B %j The day of the year as a decimal number (range 001 to 366). .TP .B %J Height of the rectangle containing the motion pixels (the rectangle that is shown on the image when [[ConfigOptionLocate][locate]] is on). .TP .B %k The hour (24-hour clock) as a decimal number (range 0 to 23); single digits are preceded by a blank. (See also %H.) .TP .B %K X coordinate in pixels of the center point of motion. Origin is upper left corner. .TP .B %l The hour (12-hour clock) as a decimal number (range 1 to 12); single digits are preceded by a blank. (See also %I.) .TP .B %L Y coordinate in pixels of the center point of motion. Origin is upper left corner and number is positive moving downwards (I may change this soon). .TP .B %m The month as a decimal number (range 01 to 12). .TP .B %M The minute as a decimal number (range 00 to 59). .TP .B %n Filetype as used in the [[ConfigOptionOnPictureSave][on_picture_save]], [[ConfigOptionOnMovieStart][on_movie_start]], [[ConfigOptionOnMovieEnd][on_movie_end]], and [[ConfigOptionSqlQuery][sql_query]] features. .TP .B %N Noise level. .TP .B %o Threshold. The number of detected pixels required to trigger motion. When [[ConfigOptionThresholdTune][threshold_tune]] is 'on' this can be used to show the current tuned value of threshold. .TP .B %p Either 'AM' or 'PM' according to the given time value, or the corresponding strings for the current locale. Noon is treated as `pm' and midnight as `am'. .TP .B %P Like %p but in lowercase: `am' or `pm' or a corresponding string for the current locale. .TP .B %q Picture frame number within current second. For jpeg filenames this should always be included in the filename if you save more then 1 picture per second to ensure unique filenames. It is not needed in filenames for mpegs. .TP .B %Q Number of detected labels found by the despeckle feature .TP .B %r The time in a.m. or p.m. notation. .TP .B %R The time in 24-hour notation (%H:%M). .TP .B %s The number of seconds since the Epoch, i.e., since 1970-01-01 00:00:00 UTC. .TP .B %S The second as a decimal number (range 00 to 61). .TP .B %t Thread number (camera number) .TP .B %T The time in 24-hour notation (%H:%M:%S). .TP .B %u The day of the week as a decimal, range 1 to 7, Monday being 1. See also %w. .TP .B %U The week number of the current year as a decimal number, range 00 to 53, starting with the first Sunday as the first day of week 01. See also %V and %W. .TP .B %v Event number. An event is a series of motion detections happening with less than 'gap' seconds between them. .TP .B %V The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week. See also %U and %W. .TP .B %w The day of the week as a decimal, range 0 to 6, Sunday being 0. See also %u. .TP .B %W The week number of the current year as a decimal number, range 00 to 53, starting with the first Monday as the first day of week 01. .TP .B %x The preferred date representation for the current locale without the time. .TP .B %X The preferred time representation for the current locale without the date. .TP .B %y The year as a decimal number without a century (range 00 to 99). .TP .B %Y The year as a decimal number including the century. .TP .B %z The time-zone as hour offset from GMT. .TP .B %Z The time zone or name or abbreviation. .TP .B More information Motion homepage: http://motion.sourceforge.net/ Motion Guide (user and installation guide): .br http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuide .br http://www.lavrsen.dk/twiki/bin/view/Motion/VideoFourLinuxLoopbackDevice .SH AUTHORS Jeroen Vreeken (pe1rxq@amsat.org), Folkert van Heusden, Kenneth Lavrsen (kenneth@lavrsen.dk)
I Attachment Action Size Date Who Comment
motion.11 motion.1 manage 32 K 18 Jan 2011 - 12:20 KennethLavrsen Generated by <nop>AttachContentPlugin
Topic revision: r25 - 18 Jan 2011, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.