wok-6.x rev 25432
motion: adapted configuration parameters to version 4.4.0
author | Hans-G?nter Theisgen |
---|---|
date | Sun Aug 21 17:07:48 2022 +0100 (24 months ago) |
parents | fb3f7dcfca43 |
children | 0748d49b3e26 |
files | motion-lang/receipt motion/receipt motion/stuff/init.d/motion motion/stuff/motion-4.4.0.conf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/motion-lang/receipt Sun Aug 21 17:07:48 2022 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="motion-lang" 1.7 +VERSION="4.4.0" 1.8 +CATEGORY="localization" 1.9 +SHORT_DESC="Monitors the video signal from cameras - localised messages." 1.10 +MAINTAINER="maintainer@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://motion-project.github.io/" 1.13 + 1.14 +WANTED="motion" 1.15 + 1.16 +genpkg_rules() 1.17 +{ 1.18 + cook_copy_folders locale 1.19 +} 1.20 +
2.1 --- a/motion/receipt Fri Aug 19 06:34:23 2022 +0000 2.2 +++ b/motion/receipt Sun Aug 21 17:07:48 2022 +0100 2.3 @@ -11,10 +11,12 @@ 2.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 2.5 WGET_URL="https://github.com/Motion-Project/$PACKAGE/archive/release-$VERSION.tar.gz" 2.6 2.7 -DEPENDS="ffmpeg jpeg libmicrohttpd libpthread-stubs libv4l" 2.8 +DEPENDS="ffmpeg jpeg libatomic libmicrohttpd libpthread-stubs libv4l" 2.9 BUILD_DEPENDS="automake ffmpeg-dev jpeg-dev libatomic libmicrohttpd-dev 2.10 libpthread-stubs libtool libv4l-dev" 2.11 2.12 +CONFIG_FILES="/etc/motion/motion.conf" 2.13 + 2.14 current_version() 2.15 { 2.16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 2.17 @@ -32,8 +34,7 @@ 2.18 ./configure \ 2.19 CFLAGS="$CFLAGS -lvpx" \ 2.20 LDFLAGS="$LDFLAGS -latomic" \ 2.21 - --disable-nls \ 2.22 - --sysconfdir=/etc/motion && 2.23 + --sysconfdir=/etc && 2.24 make && 2.25 make install 2.26 } 2.27 @@ -44,9 +45,7 @@ 2.28 mkdir -p $fs/etc/motion 2.29 mkdir -p $fs/usr 2.30 2.31 - cp -a $install/usr/bin $fs/usr 2.32 - cp -a $stuff/motion.conf $fs/etc/motion 2.33 - cp -a $stuff/init.d $fs/etc 2.34 - 2.35 - chmod 0644 $fs/etc/motion/* 2.36 + cp -a $install/usr/bin $fs/usr 2.37 + cp -a $stuff/motion-$VERSION.conf $fs/etc/motion/motion.conf 2.38 + cp -a $stuff/init.d $fs/etc 2.39 }
3.1 --- a/motion/stuff/init.d/motion Fri Aug 19 06:34:23 2022 +0000 3.2 +++ b/motion/stuff/init.d/motion Sun Aug 21 17:07:48 2022 +0100 3.3 @@ -1,7 +1,6 @@ 3.4 #!/bin/sh 3.5 # /etc/init.d/motion: Start, stop and restart Motion daemon on SliTaz, 3.6 -# at boot time or with the command line. Daemons options are configured 3.7 -# with /etc/daemons.conf 3.8 +# at boot time or with the command line. 3.9 # 3.10 . /etc/init.d/rc.functions 3.11 3.12 @@ -30,7 +29,6 @@ 3.13 fi 3.14 action 'Stopping %s: %s...' "$DESC" $NAME 3.15 kill $(cat $PIDFILE) 3.16 - rm $PIDFILE 3.17 status 3.18 ;; 3.19 (restart) 3.20 @@ -41,7 +39,6 @@ 3.21 fi 3.22 _ 'Restarting %s: %s...' "$DESC" $NAME 3.23 kill $(cat $PIDFILE) 3.24 - rm $PIDFILE 3.25 sleep 2 3.26 $DAEMON -p $PIDFILE 3.27 status
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/motion/stuff/motion-4.4.0.conf Sun Aug 21 17:07:48 2022 +0100 4.3 @@ -0,0 +1,178 @@ 4.4 +# This distribution example file is renamed to /etc/motion/motion.conf 4.5 +# and modified for SliTaz. 4.6 +# 4.7 +# This config file was generated by motion 4.4.0 4.8 +# Documentation: /usr/share/doc/motion/motion_guide.html 4.9 +# 4.10 +# This file contains only the basic configuration options to get a 4.11 +# system working. There are many more options available. Please 4.12 +# consult the documentation for the complete list of all options. 4.13 +# 4.14 + 4.15 +############################################################ 4.16 +# System control configuration parameters 4.17 +############################################################ 4.18 + 4.19 +# Start in daemon (background) mode and release terminal. 4.20 +daemon on 4.21 + 4.22 +# Start in Setup-Mode, daemon disabled. 4.23 +setup_mode off 4.24 + 4.25 +# File to store the process ID. 4.26 +pid_file /run/motion/motion.pid 4.27 + 4.28 +# File to write logs messages into. If not defined stderr and syslog is used. 4.29 +; log_file value 4.30 + 4.31 +# Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). 4.32 +log_level 6 4.33 + 4.34 +# Target directory for pictures, snapshots and movies 4.35 +target_dir /var/lib/motion/cam1 4.36 + 4.37 +# Video device (e.g. /dev/video0) to be used for capturing. 4.38 +video_device /dev/video0 4.39 + 4.40 +# Parameters to control video device. See motion_guide.html 4.41 +; vid_control_params value 4.42 + 4.43 +# The full URL of the network camera stream. 4.44 +; netcam_url value 4.45 + 4.46 +# Name of mmal camera (e.g. vc.ril.camera for pi camera). 4.47 +; mmalcam_name value 4.48 + 4.49 +# Camera control parameters (see raspivid/raspistill tool documentation) 4.50 +; mmalcam_control_params value 4.51 + 4.52 +############################################################ 4.53 +# Image Processing configuration parameters 4.54 +############################################################ 4.55 + 4.56 +# Image width in pixels. 4.57 +# width 640 replaced by 4.58 +width 320 4.59 + 4.60 +# Image height in pixels. 4.61 +# height 480 replaced by 4.62 +height 240 4.63 + 4.64 +# Maximum number of frames to be captured per second. 4.65 +# framerate 15 replaced by 4.66 +framerate 2 4.67 + 4.68 +# Text to be overlayed in the lower left corner of images 4.69 +; text_left CAMERA1 4.70 + 4.71 +# Text to be overlayed in the lower right corner of images. 4.72 +text_right %Y-%m-%d\n%T-%q 4.73 + 4.74 +############################################################ 4.75 +# Motion detection configuration parameters 4.76 +############################################################ 4.77 + 4.78 +# Always save pictures and movies even if there was no motion. 4.79 +emulate_motion off 4.80 + 4.81 +# Threshold for number of changed pixels that triggers motion. 4.82 +threshold 1500 4.83 + 4.84 +# Noise threshold for the motion detection. 4.85 +noise_level 32 4.86 + 4.87 +# Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel. 4.88 +despeckle_filter EedDl 4.89 + 4.90 +# Number of images that must contain motion to trigger an event. 4.91 +minimum_motion_frames 1 4.92 + 4.93 +# Gap in seconds of no motion detected that triggers the end of an event. 4.94 +event_gap 60 4.95 + 4.96 +# The number of pre-captured (buffered) pictures from before motion. 4.97 +# pre_capture 3 replaced by 4.98 +pre_capture 0 4.99 + 4.100 +# Number of frames to capture after motion is no longer detected. 4.101 +post_capture 0 4.102 + 4.103 +############################################################ 4.104 +# Script execution configuration parameters 4.105 +############################################################ 4.106 + 4.107 +# Command to be executed when an event starts. 4.108 +; on_event_start value 4.109 + 4.110 +# Command to be executed when an event ends. 4.111 +; on_event_end value 4.112 + 4.113 +# Command to be executed when a movie file is closed. 4.114 +; on_movie_end value 4.115 + 4.116 +############################################################ 4.117 +# Picture output configuration parameters 4.118 +############################################################ 4.119 + 4.120 +# Output pictures when motion is detected 4.121 +picture_output off 4.122 + 4.123 +# File name(without extension) for pictures relative to target directory 4.124 +picture_filename %Y%m%d%H%M%S-%q 4.125 + 4.126 +############################################################ 4.127 +# Movie output configuration parameters 4.128 +############################################################ 4.129 + 4.130 +# Create movies of motion events. 4.131 +movie_output on 4.132 + 4.133 +# Maximum length of movie in seconds. 4.134 +# movie_max_time 60 replaced by 4.135 +movie_max_time 0 4.136 + 4.137 +# The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best) 4.138 +# movie_quality 45 replaced by 4.139 +movie_quality 75 4.140 + 4.141 +# Container/Codec to used for the movie. See motion_guide.html 4.142 +movie_codec mkv 4.143 + 4.144 +# File name(without extension) for movies relative to target directory 4.145 +movie_filename %t-%v-%Y%m%d%H%M%S 4.146 + 4.147 +############################################################ 4.148 +# Webcontrol configuration parameters 4.149 +############################################################ 4.150 + 4.151 +# Port number used for the webcontrol. 4.152 +webcontrol_port 8080 4.153 + 4.154 +# Restrict webcontrol connections to the localhost. 4.155 +webcontrol_localhost on 4.156 + 4.157 +# Type of configuration options to allow via the webcontrol. 4.158 +webcontrol_parms 0 4.159 + 4.160 +############################################################ 4.161 +# Live stream configuration parameters 4.162 +############################################################ 4.163 + 4.164 +# The port number for the live stream. 4.165 +stream_port 8081 4.166 + 4.167 +# Restrict stream connections to the localhost. 4.168 +stream_localhost on 4.169 + 4.170 +############################################################## 4.171 +# Camera config files - One for each camera. 4.172 +############################################################## 4.173 +; camera /etc/motion/camera1.conf 4.174 +; camera /etc/motion/camera2.conf 4.175 +; camera /etc/motion/camera3.conf 4.176 +; camera /etc/motion/camera4.conf 4.177 + 4.178 +############################################################## 4.179 +# Directory to read '.conf' files for cameras. 4.180 +############################################################## 4.181 +; camera_dir /etc/motion/conf.d