forked from Breakthrough/DVR-Scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdvr-scan.cfg
142 lines (104 loc) · 4.51 KB
/
dvr-scan.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#
# This file contains all possible DVR-Scan config options. Lines beginning
# with a # are treated as comments and ignored. Remove them when setting a
# config value.
#
# A config file path can be specified via the -c/--config option.
# DVR-Scan also looks for a `dvr-scan.cfg` file in the following locations:
#
# Windows: C:/Users/%USERNAME%/AppData/Local/DVR-Scan/dvr-scan.cfg
#
# Linux: ~/.config/DVR-Scan/dvr-scan.cfg
# $XDG_CONFIG_HOME/dvr-scan.cfg
#
# Mac: ~/Library/Preferences/DVR-Scan/dvr-scan.cfg
#
# Run `dvr-scan --help` to see the exact path on your system which will be
# used (it will be listed under the help text for the -c/--config option).
#
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# GENERAL
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# Suppress all console output.
#quiet-mode = no
# Verbosity of console output (debug, info, warning, error).
# If set to debug, overrides quiet-mode unless set via command line.
#verbosity = info
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# INPUT / OUTPUT
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# Directory to output all created files. If unset, files will be created
# in the current working directory.
#output-dir = /usr/tmp/somedir
# Method of generating output videos. Possible values are: SCAN_ONLY, OPENCV,
# FFMPEG, COPY. Not all features are supported in FFMPEG/COPY mode.
#output-mode = OPENCV
# Arguments to add before the input when calling ffmpeg in output-mode FFMPEG
# or COPY. Note that `-y` and `-nostdin` are always added.
#ffmpeg-input-args = -v error
# Encoder parameters used when generating output files in FFMPEG mode.
#ffmpeg-output-args = -map 0 -c:v libx264 -preset fast -crf 21 -c:a aac -sn
# Four-letter identifier of the encoder/video codec to use in OPENCV mode.
# Possible values are: XVID, MP4V, MP42, H264
#opencv-fourcc = XVID
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# MOTION EVENTS
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# Amount of time which must have motion in each frame to trigger an event.
#min-event-length = 2
# Amount of time to include before an event.
#time-before-event = 1.5s
# Amount of time to include after an event.
#time-post-event = 2.0s
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# DETECTION PARAMETERS
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# Type of background subtraction to use, one of: MOG2, CNT, MOG2_CUDA
# bg-subtractor = MOG2
# Threshold representing amount of motion in a frame (or the ROI, if set) for
# a motion event to be triggered. Lower values require less movement, and are
# more sensitive to motion. If too high, some movement may not be detected,
# while too low of a threshold can result in false detection events.
#threshold = 0.15
# Size (in pixels) of the noise reduction kernel. Must be an odd integer
# greater than 1, or -1 to auto-set based on video resolution.
#kernel-size = -1
# Region of interest of the form (x, y) / (w, h), where x, y is the top left
# corner, and w, h is the width/height in pixels. Brackets, commas, and slahes
# are optional.
# region-of-interest = 100, 110 / 50, 50
# Integer factor to shrink video before processing. Values <= 1 have no effect.
#downscale-factor = 0
# Number of frames to skip between processing when looking for motion events.
#frame-skip = 0
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# OVERLAYS
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#
# Timecode Overlay
#
# Enable/disable overlay.
#time-code = yes
# Margin from edge in pixels.
#time-code-margin = 5
# Scale factor for text size.
#time-code-font-scale = 2.0
# Thickness of font (integer values only).
#time-code-font-thickness = 2
# Text color in the form (R,G,B) or 0xFFFFFF
#time-code-font-color = 255, 255, 255
# Text background color in the form (R,G,B) or 0xFFFFFF
#time-code-bg-color = 0, 0, 0
#
# Bounding Box Overlay
#
# Enable/disable overlay.
#bounding-box = yes
# Box edge color in the form (R,G,B) or 0xFFFFFF
#bounding-box-color = 255, 0, 0
# Thickness of bounding box, relative to largest edge of input video.
#bounding-box-thickness = 0.0032
# Amount of temporal smoothing to apply.
#bounding-box-smooth-time = 0.1s
# Minimum side length of bounding box, relative to largest edge of input video.
#bounding-box-min-size = 0.032