wok diff motion/stuff/motion-4.4.0.conf @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (17 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/motion/stuff/motion-4.4.0.conf	Fri Jan 27 10:37:43 2023 +0100
     1.3 @@ -0,0 +1,178 @@
     1.4 +# This distribution example file is renamed to /etc/motion/motion.conf
     1.5 +# and modified for SliTaz.
     1.6 +#
     1.7 +# This config file was generated by motion 4.4.0
     1.8 +# Documentation:  /usr/share/doc/motion/motion_guide.html
     1.9 +#
    1.10 +# This file contains only the basic configuration options to get a
    1.11 +# system working.  There are many more options available.  Please
    1.12 +# consult the documentation for the complete list of all options.
    1.13 +#
    1.14 +
    1.15 +############################################################
    1.16 +# System control configuration parameters
    1.17 +############################################################
    1.18 +
    1.19 +# Start in daemon (background) mode and release terminal.
    1.20 +daemon on
    1.21 +
    1.22 +# Start in Setup-Mode, daemon disabled.
    1.23 +setup_mode off
    1.24 +
    1.25 +# File to store the process ID.
    1.26 +pid_file /run/motion/motion.pid
    1.27 +
    1.28 +# File to write logs messages into.  If not defined stderr and syslog is used.
    1.29 +; log_file value
    1.30 +
    1.31 +# Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL).
    1.32 +log_level 6
    1.33 +
    1.34 +# Target directory for pictures, snapshots and movies
    1.35 +target_dir /var/lib/motion/cam1
    1.36 +
    1.37 +# Video device (e.g. /dev/video0) to be used for capturing.
    1.38 +video_device /dev/video0
    1.39 +
    1.40 +# Parameters to control video device.  See motion_guide.html
    1.41 +; vid_control_params value
    1.42 +
    1.43 +# The full URL of the network camera stream.
    1.44 +; netcam_url value
    1.45 +
    1.46 +# Name of mmal camera (e.g. vc.ril.camera for pi camera).
    1.47 +; mmalcam_name value
    1.48 +
    1.49 +# Camera control parameters (see raspivid/raspistill tool documentation)
    1.50 +; mmalcam_control_params value
    1.51 +
    1.52 +############################################################
    1.53 +# Image Processing configuration parameters
    1.54 +############################################################
    1.55 +
    1.56 +# Image width in pixels.
    1.57 +# width 640 replaced by
    1.58 +width 320
    1.59 +
    1.60 +# Image height in pixels.
    1.61 +# height 480 replaced by
    1.62 +height 240
    1.63 +
    1.64 +# Maximum number of frames to be captured per second.
    1.65 +# framerate 15 replaced by
    1.66 +framerate 2
    1.67 +
    1.68 +# Text to be overlayed in the lower left corner of images
    1.69 +; text_left CAMERA1
    1.70 +
    1.71 +# Text to be overlayed in the lower right corner of images.
    1.72 +text_right %Y-%m-%d\n%T-%q
    1.73 +
    1.74 +############################################################
    1.75 +# Motion detection configuration parameters
    1.76 +############################################################
    1.77 +
    1.78 +# Always save pictures and movies even if there was no motion.
    1.79 +emulate_motion off
    1.80 +
    1.81 +# Threshold for number of changed pixels that triggers motion.
    1.82 +threshold 1500
    1.83 +
    1.84 +# Noise threshold for the motion detection.
    1.85 +noise_level 32
    1.86 +
    1.87 +# Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel.
    1.88 +despeckle_filter EedDl
    1.89 +
    1.90 +# Number of images that must contain motion to trigger an event.
    1.91 +minimum_motion_frames 1
    1.92 +
    1.93 +# Gap in seconds of no motion detected that triggers the end of an event.
    1.94 +event_gap 60
    1.95 +
    1.96 +# The number of pre-captured (buffered) pictures from before motion.
    1.97 +# pre_capture 3 replaced by
    1.98 +pre_capture 0
    1.99 +
   1.100 +# Number of frames to capture after motion is no longer detected.
   1.101 +post_capture 0
   1.102 +
   1.103 +############################################################
   1.104 +# Script execution configuration parameters
   1.105 +############################################################
   1.106 +
   1.107 +# Command to be executed when an event starts.
   1.108 +; on_event_start value
   1.109 +
   1.110 +# Command to be executed when an event ends.
   1.111 +; on_event_end value
   1.112 +
   1.113 +# Command to be executed when a movie file is closed.
   1.114 +; on_movie_end value
   1.115 +
   1.116 +############################################################
   1.117 +# Picture output configuration parameters
   1.118 +############################################################
   1.119 +
   1.120 +# Output pictures when motion is detected
   1.121 +picture_output off
   1.122 +
   1.123 +# File name(without extension) for pictures relative to target directory
   1.124 +picture_filename %Y%m%d%H%M%S-%q
   1.125 +
   1.126 +############################################################
   1.127 +# Movie output configuration parameters
   1.128 +############################################################
   1.129 +
   1.130 +# Create movies of motion events.
   1.131 +movie_output on
   1.132 +
   1.133 +# Maximum length of movie in seconds.
   1.134 +# movie_max_time 60 replaced by
   1.135 +movie_max_time 0
   1.136 +
   1.137 +# The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best)
   1.138 +# movie_quality 45 replaced by
   1.139 +movie_quality 75
   1.140 +
   1.141 +# Container/Codec to used for the movie. See motion_guide.html
   1.142 +movie_codec mkv
   1.143 +
   1.144 +# File name(without extension) for movies relative to target directory
   1.145 +movie_filename %t-%v-%Y%m%d%H%M%S
   1.146 +
   1.147 +############################################################
   1.148 +# Webcontrol configuration parameters
   1.149 +############################################################
   1.150 +
   1.151 +# Port number used for the webcontrol.
   1.152 +webcontrol_port 8080
   1.153 +
   1.154 +# Restrict webcontrol connections to the localhost.
   1.155 +webcontrol_localhost on
   1.156 +
   1.157 +# Type of configuration options to allow via the webcontrol.
   1.158 +webcontrol_parms 0
   1.159 +
   1.160 +############################################################
   1.161 +# Live stream configuration parameters
   1.162 +############################################################
   1.163 +
   1.164 +# The port number for the live stream.
   1.165 +stream_port 8081
   1.166 +
   1.167 +# Restrict stream connections to the localhost.
   1.168 +stream_localhost on
   1.169 +
   1.170 +##############################################################
   1.171 +# Camera config files - One for each camera.
   1.172 +##############################################################
   1.173 +; camera /etc/motion/camera1.conf
   1.174 +; camera /etc/motion/camera2.conf
   1.175 +; camera /etc/motion/camera3.conf
   1.176 +; camera /etc/motion/camera4.conf
   1.177 +
   1.178 +##############################################################
   1.179 +# Directory to read '.conf' files for cameras.
   1.180 +##############################################################
   1.181 +; camera_dir /etc/motion/conf.d