📄 motion.1
字号:
.B on_movie_end 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.
.TP
.B on_movie_start 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.
.TP
.B on_picture_save 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.
.TP
.B output_all boolean
Values: on, off / Default: off
.br
Picture are saved continuously as if motion was detected all the time.
.TP
.B output_motion 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. Smartmask is shown in red.
.TP
.B output_normal discrete strings
Values: on, off, first, best / 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.
.TP
.B pgsql_db string
Values: Max 4095 characters / Default: Not defined
.br
Name of the PostgreSQL database.
.TP
.B pgsql_host string
Values: Max 4095 characters / Default: Not defined
.br
IP address or domain name for the PostgreSQL server. Use "localhost" if motion and PostgreSQL runs on the same server.
.TP
.B pgsql_password string
Values: Max 4095 characters / Default: Not defined
.br
The PostgreSQL password.
.TP
.B pgsql_port integer
Values: 0 - 65535 / Default: 5432
.br
The PostgreSQL server port number.
.TP
.B pgsql_user string
Values: Max 4095 characters / Default: Not defined
.br
The PostgreSQL user name.
.TP
.B post_capture integer
Values: 0 - 2147483647 / Default: 0 (disabled)
.br
Specifies the number of frames to be captured after motion has been detected.
.TP
.B ppm boolean
Values: on, off / Default: off
.br
Output ppm images instead of jpeg. This uses less CPU time, but causes a LOT of hard disk I/O, and it is generally slower than jpeg.
.TP
.B pre_capture 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.
.TP
.B process_id_file 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
.TP
.B quality integer
Values: 1 - 100 / Default: 75
.br
The quality for the jpeg images in percent.
.TP
.B quiet boolean
Values: on, off / Default: off
.br
Be quiet, don't output beeps when detecting motion.
.TP
.B rotate 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.
.TP
.B roundrobin_frames 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.
.TP
.B roundrobin_skip 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).
.TP
.B saturation integer
Values: 0 - 255 / Default: 0 (disabled)
.br
The colour saturation level for the video device.
.TP
.B setup_mode boolean
Values: on, off / Default: off
.br
Run Motion in setup mode.
.TP
.B smart_mask_speed integer
Values: 0 - 10 / Default: 0 (disabled)
.br
Slugginess of the smart mask. Default is 0 = DISABLED. 1 is slow, 10 is fast.
.TP
.B snapshot_filename 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.
.TP
.B snapshot_interval integer
Values: 0 - 2147483647 / Default: 0 (disabled)
.br
Make automated snapshots every 'snapshot_interval' seconds.
.TP
.B sql_log_image boolean
Values: on, off / Default: on
.br
Log to the database when creating motion triggered image file.
.TP
.B sql_log_mpeg boolean
Values: on, off / Default: off
.br
Log to the database when creating motion triggered mpeg file.
.TP
.B sql_log_snapshot boolean
Values: on, off / Default: on
.br
Log to the database when creating a snapshot image file.
.TP
.B sql_log_timelapse boolean
Values: on, off / Default: off
.br
Log to the database when creating timelapse mpeg file
.TP
.B sql_query 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 convertion specifiers
.TP
.B switchfilter 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.
.TP
.B target_dir string
Values: Max 4095 characters / Default: Not defined = current working directory
.br
Target directory for picture and movie files.
.TP
.B text_changes boolean
Values: on, off / Default: off
.br
Turns the text showing changed pixels on/off.
.TP
.B text_double boolean
Values: on, off / Default: off
.br
Draw characters at twice normal size on images.
.TP
.B text_event 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.
.TP
.B text_left 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 conversion specifiers (codes starting by a %).
.TP
.B text_right 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 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 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.
.TP
.B threshold 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.
.TP
.B threshold_tune boolean
Values: on, off / Default: off
.br
Activates the automatic tuning of threshold level.
.TP
.B timelapse_filename string
Values: Max 4095 characters / Default: %v-%Y%m%d-timelapse
.br
File path for timelapse mpegs relative to target_dir (ffmpeg only).
.TP
.B track_auto boolean
Values: on, off / Default: off
.br
Enable auto tracking
.TP
.B track_iomojo_id integer
Values: 0 - 2147483647 / Default: 0
.br
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 integer
Values: 0 - 2147483647 / Default: 0
.br
The maximum position for servo x.
.TP
.B track_maxy integer
Values: 0 - 2147483647 / Default: 0
.br
The maximum position for servo y.
.TP
.B track_motorx integer
Values: -1 - 2147483647 / Default: -1
.br
The motor number that is used for controlling the x-axis.
.TP
.B track_motory integer
Values: -1 - 2147483647 / Default: -1
.br
The motor number that is used for controlling the y-axis.
.TP
.B track_move_wait integer
Values: 0 - 2147483647 / Default: 10
.br
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 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.
.TP
.B track_speed integer
Values: 0 - 255 / Default: 255
.br
Speed to set the motor to.
.TP
.B track_step_angle_x 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.
.TP
.B track_step_angle_y 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.
.TP
.B track_stepsize integer
Values: 0 - 255 / Default: 40
.br
Number of steps to make.
.TP
.B track_type discrete strings
Values: 0 (none), 1 (stepper), 2 (iomojo), 3 (pwc), 4 (generic) / Default: 0 (None)
.br
Type of tracker.
.TP
.B tunerdevice string
Values: Max 4095 characters / Default: /dev/tuner0
.br
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -