📄 conf.c
字号:
{ "gap", "# Gap is the seconds of no motion detection that triggers the end of an event\n" "# An event is defined as a series of motion images taken within a short timeframe.\n" "# Recommended value is 60 seconds (Default). The value 0 is allowed and disables\n" "# events causing all Motion to be written to one single mpeg file and no pre_capture.", CONF_OFFSET(gap), copy_int, print_int }, { "max_mpeg_time", "# Maximum length in seconds of an mpeg movie\n" "# When value is exceeded a new mpeg file is created. (Default: 0 = infinite)", CONF_OFFSET(maxmpegtime), copy_int, print_int }, { "low_cpu", "# Number of frames per second to capture when not detecting\n" "# motion (saves CPU load) (Default: 0 = disabled)", CONF_OFFSET(low_cpu), copy_int, print_int }, { "output_all", "# Always save images even if there was no motion (default: off)", CONF_OFFSET(output_all), copy_bool, print_bool }, { "output_normal", "\n############################################################\n" "# Image File Output\n" "############################################################\n\n" "# Output 'normal' pictures when motion is detected (default: on)\n" "# Valid values: on, off, first, best\n" "# When set to 'first', only the first picture of an event is saved.\n" "# Picture with most motion of an event is saved when set to 'best'.\n" "# Can be used as preview shot for the corresponding movie.", CONF_OFFSET(output_normal), copy_string, print_string }, { "output_motion", "# Output pictures with only the pixels moving object (ghost images) (default: off)", CONF_OFFSET(motion_img), copy_bool, print_bool }, { "quality", "# The quality (in percent) to be used by the jpeg compression (default: 75)", CONF_OFFSET(quality), copy_int, print_int }, { "ppm", "# Output ppm images instead of jpeg (default: off)", CONF_OFFSET(ppm), copy_bool, print_bool },#ifdef HAVE_FFMPEG { "ffmpeg_cap_new", "\n############################################################\n" "# FFMPEG related options\n" "# Film (mpeg) file output, and deinterlacing of the video input\n" "# The options movie_filename and timelapse_filename are also used\n" "# by the ffmpeg feature\n" "############################################################\n\n" "# Use ffmpeg to encode mpeg movies in realtime (default: off)", CONF_OFFSET(ffmpeg_cap_new), copy_bool, print_bool }, { "ffmpeg_cap_motion", "# Use ffmpeg to make movies with only the pixels moving\n" "# object (ghost images) (default: off)", CONF_OFFSET(ffmpeg_cap_motion), copy_bool, print_bool }, { "ffmpeg_timelapse", "# Use ffmpeg to encode a timelapse movie\n" "# Default value 0 = off - else save frame every Nth second", CONF_OFFSET(timelapse), copy_int, print_int }, { "ffmpeg_timelapse_mode", "# The file rollover mode of the timelapse video\n" "# Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual", CONF_OFFSET(timelapse_mode), copy_string, print_string }, { "ffmpeg_bps", "# Bitrate to be used by the ffmpeg encoder (default: 400000)\n" "# This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)", CONF_OFFSET(ffmpeg_bps), copy_int, print_int }, { "ffmpeg_variable_bitrate", "# Enables and defines variable bitrate for the ffmpeg encoder.\n" "# ffmpeg_bps is ignored if variable bitrate is enabled.\n" "# Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,\n" "# or the range 2 - 31 where 2 means best quality and 31 is worst.", CONF_OFFSET(ffmpeg_vbr), copy_int, print_int }, { "ffmpeg_video_codec", "# Codec to used by ffmpeg for the video compression.\n" "# Timelapse mpegs are always made in mpeg1 format independent from this option.\n" "# Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.\n" "# mpeg1 - gives you files with extension .mpg\n" "# mpeg4 or msmpeg4 - give you files with extension .avi\n" "# msmpeg4 is recommended for use with Windows Media Player because\n" "# it requires no installation of codec on the Windows client.", CONF_OFFSET(ffmpeg_video_codec), copy_string, print_string }, { "ffmpeg_deinterlace", "# Use ffmpeg to deinterlace video. Necessary if you use an analog camera\n" "# and see horizontal combing on moving objects in video or pictures.\n" "# (default: off)", CONF_OFFSET(ffmpeg_deinterlace), copy_bool, print_bool },#endif /* HAVE_FFMPEG */ { "snapshot_interval", "\n############################################################\n" "# Snapshots (Traditional Periodic Webcam File Output)\n" "############################################################\n\n" "# Make automated snapshot every N seconds (default: 0 = disabled)", CONF_OFFSET(snapshot_interval), copy_int, print_int }, { "locate", "\n############################################################\n" "# Text Display\n" "# %Y = year, %m = month, %d = date,\n" "# %H = hour, %M = minute, %S = second, %T = HH:MM:SS,\n" "# %v = event, %q = frame number, %t = thread (camera) number,\n" "# %D = changed pixels, %N = noise level, \\n = new line,\n" "# %i and %J = width and height of motion area,\n" "# %K and %L = X and Y coordinates of motion center\n" "# %C = value defined by text_event - do not use with text_event!\n" "# You can put quotation marks around the text to allow\n" "# leading spaces\n" "############################################################\n\n" "# Locate and draw a box around the moving object.\n" "# Valid values: on, off and preview (default: off)\n" "# Set to 'preview' will only draw a box in preview_shot pictures.", CONF_OFFSET(locate), copy_string, print_string }, { "text_right", "# Draws the timestamp using same options as C function strftime(3)\n" "# Default: %Y-%m-%d\\n%T = date in ISO format and time in 24 hour clock\n" "# Text is placed in lower right corner", CONF_OFFSET(text_right), copy_string, print_string }, { "text_left", "# Draw a user defined text on the images using same options as C function strftime(3)\n" "# Default: Not defined = no text\n" "# Text is placed in lower left corner", CONF_OFFSET(text_left), copy_string, print_string }, { "text_changes", "# Draw the number of changed pixed on the images (default: off)\n" "# Will normally be set to off except when you setup and adjust the motion settings\n" "# Text is placed in upper right corner", CONF_OFFSET(text_changes), copy_bool, print_bool }, { "text_event", "# This option defines the value of the special event conversion specifier %C\n" "# You can use any conversion specifier in this option except %C. Date and time\n" "# values are from the timestamp of the first image in the current event.\n" "# Default: %Y%m%d%H%M%S\n" "# The idea is that %C can be used filenames and text_left/right for creating\n" "# a unique identifier for each event.", CONF_OFFSET(text_event), copy_string, print_string }, { "text_double", "# Draw characters at twice normal size on images. (default: off)", CONF_OFFSET(text_double), copy_bool, print_bool }, { "target_dir", "\n############################################################\n" "# Target Directories and filenames For Images And Films\n" "# For the options snapshot_, jpeg_, mpeg_ and timelapse_filename\n" "# you can use conversion specifiers\n" "# %Y = year, %m = month, %d = date,\n" "# %H = hour, %M = minute, %S = second,\n" "# %v = event, %q = frame number, %t = thread (camera) number,\n" "# %D = changed pixels, %N = noise level,\n" "# %i and %J = width and height of motion area,\n" "# %K and %L = X and Y coordinates of motion center\n" "# %C = value defined by text_event\n" "# Quotation marks round string are allowed.\n" "############################################################\n\n" "# Target base directory for pictures and films\n" "# Recommended to use absolute path. (Default: current working directory)", CONF_OFFSET(filepath), copy_string, print_string }, { "snapshot_filename", "# File path for snapshots (jpeg or ppm) relative to target_dir\n" "# Default: "DEF_SNAPPATH"\n" "# Default value is equivalent to legacy oldlayout option\n" "# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot\n" "# File extension .jpg or .ppm is automatically added so do not include this.\n" "# Note: A symbolic link called lastsnap.jpg created in the target_dir will always\n" "# point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'", CONF_OFFSET(snappath), copy_string, print_string }, { "jpeg_filename", "# File path for motion triggered images (jpeg or ppm) relative to target_dir\n" "# Default: "DEF_JPEGPATH"\n" "# Default value is equivalent to legacy oldlayout option\n" "# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q\n" "# File extension .jpg or .ppm is automatically added so do not include this\n" "# Set to 'preview' together with best-preview feature enables special naming\n" "# convention for preview shots. See motion guide for details", CONF_OFFSET(jpegpath), copy_string, print_string },#ifdef HAVE_FFMPEG { "movie_filename", "# File path for motion triggered ffmpeg films (mpeg) relative to target_dir\n" "# Default: "DEF_MPEGPATH"\n" "# Default value is equivalent to legacy oldlayout option\n" "# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S\n" "# File extension .mpg or .avi is automatically added so do not include this\n" "# This option was previously called ffmpeg_filename", CONF_OFFSET(mpegpath), copy_string, print_string }, { "timelapse_filename", "# File path for timelapse mpegs relative to target_dir\n" "# Default: "DEF_TIMEPATH"\n" "# Default value is near equivalent to legacy oldlayout option\n" "# For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse\n" "# File extension .mpg is automatically added so do not include this", CONF_OFFSET(timepath), copy_string, print_string },#endif /* HAVE_FFMPEG */ { "webcam_port", "\n############################################################\n" "# Live Webcam Server\n" "############################################################\n\n" "# The mini-http server listens to this port for requests (default: 0 = disabled)", CONF_OFFSET(webcam_port), copy_int, print_int }, { "webcam_quality", "# Quality of the jpeg images produced (default: 50)", CONF_OFFSET(webcam_quality), copy_int, print_int }, { "webcam_motion", "# Output frames at 1 fps when no motion is detected and increase to the\n" "# rate given by webcam_maxrate when motion is detected (default: off)", CONF_OFFSET(webcam_motion), copy_bool, print_bool }, { "webcam_maxrate", "# Maximum framerate for webcam streams (default: 1)", CONF_OFFSET(webcam_maxrate), copy_int, print_int }, { "webcam_localhost", "# Restrict webcam connections to localhost only (default: on)", CONF_OFFSET(webcam_localhost), copy_bool, print_bool }, { "webcam_limit", "# Limits the number of images per connection (default: 0 = unlimited)\n" "# Number can be defined by multiplying actual webcam rate by desired number of seconds\n" "# Actual webcam rate is the smallest of the numbers framerate and webcam_maxrate", CONF_OFFSET(webcam_limit), copy_int, print_int }, { "control_port", "\n############################################################\n" "# HTTP Based Control\n" "############################################################\n\n" "# TCP/IP port for the http server to listen on (default: 0 = disabled)", CONF_OFFSET(control_port), copy_int, print_int }, { "control_localhost", "# Restrict control connections to localhost only (default: on)", CONF_OFFSET(control_localhost), copy_bool, print_bool }, { "control_html_output", "# Output for http server, select off to choose raw text plain (default: on)", CONF_OFFSET(control_html_output), copy_bool, print_bool }, { "control_authentication", "# Authentication for the http based control. Syntax username:password\n" "# Default: not defined (Disabled)", CONF_OFFSET(control_authentication), copy_string, print_string }, { "track_type", "\n############################################################\n" "# Tracking (Pan/Tilt)\n" "############################################################\n\n" "# Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic)\n" "# The generic type enables the definition of motion center and motion size to\n" "# be used with the conversion specifiers for options like on_motion_detected", TRACK_OFFSET(type), copy_int, print_int }, { "track_auto", "# Enable auto tracking (default: off)", TRACK_OFFSET(active), copy_bool, print_bool }, { "track_port", "# Serial port of motor (default: none)", TRACK_OFFSET(port), copy_string, print_string }, { "track_motorx", "# Motor number for x-axis (default: -1)", TRACK_OFFSET(motorx), copy_int, print_int }, { "track_motory", "# Motor number for y-axis (default: -1)", TRACK_OFFSET(motory), copy_int, print_int }, { "track_maxx", "# Maximum value on x-axis (default: 0)", TRACK_OFFSET(maxx), copy_int, print_int }, { "track_maxy", "# Maximum value on y-axis (default: 0)", TRACK_OFFSET(maxy), copy_int, print_int }, { "track_iomojo_id", "# ID of an iomojo camera if used (default: 0)", TRACK_OFFSET(iomojo_id), copy_int, print_int }, { "track_step_angle_x", "# Angle in degrees the camera moves per step on the X-axis\n" "# with auto-track (default: 10)\n" "# Currently only used with pwc type cameras", TRACK_OFFSET(step_angle_x), copy_int, print_int }, { "track_step_angle_y", "# Angle in degrees the camera moves per step on the Y-axis\n" "# with auto-track (default: 10)\n" "# Currently only used with pwc type cameras", TRACK_OFFSET(step_angle_y), copy_int, print_int }, { "track_move_wait", "# Delay to wait for after tracking movement as number\n" "# of picture frames (default: 10)", TRACK_OFFSET(move_wait),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -