📄 motion-dist.conf
字号:
# 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.# Default: %Y%m%d%H%M%S# The idea is that %C can be used filenames and text_left/right for creating# a unique identifier for each event.text_event %Y%m%d%H%M%S# Draw characters at twice normal size on images. (default: off)text_double off############################################################# Target Directories and filenames For Images And Films# For the options snapshot_, jpeg_, mpeg_ and timelapse_filename# you can use conversion specifiers# %Y = year, %m = month, %d = date,# %H = hour, %M = minute, %S = second,# %v = event, %q = frame number, %t = thread (camera) number,# %D = changed pixels, %N = noise level,# %i and %J = width and height of motion area,# %K and %L = X and Y coordinates of motion center# %C = value defined by text_event# Quotation marks round string are allowed.############################################################# Target base directory for pictures and films# Recommended to use absolute path. (Default: current working directory)target_dir /usr/local/apache2/htdocs/cam1# File path for snapshots (jpeg or ppm) relative to target_dir# Default: %v-%Y%m%d%H%M%S-snapshot# Default value is equivalent to legacy oldlayout option# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot# File extension .jpg or .ppm is automatically added so do not include this.# Note: A symbolic link called lastsnap.jpg created in the target_dir will always# point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'snapshot_filename %v-%Y%m%d%H%M%S-snapshot# File path for motion triggered images (jpeg or ppm) relative to target_dir# Default: %v-%Y%m%d%H%M%S-%q# Default value is equivalent to legacy oldlayout option# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q# File extension .jpg or .ppm is automatically added so do not include this# Set to 'preview' together with best-preview feature enables special naming# convention for preview shots. See motion guide for detailsjpeg_filename %v-%Y%m%d%H%M%S-%q# File path for motion triggered ffmpeg films (mpeg) relative to target_dir# Default: %v-%Y%m%d%H%M%S# Default value is equivalent to legacy oldlayout option# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S# File extension .mpg or .avi is automatically added so do not include this# This option was previously called ffmpeg_filenamemovie_filename %v-%Y%m%d%H%M%S# File path for timelapse mpegs relative to target_dir# Default: %Y%m%d-timelapse# Default value is near equivalent to legacy oldlayout option# For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse# File extension .mpg is automatically added so do not include thistimelapse_filename %Y%m%d-timelapse############################################################# Live Webcam Server############################################################# The mini-http server listens to this port for requests (default: 0 = disabled)webcam_port 8081# Quality of the jpeg images produced (default: 50)webcam_quality 50# Output frames at 1 fps when no motion is detected and increase to the# rate given by webcam_maxrate when motion is detected (default: off)webcam_motion off# Maximum framerate for webcam streams (default: 1)webcam_maxrate 1# Restrict webcam connections to localhost only (default: on)webcam_localhost on# Limits the number of images per connection (default: 0 = unlimited)# Number can be defined by multiplying actual webcam rate by desired number of seconds# Actual webcam rate is the smallest of the numbers framerate and webcam_maxratewebcam_limit 0############################################################# HTTP Based Control############################################################# TCP/IP port for the http server to listen on (default: 0 = disabled)control_port 8080# Restrict control connections to localhost only (default: on)control_localhost on# Output for http server, select off to choose raw text plain (default: on)control_html_output on# Authentication for the http based control. Syntax username:password# Default: not defined (Disabled); control_authentication username:password############################################################# Tracking (Pan/Tilt)############################################################# Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic)# The generic type enables the definition of motion center and motion size to# be used with the conversion specifiers for options like on_motion_detectedtrack_type 0# Enable auto tracking (default: off)track_auto off# Serial port of motor (default: none); track_port value# Motor number for x-axis (default: -1)track_motorx -1# Motor number for y-axis (default: -1)track_motory -1# Maximum value on x-axis (default: 0)track_maxx 0# Maximum value on y-axis (default: 0)track_maxy 0# ID of an iomojo camera if used (default: 0)track_iomojo_id 0# Angle in degrees the camera moves per step on the X-axis# with auto-track (default: 10)# Currently only used with pwc type camerastrack_step_angle_x 10# Angle in degrees the camera moves per step on the Y-axis# with auto-track (default: 10)# Currently only used with pwc type camerastrack_step_angle_y 10# Delay to wait for after tracking movement as number# of picture frames (default: 10)track_move_wait 10# Speed to set the motor to (default: 255)track_speed 255# Number of steps to make (default: 40)track_stepsize 40############################################################# External Commands, Warnings and Logging:# You can use conversion specifiers for the on_xxxx commands# %Y = year, %m = month, %d = date,# %H = hour, %M = minute, %S = second,# %v = event, %q = frame number, %t = thread (camera) number,# %D = changed pixels, %N = noise level,# %i and %J = width and height of motion area,# %K and %L = X and Y coordinates of motion center# %C = value defined by text_event# %f = filename with full path# %n = number indicating filetype# Both %f and %n are only defined for on_picture_save,# on_movie_start and on_movie_end# Quotation marks round string are allowed.############################################################# Do not sound beeps when detecting motion (default: on)# Note: Motion never beeps when running in daemon mode.quiet on# Command to be executed when an event starts. (default: none)# An event starts at first motion detected after a period of no motion defined by gap ; on_event_start value# Command to be executed when an event ends after a period of no motion# (default: none). The period of no motion is defined by option gap.; on_event_end value# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)# To give the filename as an argument to a command append it with %f; on_picture_save value# Command to be executed when a motion frame is detected (default: none); on_motion_detected value# Command to be executed when a movie file (.mpg|.avi) is created. (default: none)# To give the filename as an argument to a command append it with %f; on_movie_start value# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)# To give the filename as an argument to a command append it with %f; on_movie_end value############################################################# Common Options For MySQL and PostgreSQL database features.# Options require the MySQL/PostgreSQL options to be active also.############################################################# Log to the database when creating motion triggered image file (default: on)sql_log_image on# Log to the database when creating a snapshot image file (default: on)sql_log_snapshot on# Log to the database when creating motion triggered mpeg file (default: off)sql_log_mpeg off# Log to the database when creating timelapse mpeg file (default: off)sql_log_timelapse off# SQL query string that is sent to the database# Use same conversion specifiers has for text features# Additional special conversion specifiers are# %n = the number representing the file_type# %f = filename with full path# Default value:# insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')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')############################################################# Database Options For MySQL############################################################# Mysql database to log to (default: not defined); mysql_db value# The host on which the database is located (default: not defined); mysql_host value# User account name for MySQL database (default: not defined); mysql_user value# User password for MySQL database (default: not defined); mysql_password value############################################################# Database Options For PostgreSQL############################################################# PostgreSQL database to log to (default: not defined); pgsql_db value# The host on which the database is located (default: not defined); pgsql_host value# User account name for PostgreSQL database (default: not defined); pgsql_user value# User password for PostgreSQL database (default: not defined); pgsql_password value# Port on which the PostgreSQL database is located (default: 5432); pgsql_port 5432############################################################# Video Loopback Device (vloopback project)############################################################# Output images to a video4linux loopback device# The value '-' means next available (default: not defined); video_pipe value# Output motion images to a video4linux loopback device# The value '-' means next available (default: not defined); motion_video_pipe value############################################################### Thread config files - One for each camera.# Except if only one camera - You only need this config file.# If you have more than one camera you MUST define one thread# config file for each camera in addition to this config file.############################################################### Remember: If you have more than one camera you must have one# thread file for each camera. E.g. 2 cameras requires 3 files:# This motion.conf file AND thread1.conf and thread2.conf.# Only put the options that are unique to each camera in the# thread config files. ; thread /usr/local/etc/thread1.conf; thread /usr/local/etc/thread2.conf; thread /usr/local/etc/thread3.conf; thread /usr/local/etc/thread4.conf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -