<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=Motion_detect</id>
	<title>Motion detect - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=Motion_detect"/>
	<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=Motion_detect&amp;action=history"/>
	<updated>2026-04-19T09:03:36Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.eofnet.lt/w//index.php?title=Motion_detect&amp;diff=8643&amp;oldid=prev</id>
		<title>\dev\null: Naujas puslapis: Šiame straipsnyje aprašyta judesio aptikimas (angl. motion detection) naudojant Orange PI, paprastą Webcam ir motion programinės įrangos paketą, Armbian sis...</title>
		<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=Motion_detect&amp;diff=8643&amp;oldid=prev"/>
		<updated>2018-04-11T18:26:36Z</updated>

		<summary type="html">&lt;p&gt;Naujas puslapis: Šiame straipsnyje aprašyta judesio aptikimas (angl. motion detection) naudojant &lt;a href=&quot;/w//index.php?title=Orange_PI&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Orange PI (puslapis neegzistuoja)&quot;&gt;Orange PI&lt;/a&gt;, paprastą &lt;a href=&quot;/w//index.php?title=Webcam&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Webcam (puslapis neegzistuoja)&quot;&gt;Webcam&lt;/a&gt; ir &lt;a href=&quot;/w//index.php?title=Motion&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Motion (puslapis neegzistuoja)&quot;&gt;motion&lt;/a&gt; programinės įrangos paketą, &lt;a href=&quot;/wiki/Armbian&quot; title=&quot;Armbian&quot;&gt;Armbian&lt;/a&gt; sis...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Šiame straipsnyje aprašyta judesio aptikimas (angl. motion detection) naudojant [[Orange PI]], paprastą [[Webcam]] ir [[motion]] programinės įrangos paketą, [[Armbian]] sistemoje.&lt;br /&gt;
&lt;br /&gt;
Pajungiame webcam, toliau..&lt;br /&gt;
Įdiegiame paketą:&lt;br /&gt;
 apt install motion&lt;br /&gt;
Sudedame konfigą į /etc/motion/motion.conf:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
# /etc/motion/motion.conf&lt;br /&gt;
#&lt;br /&gt;
# This config file was generated by motion 3.2.12&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Daemon&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Start in daemon (background) mode and release terminal (default: off)&lt;br /&gt;
daemon on&lt;br /&gt;
 &lt;br /&gt;
#File to store the process ID, also called pid file. (default: not defined)&lt;br /&gt;
process_id_file /var/run/motion/motion.pid&lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Basic Setup Mode&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Start in Setup-Mode, daemon disabled. (default: off)&lt;br /&gt;
setup_mode off&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
###########################################################&lt;br /&gt;
# Capture device options&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Videodevice to be used for capturing  (default /dev/video0)&lt;br /&gt;
# for FreeBSD default is /dev/bktr0&lt;br /&gt;
videodevice /dev/video0&lt;br /&gt;
 &lt;br /&gt;
# v4l2_palette allows to choose preferable palette to be use by motion&lt;br /&gt;
# to capture from those supported by your videodevice. (default: 8)&lt;br /&gt;
# E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and&lt;br /&gt;
# V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.&lt;br /&gt;
# Setting v4l2_palette to 1 forces motion to use V4L2_PIX_FMT_SBGGR8&lt;br /&gt;
# instead.&lt;br /&gt;
#&lt;br /&gt;
# Values :&lt;br /&gt;
# V4L2_PIX_FMT_SN9C10X : 0  'S910'&lt;br /&gt;
# V4L2_PIX_FMT_SBGGR8  : 1  'BA81'&lt;br /&gt;
# V4L2_PIX_FMT_MJPEG   : 2  'MJPEG'&lt;br /&gt;
# V4L2_PIX_FMT_JPEG    : 3  'JPEG'&lt;br /&gt;
# V4L2_PIX_FMT_RGB24   : 4  'RGB3'&lt;br /&gt;
# V4L2_PIX_FMT_UYVY    : 5  'UYVY'&lt;br /&gt;
# V4L2_PIX_FMT_YUYV    : 6  'YUYV'&lt;br /&gt;
# V4L2_PIX_FMT_YUV422P : 7  '422P'&lt;br /&gt;
# V4L2_PIX_FMT_YUV420  : 8  'YU12'&lt;br /&gt;
v4l2_palette 8&lt;br /&gt;
 &lt;br /&gt;
# The video input to be used (default: 8)&lt;br /&gt;
# Should normally be set to 0 or 1 for video/TV cards, and 8 for USB cameras&lt;br /&gt;
input 8&lt;br /&gt;
 &lt;br /&gt;
# The video norm to use (only for video capture and TV tuner cards)&lt;br /&gt;
# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)&lt;br /&gt;
norm 0&lt;br /&gt;
 &lt;br /&gt;
# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)&lt;br /&gt;
frequency 0&lt;br /&gt;
 &lt;br /&gt;
# Rotate image this number of degrees. The rotation affects all saved images as&lt;br /&gt;
# well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.&lt;br /&gt;
rotate 0&lt;br /&gt;
 &lt;br /&gt;
# Image width (pixels). Valid range: Camera dependent, default: 352&lt;br /&gt;
width 640&lt;br /&gt;
 &lt;br /&gt;
# Image height (pixels). Valid range: Camera dependent, default: 288&lt;br /&gt;
height 480&lt;br /&gt;
 &lt;br /&gt;
# Maximum number of frames to be captured per second.&lt;br /&gt;
# Valid range: 2-100. Default: 100 (almost no limit).&lt;br /&gt;
framerate 2&lt;br /&gt;
 &lt;br /&gt;
# Minimum time in seconds between capturing picture frames from the camera.&lt;br /&gt;
# Default: 0 = disabled - the capture rate is given by the camera framerate.&lt;br /&gt;
# This option is used when you want to capture images at a rate lower than 2 per second.&lt;br /&gt;
minimum_frame_time 0&lt;br /&gt;
 &lt;br /&gt;
# URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)&lt;br /&gt;
# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined&lt;br /&gt;
; netcam_url value&lt;br /&gt;
 &lt;br /&gt;
# Username and password for network camera (only if required). Default: not defined&lt;br /&gt;
# Syntax is user:password&lt;br /&gt;
; netcam_userpass value&lt;br /&gt;
 &lt;br /&gt;
# The setting for keep-alive of network socket, should improve performance on compatible net cameras.&lt;br /&gt;
# 1.0:         The historical implementation using HTTP/1.0, closing the socket after each http request.&lt;br /&gt;
# keep_alive:  Use HTTP/1.0 requests with keep alive header to reuse the same connection.&lt;br /&gt;
# 1.1:         Use HTTP/1.1 requests that support keep alive as default.&lt;br /&gt;
# Default: 1.0&lt;br /&gt;
netcam_http 1.0&lt;br /&gt;
 &lt;br /&gt;
# URL to use for a netcam proxy server, if required, e.g. &amp;quot;http://myproxy&amp;quot;.&lt;br /&gt;
# If a port number other than 80 is needed, use &amp;quot;http://myproxy:1234&amp;quot;.&lt;br /&gt;
# Default: not defined&lt;br /&gt;
; netcam_proxy value&lt;br /&gt;
 &lt;br /&gt;
# Set less strict jpeg checks for network cameras with a poor/buggy firmware.&lt;br /&gt;
# Default: off&lt;br /&gt;
netcam_tolerant_check off&lt;br /&gt;
 &lt;br /&gt;
# Let motion regulate the brightness of a video device (default: off).&lt;br /&gt;
# The auto_brightness feature uses the brightness option as its target value.&lt;br /&gt;
# If brightness is zero auto_brightness will adjust to average brightness value 128.&lt;br /&gt;
# Only recommended for cameras without auto brightness&lt;br /&gt;
auto_brightness off&lt;br /&gt;
 &lt;br /&gt;
# Set the initial brightness of a video device.&lt;br /&gt;
# If auto_brightness is enabled, this value defines the average brightness level&lt;br /&gt;
# which Motion will try and adjust to.&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
brightness 0&lt;br /&gt;
 &lt;br /&gt;
# Set the contrast of a video device.&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
contrast 0&lt;br /&gt;
 &lt;br /&gt;
# Set the saturation of a video device.&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
saturation 0&lt;br /&gt;
 &lt;br /&gt;
# Set the hue of a video device (NTSC feature).&lt;br /&gt;
# Valid range 0-255, default 0 = disabled&lt;br /&gt;
hue 0&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Round Robin (multiple inputs on same video device name)&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Number of frames to capture in each roundrobin step (default: 1)&lt;br /&gt;
roundrobin_frames 1&lt;br /&gt;
 &lt;br /&gt;
# Number of frames to skip before each roundrobin step (default: 1)&lt;br /&gt;
roundrobin_skip 1&lt;br /&gt;
 &lt;br /&gt;
# Try to filter out noise generated by roundrobin (default: off)&lt;br /&gt;
switchfilter off&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Motion Detection Settings:&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Threshold for number of changed pixels in an image that&lt;br /&gt;
# triggers motion detection (default: 1500)&lt;br /&gt;
threshold 1500&lt;br /&gt;
 &lt;br /&gt;
# Automatically tune the threshold down if possible (default: off)&lt;br /&gt;
threshold_tune off&lt;br /&gt;
 &lt;br /&gt;
# Noise threshold for the motion detection (default: 32)&lt;br /&gt;
noise_level 32&lt;br /&gt;
 &lt;br /&gt;
# Automatically tune the noise threshold (default: on)&lt;br /&gt;
noise_tune on&lt;br /&gt;
 &lt;br /&gt;
# Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)&lt;br /&gt;
# Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.&lt;br /&gt;
# (l)abeling must only be used once and the 'l' must be the last letter.&lt;br /&gt;
# Comment out to disable&lt;br /&gt;
despeckle EedDl&lt;br /&gt;
 &lt;br /&gt;
# Detect motion in predefined areas (1 - 9). Areas are numbered like that:  1 2 3&lt;br /&gt;
# A script (on_area_detected) is started immediately when motion is         4 5 6&lt;br /&gt;
# detected in one of the given areas, but only once during an event.        7 8 9&lt;br /&gt;
# One or more areas can be specified with this option. (Default: not defined)&lt;br /&gt;
; area_detect value&lt;br /&gt;
 &lt;br /&gt;
# PGM file to use as a sensitivity mask.&lt;br /&gt;
# Full path name to. (Default: not defined)&lt;br /&gt;
; mask_file value&lt;br /&gt;
 &lt;br /&gt;
# Dynamically create a mask file during operation (default: 0)&lt;br /&gt;
# Adjust speed of mask changes from 0 (off) to 10 (fast)&lt;br /&gt;
smart_mask_speed 0&lt;br /&gt;
 &lt;br /&gt;
# Ignore sudden massive light intensity changes given as a percentage of the picture&lt;br /&gt;
# area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled&lt;br /&gt;
lightswitch 0&lt;br /&gt;
 &lt;br /&gt;
# Picture frames must contain motion at least the specified number of frames&lt;br /&gt;
# in a row before they are detected as true motion. At the default of 1, all&lt;br /&gt;
# motion is detected. Valid range: 1 to thousands, recommended 1-5&lt;br /&gt;
minimum_motion_frames 1&lt;br /&gt;
 &lt;br /&gt;
# Specifies the number of pre-captured (buffered) pictures from before motion&lt;br /&gt;
# was detected that will be output at motion detection.&lt;br /&gt;
# Recommended range: 0 to 5 (default: 0)&lt;br /&gt;
# Do not use large values! Large values will cause Motion to skip video frames and&lt;br /&gt;
# cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead.&lt;br /&gt;
pre_capture 0&lt;br /&gt;
 &lt;br /&gt;
# Number of frames to capture after motion is no longer detected (default: 0)&lt;br /&gt;
post_capture 0&lt;br /&gt;
 &lt;br /&gt;
# Gap is the seconds of no motion detection that triggers the end of an event&lt;br /&gt;
# An event is defined as a series of motion images taken within a short timeframe.&lt;br /&gt;
# Recommended value is 60 seconds (Default). The value 0 is allowed and disables&lt;br /&gt;
# events causing all Motion to be written to one single mpeg file and no pre_capture.&lt;br /&gt;
gap 60&lt;br /&gt;
 &lt;br /&gt;
# Maximum length in seconds of an mpeg movie&lt;br /&gt;
# When value is exceeded a new mpeg file is created. (Default: 0 = infinite)&lt;br /&gt;
max_mpeg_time 0&lt;br /&gt;
 &lt;br /&gt;
# Always save images even if there was no motion (default: off)&lt;br /&gt;
output_all off&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Image File Output&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Output 'normal' pictures when motion is detected (default: on)&lt;br /&gt;
# Valid values: on, off, first, best, center&lt;br /&gt;
# When set to 'first', only the first picture of an event is saved.&lt;br /&gt;
# Picture with most motion of an event is saved when set to 'best'.&lt;br /&gt;
# Picture with motion nearest center of picture is saved when set to 'center'.&lt;br /&gt;
# Can be used as preview shot for the corresponding movie.&lt;br /&gt;
output_normal on&lt;br /&gt;
 &lt;br /&gt;
# Output pictures with only the pixels moving object (ghost images) (default: off)&lt;br /&gt;
output_motion off&lt;br /&gt;
 &lt;br /&gt;
# The quality (in percent) to be used by the jpeg compression (default: 75)&lt;br /&gt;
quality 75&lt;br /&gt;
 &lt;br /&gt;
# Output ppm images instead of jpeg (default: off)&lt;br /&gt;
ppm off&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# FFMPEG related options&lt;br /&gt;
# Film (mpeg) file output, and deinterlacing of the video input&lt;br /&gt;
# The options movie_filename and timelapse_filename are also used&lt;br /&gt;
# by the ffmpeg feature&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Use ffmpeg to encode mpeg movies in realtime (default: off)&lt;br /&gt;
ffmpeg_cap_new off&lt;br /&gt;
 &lt;br /&gt;
# Use ffmpeg to make movies with only the pixels moving&lt;br /&gt;
# object (ghost images) (default: off)&lt;br /&gt;
ffmpeg_cap_motion off&lt;br /&gt;
 &lt;br /&gt;
# Use ffmpeg to encode a timelapse movie&lt;br /&gt;
# Default value 0 = off - else save frame every Nth second&lt;br /&gt;
ffmpeg_timelapse 0&lt;br /&gt;
 &lt;br /&gt;
# The file rollover mode of the timelapse video&lt;br /&gt;
# Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual&lt;br /&gt;
ffmpeg_timelapse_mode daily&lt;br /&gt;
 &lt;br /&gt;
# Bitrate to be used by the ffmpeg encoder (default: 400000)&lt;br /&gt;
# This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)&lt;br /&gt;
ffmpeg_bps 500000&lt;br /&gt;
 &lt;br /&gt;
# Enables and defines variable bitrate for the ffmpeg encoder.&lt;br /&gt;
# ffmpeg_bps is ignored if variable bitrate is enabled.&lt;br /&gt;
# Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,&lt;br /&gt;
# or the range 2 - 31 where 2 means best quality and 31 is worst.&lt;br /&gt;
ffmpeg_variable_bitrate 0&lt;br /&gt;
 &lt;br /&gt;
# Codec to used by ffmpeg for the video compression.&lt;br /&gt;
# Timelapse mpegs are always made in mpeg1 format independent from this option.&lt;br /&gt;
# Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.&lt;br /&gt;
# mpeg1 - gives you files with extension .mpg&lt;br /&gt;
# mpeg4 or msmpeg4 - gives you files with extension .avi&lt;br /&gt;
# msmpeg4 is recommended for use with Windows Media Player because&lt;br /&gt;
# it requires no installation of codec on the Windows client.&lt;br /&gt;
# swf - gives you a flash film with extension .swf&lt;br /&gt;
# flv - gives you a flash video with extension .flv&lt;br /&gt;
# ffv1 - FF video codec 1 for Lossless Encoding ( experimental )&lt;br /&gt;
# mov - QuickTime ( testing )&lt;br /&gt;
ffmpeg_video_codec swf&lt;br /&gt;
 &lt;br /&gt;
# Use ffmpeg to deinterlace video. Necessary if you use an analog camera&lt;br /&gt;
# and see horizontal combing on moving objects in video or pictures.&lt;br /&gt;
# (default: off)&lt;br /&gt;
ffmpeg_deinterlace off&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Snapshots (Traditional Periodic Webcam File Output)&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Make automated snapshot every N seconds (default: 0 = disabled)&lt;br /&gt;
snapshot_interval 0&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Text Display&lt;br /&gt;
# %Y = year, %m = month, %d = date,&lt;br /&gt;
# %H = hour, %M = minute, %S = second, %T = HH:MM:SS,&lt;br /&gt;
# %v = event, %q = frame number, %t = thread (camera) number,&lt;br /&gt;
# %D = changed pixels, %N = noise level, n = new line,&lt;br /&gt;
# %i and %J = width and height of motion area,&lt;br /&gt;
# %K and %L = X and Y coordinates of motion center&lt;br /&gt;
# %C = value defined by text_event - do not use with text_event!&lt;br /&gt;
# You can put quotation marks around the text to allow&lt;br /&gt;
# leading spaces&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Locate and draw a box around the moving object.&lt;br /&gt;
# Valid values: on, off and preview (default: off)&lt;br /&gt;
# Set to 'preview' will only draw a box in preview_shot pictures.&lt;br /&gt;
locate off&lt;br /&gt;
 &lt;br /&gt;
# Draws the timestamp using same options as C function strftime(3)&lt;br /&gt;
# Default: %Y-%m-%dn%T = date in ISO format and time in 24 hour clock&lt;br /&gt;
# Text is placed in lower right corner&lt;br /&gt;
text_right %Y-%m-%dn%T-%q&lt;br /&gt;
 &lt;br /&gt;
# Draw a user defined text on the images using same options as C function strftime(3)&lt;br /&gt;
# Default: Not defined = no text&lt;br /&gt;
# Text is placed in lower left corner&lt;br /&gt;
; text_left value&lt;br /&gt;
 &lt;br /&gt;
# Draw the number of changed pixed on the images (default: off)&lt;br /&gt;
# Will normally be set to off except when you setup and adjust the motion settings&lt;br /&gt;
# Text is placed in upper right corner&lt;br /&gt;
text_changes off&lt;br /&gt;
 &lt;br /&gt;
# This option defines the value of the special event conversion specifier %C&lt;br /&gt;
# You can use any conversion specifier in this option except %C. Date and time&lt;br /&gt;
# values are from the timestamp of the first image in the current event.&lt;br /&gt;
# Default: %Y%m%d%H%M%S&lt;br /&gt;
# The idea is that %C can be used filenames and text_left/right for creating&lt;br /&gt;
# a unique identifier for each event.&lt;br /&gt;
text_event %Y%m%d%H%M%S&lt;br /&gt;
 &lt;br /&gt;
# Draw characters at twice normal size on images. (default: off)&lt;br /&gt;
text_double off&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Target Directories and filenames For Images And Films&lt;br /&gt;
# For the options snapshot_, jpeg_, mpeg_ and timelapse_filename&lt;br /&gt;
# you can use conversion specifiers&lt;br /&gt;
# %Y = year, %m = month, %d = date,&lt;br /&gt;
# %H = hour, %M = minute, %S = second,&lt;br /&gt;
# %v = event, %q = frame number, %t = thread (camera) number,&lt;br /&gt;
# %D = changed pixels, %N = noise level,&lt;br /&gt;
# %i and %J = width and height of motion area,&lt;br /&gt;
# %K and %L = X and Y coordinates of motion center&lt;br /&gt;
# %C = value defined by text_event&lt;br /&gt;
# Quotation marks round string are allowed.&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Target base directory for pictures and films&lt;br /&gt;
# Recommended to use absolute path. (Default: current working directory)&lt;br /&gt;
target_dir /var/www/motion&lt;br /&gt;
 &lt;br /&gt;
# File path for snapshots (jpeg or ppm) relative to target_dir&lt;br /&gt;
# Default: %v-%Y%m%d%H%M%S-snapshot&lt;br /&gt;
# Default value is equivalent to legacy oldlayout option&lt;br /&gt;
# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot&lt;br /&gt;
# File extension .jpg or .ppm is automatically added so do not include this.&lt;br /&gt;
# Note: A symbolic link called lastsnap.jpg created in the target_dir will always&lt;br /&gt;
# point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'&lt;br /&gt;
snapshot_filename %v-%Y%m%d%H%M%S-snapshot&lt;br /&gt;
 &lt;br /&gt;
# File path for motion triggered images (jpeg or ppm) relative to target_dir&lt;br /&gt;
# Default: %v-%Y%m%d%H%M%S-%q&lt;br /&gt;
# Default value is equivalent to legacy oldlayout option&lt;br /&gt;
# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q&lt;br /&gt;
# File extension .jpg or .ppm is automatically added so do not include this&lt;br /&gt;
# Set to 'preview' together with best-preview feature enables special naming&lt;br /&gt;
# convention for preview shots. See motion guide for details&lt;br /&gt;
jpeg_filename %v-%Y%m%d%H%M%S-%q&lt;br /&gt;
 &lt;br /&gt;
# File path for motion triggered ffmpeg films (mpeg) relative to target_dir&lt;br /&gt;
# Default: %v-%Y%m%d%H%M%S&lt;br /&gt;
# Default value is equivalent to legacy oldlayout option&lt;br /&gt;
# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S&lt;br /&gt;
# File extension .mpg or .avi is automatically added so do not include this&lt;br /&gt;
# This option was previously called ffmpeg_filename&lt;br /&gt;
movie_filename %v-%Y%m%d%H%M%S&lt;br /&gt;
 &lt;br /&gt;
# File path for timelapse mpegs relative to target_dir&lt;br /&gt;
# Default: %Y%m%d-timelapse&lt;br /&gt;
# Default value is near equivalent to legacy oldlayout option&lt;br /&gt;
# For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse&lt;br /&gt;
# File extension .mpg is automatically added so do not include this&lt;br /&gt;
timelapse_filename %Y%m%d-timelapse&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Live Webcam Server&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# The mini-http server listens to this port for requests (default: 0 = disabled)&lt;br /&gt;
webcam_port 0&lt;br /&gt;
 &lt;br /&gt;
# Quality of the jpeg (in percent) images produced (default: 50)&lt;br /&gt;
webcam_quality 50&lt;br /&gt;
 &lt;br /&gt;
# Output frames at 1 fps when no motion is detected and increase to the&lt;br /&gt;
# rate given by webcam_maxrate when motion is detected (default: off)&lt;br /&gt;
webcam_motion off&lt;br /&gt;
 &lt;br /&gt;
# Maximum framerate for webcam streams (default: 1)&lt;br /&gt;
webcam_maxrate 1&lt;br /&gt;
 &lt;br /&gt;
# Restrict webcam connections to localhost only (default: on)&lt;br /&gt;
webcam_localhost on&lt;br /&gt;
 &lt;br /&gt;
# Limits the number of images per connection (default: 0 = unlimited)&lt;br /&gt;
# Number can be defined by multiplying actual webcam rate by desired number of seconds&lt;br /&gt;
# Actual webcam rate is the smallest of the numbers framerate and webcam_maxrate&lt;br /&gt;
webcam_limit 0&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# HTTP Based Control&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# TCP/IP port for the http server to listen on (default: 0 = disabled)&lt;br /&gt;
control_port 8080&lt;br /&gt;
 &lt;br /&gt;
# Restrict control connections to localhost only (default: on)&lt;br /&gt;
control_localhost off&lt;br /&gt;
 &lt;br /&gt;
# Output for http server, select off to choose raw text plain (default: on)&lt;br /&gt;
control_html_output on&lt;br /&gt;
 &lt;br /&gt;
# Authentication for the http based control. Syntax username:password&lt;br /&gt;
# Default: not defined (Disabled)&lt;br /&gt;
; control_authentication value&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Tracking (Pan/Tilt)&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic, 5=uvcvideo)&lt;br /&gt;
# The generic type enables the definition of motion center and motion size to&lt;br /&gt;
# be used with the conversion specifiers for options like on_motion_detected&lt;br /&gt;
track_type 0&lt;br /&gt;
 &lt;br /&gt;
# Enable auto tracking (default: off)&lt;br /&gt;
track_auto off&lt;br /&gt;
 &lt;br /&gt;
# Serial port of motor (default: none)&lt;br /&gt;
; track_port value&lt;br /&gt;
 &lt;br /&gt;
# Motor number for x-axis (default: 0)&lt;br /&gt;
track_motorx 0&lt;br /&gt;
 &lt;br /&gt;
# Motor number for y-axis (default: 0)&lt;br /&gt;
track_motory 0&lt;br /&gt;
 &lt;br /&gt;
# Maximum value on x-axis (default: 0)&lt;br /&gt;
track_maxx 0&lt;br /&gt;
 &lt;br /&gt;
# Maximum value on y-axis (default: 0)&lt;br /&gt;
track_maxy 0&lt;br /&gt;
 &lt;br /&gt;
# ID of an iomojo camera if used (default: 0)&lt;br /&gt;
track_iomojo_id 0&lt;br /&gt;
 &lt;br /&gt;
# Angle in degrees the camera moves per step on the X-axis&lt;br /&gt;
# with auto-track (default: 10)&lt;br /&gt;
# Currently only used with pwc type cameras&lt;br /&gt;
track_step_angle_x 10&lt;br /&gt;
 &lt;br /&gt;
# Angle in degrees the camera moves per step on the Y-axis&lt;br /&gt;
# with auto-track (default: 10)&lt;br /&gt;
# Currently only used with pwc type cameras&lt;br /&gt;
track_step_angle_y 10&lt;br /&gt;
 &lt;br /&gt;
# Delay to wait for after tracking movement as number&lt;br /&gt;
# of picture frames (default: 10)&lt;br /&gt;
track_move_wait 10&lt;br /&gt;
 &lt;br /&gt;
# Speed to set the motor to (stepper motor option) (default: 255)&lt;br /&gt;
track_speed 255&lt;br /&gt;
 &lt;br /&gt;
# Number of steps to make (stepper motor option) (default: 40)&lt;br /&gt;
track_stepsize 40&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# External Commands, Warnings and Logging:&lt;br /&gt;
# You can use conversion specifiers for the on_xxxx commands&lt;br /&gt;
# %Y = year, %m = month, %d = date,&lt;br /&gt;
# %H = hour, %M = minute, %S = second,&lt;br /&gt;
# %v = event, %q = frame number, %t = thread (camera) number,&lt;br /&gt;
# %D = changed pixels, %N = noise level,&lt;br /&gt;
# %i and %J = width and height of motion area,&lt;br /&gt;
# %K and %L = X and Y coordinates of motion center&lt;br /&gt;
# %C = value defined by text_event&lt;br /&gt;
# %f = filename with full path&lt;br /&gt;
# %n = number indicating filetype&lt;br /&gt;
# Both %f and %n are only defined for on_picture_save,&lt;br /&gt;
# on_movie_start and on_movie_end&lt;br /&gt;
# Quotation marks round string are allowed.&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Do not sound beeps when detecting motion (default: on)&lt;br /&gt;
# Note: Motion never beeps when running in daemon mode.&lt;br /&gt;
quiet on&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when an event starts. (default: none)&lt;br /&gt;
# An event starts at first motion detected after a period of no motion defined by gap&lt;br /&gt;
on_event_start /usr/local/bin/motion_accour&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when an event ends after a period of no motion&lt;br /&gt;
# (default: none). The period of no motion is defined by option gap.&lt;br /&gt;
; on_event_end value&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)&lt;br /&gt;
# To give the filename as an argument to a command append it with %f&lt;br /&gt;
; on_picture_save value&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when a motion frame is detected (default: none)&lt;br /&gt;
; on_motion_detected value&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when motion in a predefined area is detected&lt;br /&gt;
# Check option 'area_detect'. (default: none)&lt;br /&gt;
; on_area_detected value&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when a movie file (.mpg|.avi) is created. (default: none)&lt;br /&gt;
# To give the filename as an argument to a command append it with %f&lt;br /&gt;
; on_movie_start value&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)&lt;br /&gt;
# To give the filename as an argument to a command append it with %f&lt;br /&gt;
; on_movie_end value&lt;br /&gt;
 &lt;br /&gt;
