mirror of
https://github.com/Motion-Project/motion.git
synced 2025-12-23 23:18:21 -05:00
Only basic webp compression is supported (the only tunable is 0-100% compression adjustment), without EXIF metadata. Motion build scripts are configured to build in the support by default and will emit an error if the needed library is missing. Suport can be manualy disabled at configuration stage adding --without-libwebp. Documentation update will follow in a separate commit. Tested on x86-64 Linux only.
72 lines
2.7 KiB
Plaintext
72 lines
2.7 KiB
Plaintext
# @sysconfdir@/motion/camera4.conf
|
|
#
|
|
# This config file was generated by @PACKAGE_NAME@ @PACKAGE_VERSION@
|
|
|
|
###########################################################
|
|
# Capture device options
|
|
############################################################
|
|
|
|
# Camera Id
|
|
# Consistent identification number to assign to each camera across multiple
|
|
# invocations of Motion.
|
|
# Default: The order when the camera file was read
|
|
# camera_id = 4
|
|
|
|
# Videodevice to be used for capturing (default /dev/video0)
|
|
# for FreeBSD default is /dev/bktr0
|
|
videodevice /dev/video3
|
|
|
|
# The video input to be used (default: -1)
|
|
# Should normally be set to 1 for video/TV cards, and -1 for USB cameras
|
|
input -1
|
|
|
|
# Draw a user defined text on the images using same options as C function strftime(3)
|
|
# Default: Not defined = no text
|
|
# Text is placed in lower left corner
|
|
text_left CAMERA 4
|
|
|
|
|
|
############################################################
|
|
# Target Directories and filenames For Images And Films
|
|
# For the options snapshot_, picture_, mpeg_ and timelapse_filename
|
|
# you can use conversion specifiers
|
|
# %Y = year, %m = month, %d = date,
|
|
# %H = hour, %M = minute, %S = second,
|
|
# %v = event, %q = frame number, %t = camera id number,
|
|
# %D = changed pixels, %N = noise level,
|
|
# %i and %J = width and height of motion area,
|
|
# %K and %L = X and Y coordinates of motion center
|
|
# %C = value defined by text_event
|
|
# Quotation marks round string are allowed.
|
|
############################################################
|
|
|
|
# Target base directory for pictures and films
|
|
# Recommended to use absolute patch. (Default: current working directory)
|
|
#target_dir /tmp/motion/cam4
|
|
|
|
# File path for motion triggered images (jpeg, ppm or webp) relative to target_dir
|
|
# Default: %v-%Y%m%d%H%M%S-%q
|
|
# Default value is equivalent to legacy oldlayout option
|
|
# For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
|
|
# File extension .jpg, .ppm or .webp is automatically added so do not include this
|
|
# Set to 'preview' together with best-preview feature enables special naming
|
|
# convention for preview shots. See motion guide for details
|
|
picture_filename CAM4_%v-%Y%m%d%H%M%S-%q
|
|
|
|
|
|
############################################################
|
|
# Live Stream Server
|
|
############################################################
|
|
|
|
# The mini-http server listens to this port for requests (default: 0 = disabled)
|
|
stream_port 8084
|
|
|
|
# Command to be executed when a picture (.ppm|.jpg|.webp) is saved (default: none)
|
|
# The filename of the picture is appended as an argument for the command.
|
|
#on_picture_save /usr/local/motion-extras/camparse2.pl
|
|
|
|
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
|
|
# Filename of movie is appended as an argument for the command.
|
|
#on_movie_end /usr/local/motion-extras/mpegparse2.pl
|
|
|