1###########################################################
2# Capture device options
3############################################################
4
5camera_name {{ CAMERA["NAME"] }}
6camera_id {{ CAMERA["ID"] }}
7
8# Videodevice to be used for capturing (default /dev/video0)
9# for FreeBSD default is /dev/bktr0
10videodevice {{ CAMERA["DEVICE"] }}
11
12# v4l2_palette allows one to choose preferable palette to be use by motion
13# See motion_guide.html for the valid options and values. (default: 17)
14v4l2_palette 17
15
16# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
17# This is ONLY used for FreeBSD. Leave it commented out for Linux
18; tunerdevice /dev/tuner0
19
20# The video input to be used (default: -1)
21# Should normally be set to 0 or 1 for video/TV cards, and -1 for USB cameras
22# Set to 0 for uvideo(4) on OpenBSD
23input -1
24
25# The video norm to use (only for video capture and TV tuner cards)
26# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
27norm 0
28
29# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
30frequency 0
31
32# Override the power line frequency for the webcam. (normally not necessary)
33# Values:
34# -1 : Do not modify device setting
35# 0 : Power line frequency Disabled
36# 1 : 50hz
37# 2 : 60hz
38# 3 : Auto
39power_line_frequency -1
40
41# Rotate image this number of degrees. The rotation affects all saved images as
42# well as movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
43rotate 0
44
45# Flip image over a given axis (vertical or horizontal), vertical means from left to right
46# horizontal means top to bottom. Valid values: none, v and h.
47flip_axis none
48
49# Image width (pixels). Valid range: Camera dependent, default: 320
50width {{ CAMERA["IMAGE"]["WIDTH"] }}
51
52# Image height (pixels). Valid range: Camera dependent, default: 240
53height {{ CAMERA["IMAGE"]["HEIGHT"] }}
54
55# Maximum number of frames to be captured per second.
56# Valid range: 2-100. Default: 100 (almost no limit).
57framerate {{ CAMERA["IMAGE"]["FRAME_RATE"] }}
58
59# Minimum time in seconds between capturing picture frames from the camera.
60# Default: 0 = disabled - the capture rate is given by the camera framerate.
61# This option is used when you want to capture images at a rate lower than 2 per second.
62minimum_frame_time 0
63
64# Full Network Camera URL. Valid Services: http:// ftp:// mjpg:// rtsp:// mjpeg:// file:// rtmp://
65; netcam_url value
66
67# Username and password for network camera if required. Syntax is user:password
68; netcam_userpass value
69
70# The setting for keep-alive of network socket, should improve performance on compatible net cameras.
71# off: The historical implementation using HTTP/1.0, closing the socket after each http request.
72# force: Use HTTP/1.0 requests with keep alive header to reuse the same connection.
73# on: Use HTTP/1.1 requests that support keep alive as default.
74# Default: off
75netcam_keepalive off
76
77# URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
78# If a port number other than 80 is needed, use "http://myproxy:1234".
79# Default: not defined
80; netcam_proxy value
81
82# Set less strict jpeg checks for network cameras with a poor/buggy firmware.
83# Default: off
84netcam_tolerant_check off
85
86# RTSP connection uses TCP to communicate to the camera. Can prevent image corruption.
87# Default: on
88rtsp_uses_tcp on
89
90# Name of camera to use if you are using a camera accessed through OpenMax/MMAL
91# Default: Not defined
92; mmalcam_name vc.ril.camera
93
94# Camera control parameters (see raspivid/raspistill tool documentation)
95# Default: Not defined
96; mmalcam_control_params -hf
97
98# Let motion regulate the brightness of a video device (default: off).
99# The auto_brightness feature uses the brightness option as its target value.
100# If brightness is zero auto_brightness will adjust to average brightness value 128.
101# Only recommended for cameras without auto brightness
102auto_brightness {{ CAMERA["IMAGE"]["AUTO_BRIGHTNESS"] }}
103
104# Set the initial brightness of a video device.
105# If auto_brightness is enabled, this value defines the average brightness level
106# which Motion will try and adjust to.
107# Valid range 0-255, default 0 = disabled
108brightness {{ CAMERA["IMAGE"]["BRIGHTNESS"] }}
109
110# Set the contrast of a video device.
111# Valid range 0-255, default 0 = disabled
112contrast {{ CAMERA["IMAGE"]["CONTRAST"] }}
113
114# Set the saturation of a video device.
115# Valid range 0-255, default 0 = disabled
116saturation {{ CAMERA["IMAGE"]["SATURATION"] }}
117
118# Set the hue of a video device (NTSC feature).
119# Valid range 0-255, default 0 = disabled
120hue {{ CAMERA["IMAGE"]["HUE"] }}