# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 3.2.9
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
关掉deamon模式。最好这项还是选off,否则运行motion后,就会直接在后台运行,需要用top命令查看出motion的进程号(pid),然后再手动kill掉这个进程。
daemon off
# File to store the process ID, also called pid file. (default: not defined) 文件存放进程ID,也称为PID文件。 (默认值:未定义)
process_id_file /var/run/motion.pid
############################################################
# Basic Setup Mode 基本设定模式
############################################################
# Start in Setup-Mode, daemon disabled. (default: off) 开始设置模式,守护进程禁用。 (默认:关闭)
setup_mode off
###########################################################
# Capture device options 捕获设备选项
############################################################
# Videodevice to be used for capturing (default /dev/video0)
# for FreeBSD default is /dev/bktr0
设置加载USB摄像头的设备,一般都是这个video0,当使用network webcam时,需要设置netcam_url,此时,videodevice选项自动失效。
videodevice /dev/video0
# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
# This is ONLY used for FreeBSD. Leave it commented out for Linux
; tunerdevice /dev/tuner0
# The video input to be used (default: 8)
# Should normally be set to 1 for video/TV cards, and 8 for USB cameras
可使用输入视频(默认值:8)
一般应设置为1个视频/电视卡,和8个USB摄像头
input 8
# The video norm to use (only for video capture and TV tuner cards)
# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
视频制式(仅适用于视频拍摄和电视调谐器卡)
值:0(PAL制式),1(NTSC制式),2(SECAM制式),3(PAL NC无颜色)。默认值:0(PAL制式)
norm 0
# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
频率调谐器设置为(千赫)(仅适用于电视调谐器卡)(默认值:0)
frequency 0
# Rotate image this number of degrees. The rotation affects all saved images as
# well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
图像旋转度度数。旋转会影响所有保存的图像,及MPEG电影。有效值:0(默认值=无旋转),90,180和270。
rotate 0
# Image width (pixels). Valid range: Camera dependent, default: 352
图像宽度(像素)。有效范围:相机依赖,默认值:352
width 320
# Image height (pixels). Valid range: Camera dependent, default: 288
图像高度(像素)。有效范围:相机依赖,默认值:288
height 240
# Maximum number of frames to be captured per second.
# Valid range: 2-100. Default: 100 (almost no limit).
每秒可捕获的帧的最大数量。
有效范围:2-100。默认值:100(几乎没有限制)。
framerate 30
# Minimum time in seconds between capturing picture frames from the camera.
# Default: 0 = disabled - the capture rate is given by the camera framerate.
# This option is used when you want to capture images at a rate lower than 2 per second.
从相机帧秒捕捉图像的最短时间
默认值:0=禁用 - 捕获速率由相机帧率给出。
当你想要捕捉图像的速度小于每秒2下时使用此选项。
minimum_frame_time 0
# URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)
# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
如果您使用的是网络摄像头时使用的网址,尺寸将被自动检测(包括包含http:// ftp://或file :///)
必须返回单个JPEG图片或原始MJPEG流的URL。默认值:未定义
; netcam_url value
# Username and password for network camera (only if required). Default: not defined
# Syntax is user:password
用户名和密码,网络摄像头(只当如果需要的时候)。默认值:没有定义
语法是用户名,密码
; netcam_userpass value
# URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
# If a port number other than 80 is needed, use "http://myproxy:1234".
# Default: not defined
; netcam_proxy value
# Let motion regulate the brightness of a video device (default: off).
# The auto_brightness feature uses the brightness option as its target value.
# If brightness is zero auto_brightness will adjust to average brightness value 128.
# Only recommended for cameras without auto brightness
auto_brightness off
# Set the initial brightness of a video device.
# If auto_brightness is enabled, this value defines the average brightness level
# which Motion will try and adjust to.
# Valid range 0-255, default 0 = disabled
设置视频设备的初始亮度。
如果auto_brightness被启用,该值定义的平均亮度水平
该运动将尝试和调整。
有效范围0-255,默认为0=禁用
brightness 0
# Set the contrast of a video device.
# Valid range 0-255, default 0 = disabled
设置一个视频装置的对比度。
有效范围0-255,默认为0=禁用
contrast 0
# Set the saturation of a video device.
# Valid range 0-255, default 0 = disabled
设置视频设备的饱和度。
有效范围0-255,默认为0=禁用
saturation 0
# Set the hue of a video device (NTSC feature).
# Valid range 0-255, default 0 =
#
# This config file was generated by motion 3.2.9
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
关掉deamon模式。最好这项还是选off,否则运行motion后,就会直接在后台运行,需要用top命令查看出motion的进程号(pid),然后再手动kill掉这个进程。
daemon off
# File to store the process ID, also called pid file. (default: not defined) 文件存放进程ID,也称为PID文件。 (默认值:未定义)
process_id_file /var/run/motion.pid
############################################################
# Basic Setup Mode 基本设定模式
############################################################
# Start in Setup-Mode, daemon disabled. (default: off) 开始设置模式,守护进程禁用。 (默认:关闭)
setup_mode off
###########################################################
# Capture device options 捕获设备选项
############################################################
# Videodevice to be used for capturing (default /dev/video0)
# for FreeBSD default is /dev/bktr0
设置加载USB摄像头的设备,一般都是这个video0,当使用network webcam时,需要设置netcam_url,此时,videodevice选项自动失效。
videodevice /dev/video0
# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
# This is ONLY used for FreeBSD. Leave it commented out for Linux
; tunerdevice /dev/tuner0
# The video input to be used (default: 8)
# Should normally be set to 1 for video/TV cards, and 8 for USB cameras
可使用输入视频(默认值:8)
一般应设置为1个视频/电视卡,和8个USB摄像头
input 8
# The video norm to use (only for video capture and TV tuner cards)
# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
视频制式(仅适用于视频拍摄和电视调谐器卡)
值:0(PAL制式),1(NTSC制式),2(SECAM制式),3(PAL NC无颜色)。默认值:0(PAL制式)
norm 0
# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
频率调谐器设置为(千赫)(仅适用于电视调谐器卡)(默认值:0)
frequency 0
# Rotate image this number of degrees. The rotation affects all saved images as
# well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
图像旋转度度数。旋转会影响所有保存的图像,及MPEG电影。有效值:0(默认值=无旋转),90,180和270。
rotate 0
# Image width (pixels). Valid range: Camera dependent, default: 352
图像宽度(像素)。有效范围:相机依赖,默认值:352
width 320
# Image height (pixels). Valid range: Camera dependent, default: 288
图像高度(像素)。有效范围:相机依赖,默认值:288
height 240
# Maximum number of frames to be captured per second.
# Valid range: 2-100. Default: 100 (almost no limit).
每秒可捕获的帧的最大数量。
有效范围:2-100。默认值:100(几乎没有限制)。
framerate 30
# Minimum time in seconds between capturing picture frames from the camera.
# Default: 0 = disabled - the capture rate is given by the camera framerate.
# This option is used when you want to capture images at a rate lower than 2 per second.
从相机帧秒捕捉图像的最短时间
默认值:0=禁用 - 捕获速率由相机帧率给出。
当你想要捕捉图像的速度小于每秒2下时使用此选项。
minimum_frame_time 0
# URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)
# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
如果您使用的是网络摄像头时使用的网址,尺寸将被自动检测(包括包含http:// ftp://或file :///)
必须返回单个JPEG图片或原始MJPEG流的URL。默认值:未定义
; netcam_url value
# Username and password for network camera (only if required). Default: not defined
# Syntax is user:password
用户名和密码,网络摄像头(只当如果需要的时候)。默认值:没有定义
语法是用户名,密码
; netcam_userpass value
# URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
# If a port number other than 80 is needed, use "http://myproxy:1234".
# Default: not defined
; netcam_proxy value
# Let motion regulate the brightness of a video device (default: off).
# The auto_brightness feature uses the brightness option as its target value.
# If brightness is zero auto_brightness will adjust to average brightness value 128.
# Only recommended for cameras without auto brightness
auto_brightness off
# Set the initial brightness of a video device.
# If auto_brightness is enabled, this value defines the average brightness level
# which Motion will try and adjust to.
# Valid range 0-255, default 0 = disabled
设置视频设备的初始亮度。
如果auto_brightness被启用,该值定义的平均亮度水平
该运动将尝试和调整。
有效范围0-255,默认为0=禁用
brightness 0
# Set the contrast of a video device.
# Valid range 0-255, default 0 = disabled
设置一个视频装置的对比度。
有效范围0-255,默认为0=禁用
contrast 0
# Set the saturation of a video device.
# Valid range 0-255, default 0 = disabled
设置视频设备的饱和度。
有效范围0-255,默认为0=禁用
saturation 0
# Set the hue of a video device (NTSC feature).
# Valid range 0-255, default 0 =