# Command to be executed when a camera can't be opened or if it is lost&lt;br /&gt;
# NOTE: There is situations when motion doesn't detect a lost camera!&lt;br /&gt;
# It depends on the driver, some drivers don't detect a lost camera at all&lt;br /&gt;
# Some hang the motion thread. Some even hang the PC! (default: none)&lt;br /&gt;
; on_camera_lost value&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Common Options For MySQL and PostgreSQL database features.&lt;br /&gt;
# Options require the MySQL/PostgreSQL options to be active also.&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Log to the database when creating motion triggered image file  (default: on)&lt;br /&gt;
sql_log_image off&lt;br /&gt;
 &lt;br /&gt;
# Log to the database when creating a snapshot image file (default: on)&lt;br /&gt;
sql_log_snapshot off&lt;br /&gt;
 &lt;br /&gt;
# Log to the database when creating motion triggered mpeg file (default: off)&lt;br /&gt;
sql_log_mpeg off&lt;br /&gt;
 &lt;br /&gt;
# Log to the database when creating timelapse mpeg file (default: off)&lt;br /&gt;
sql_log_timelapse off&lt;br /&gt;
 &lt;br /&gt;
# SQL query string that is sent to the database&lt;br /&gt;
# Use same conversion specifiers has for text features&lt;br /&gt;
# Additional special conversion specifiers are&lt;br /&gt;
# %n = the number representing the file_type&lt;br /&gt;
# %f = filename with full path&lt;br /&gt;
# Default value:&lt;br /&gt;
# insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')&lt;br /&gt;
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')&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Database Options For MySQL&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Mysql database to log to (default: not defined)&lt;br /&gt;
; mysql_db value&lt;br /&gt;
 &lt;br /&gt;
# The host on which the database is located (default: localhost)&lt;br /&gt;
mysql_host localhost&lt;br /&gt;
 &lt;br /&gt;
# User account name for MySQL database (default: not defined)&lt;br /&gt;
; mysql_user value&lt;br /&gt;
 &lt;br /&gt;
# User password for MySQL database (default: not defined)&lt;br /&gt;
; mysql_password value&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Database Options For PostgreSQL&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# PostgreSQL database to log to (default: not defined)&lt;br /&gt;
; pgsql_db value&lt;br /&gt;
 &lt;br /&gt;
# The host on which the database is located (default: localhost)&lt;br /&gt;
pgsql_host localhost&lt;br /&gt;
 &lt;br /&gt;
# User account name for PostgreSQL database (default: not defined)&lt;br /&gt;
; pgsql_user value&lt;br /&gt;
 &lt;br /&gt;
# User password for PostgreSQL database (default: not defined)&lt;br /&gt;
; pgsql_password value&lt;br /&gt;
 &lt;br /&gt;
# Port on which the PostgreSQL database is located (default: 5432)&lt;br /&gt;
pgsql_port 5432&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
############################################################&lt;br /&gt;
# Video Loopback Device (vloopback project)&lt;br /&gt;
############################################################&lt;br /&gt;
 &lt;br /&gt;
# Output images to a video4linux loopback device&lt;br /&gt;
# The value '-' means next available (default: not defined)&lt;br /&gt;
; video_pipe value&lt;br /&gt;
 &lt;br /&gt;
# Output motion images to a video4linux loopback device&lt;br /&gt;
# The value '-' means next available (default: not defined)&lt;br /&gt;
; motion_video_pipe value&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
##############################################################&lt;br /&gt;
# Thread config files - One for each camera.&lt;br /&gt;
# Except if only one camera - You only need this config file.&lt;br /&gt;
# If you have more than one camera you MUST define one thread&lt;br /&gt;
# config file for each camera in addition to this config file.&lt;br /&gt;
##############################################################&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
; thread /usr/local/etc/thread1.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Paleidžiame motion&lt;br /&gt;
 motion&lt;br /&gt;
Nauji judesiai bus rašomi į /var/www/motion, jpg formatu.&lt;br /&gt;
&lt;br /&gt;
[[Category:Armbian]]&lt;/div&gt;</summary>
		<author><name>\dev\null</name></author>
	</entry>
</feed>