forked from Breakthrough/PySceneDetect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscenedetect.cfg
More file actions
219 lines (154 loc) · 5.87 KB
/
Copy pathscenedetect.cfg
File metadata and controls
219 lines (154 loc) · 5.87 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
#
# This file contains every possible PySceneDetect config option.
#
# A config file path can be specified via the -c/--config option, or
# creating a `scenedetect.cfg` file the following location:
#
# Windows: C:/Users/%USERNAME%/AppData/Local/PySceneDetect/scenedetect.cfg
#
# Linux: ~/.config/PySceneDetect/scenedetect.cfg
# $XDG_CONFIG_HOME/scenedetect.cfg
#
# Mac: ~/Library/Preferences/PySceneDetect/scenedetect.cfg
#
# Run `scenedetect 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).
#
#
# GLOBAL OPTIONS
#
[global]
# Output directory for written files. If unset, defaults to working directory.
#output = /usr/tmp/scenedetect/
# Video backend interface, must be one of: opencv, pyav.
#backend = opencv
# Downscale frame using sub-sampling ratio of N. Set to 1 for no downscaling.
# If unset, applied automatically based on input video resolution.
#downscale = 1
# Minimum length of a given scene (shorter scenes will be merged).
#min-scene-len = 0.6s
# Merge last scene if it is shorter than min-scene-len (yes/no)
#merge-last-scene = no
# Drop scenes shorter than min-scene-len instead of merging (yes/no)
#drop-short-scenes = no
# Verbosity of console output (debug, info, warning, error, or none).
# Set to none for the same behavior as specifying -q/--quiet.
#verbosity = debug
# Amount of frames to skip between performing scene detection. Not recommended.
#frame-skip = 0
#
# DETECTOR OPTIONS
#
[detect-content]
# Sensitivity threshold from 0 to 255. Lower values are more sensitive.
#threshold = 27
# Discard colour information and only use luminance (yes/no).
#luma-only = no
# Minimum length of a given scene (overrides [global] option).
#min-scene-len = 0.6s
[detect-threshold]
# Average pixel intensity from 0-255 at which a fade event is triggered.
#threshold = 12
# Percent from -100.0 to 100.0 of timecode skew for where cuts should be placed.
# -100 indicates start frame, +100 indicates end frame, and 0 is the center.
#fade-bias 0
# Generate a scene from the end of the last fade out to the end of the video.
#add-last-scene = yes
# Discard colour information and only use luminance (yes/no).
#luma-only = no
# Minimum length of a given scene (overrides [global] option).
#min-scene-len = 0.6s
[detect-adaptive]
# Frame score threshold, refers to the `adaptive_ratio` metric in stats file.
#threshold = 27
# Minimum threshold that `content_val` metric from detect-content must exceed.
#min-delta-hsv = 15
# Window size (number of frames) before and after each frame to average together.
#frame-window = 2
# Discard colour information and only use luminance (yes/no).
#luma-only = no
# Minimum length of a given scene (overrides [global] option).
#min-scene-len = 0.6s
#
# COMMAND OPTIONS
#
[split-video]
# Folder to output videos. Overrides [global] output option.
#output = /usr/tmp/encoded
# Filename template to use as output.
#filename = $VIDEO_NAME-Scene-$SCENE_NUMBER
# Suppress output from split tool.
#quiet = no
# Use higher bitrate for better output quality (y/n), equivalent to setting
# rate-factor = 17 and preset = slow.
#high-quality = no
# Use codec copying instead of encoding. Significantly faster, but can result
# in inaccurate splits due to keyframe positioning.
#copy = no
# Use mkvmerge for copying instead of encoding. Has the same drawbacks as copy = yes.
#mkvmerge = no
# x264 rate-factor, higher indicates lower quality / smaller filesize.
# 0 = lossless, 17 = visually identical, 22 = default.
#rate-factor = 22
# One of the ffmpeg x264 presets (e.g. veryfast, fast, medium, slow, slower).
#preset = veryfast
# Arguments to specify to ffmpeg for encoding. Quotes are not required.
#args = -c:v libx264 -preset veryfast -crf 22 -c:a aac
[save-images]
# Folder to output videos. Overrides [global] output option.
#output = /usr/tmp/images
# Filename format of created images. Can use $VIDEO_NAME, $SCENE_NUMBER,
# and $IMAGE_NUMBER in the name. Extension not required.
#filename = $VIDEO_NAME-Scene-$SCENE_NUMBER-$IMAGE_NUMBER
# Number of images to generate for each scene.
#num-images = 3
# Image format (jpeg, png, webp).
#format = jpeg
# Image quality (jpeg/webp). Default is 95 for jpeg, 100 for webp
#quality = 95
# Compression amount for png images (0 to 9). Does not affect quality.
#compression = 3
# Number of frames to skip at beginning/end of scene.
#frame-margin = 1
# Amount to scale images by (0.5 = half, 1.0 = same, 2.0 = double).
#scale = 1.0
# Override image height/width.
#height = 0
#width = 0
[export-html]
# Filename format of created HTML file. Can use $VIDEO_NAME in the name.
#filename = $VIDEO_NAME-Scenes.html
# Override <img> element width/height.
#image-height = 0
#image-width = 0
# Do not generate <img> elements in resulting table (yes/no).
#no-images = no
[list-scenes]
# Folder to output scene list. Overrides [global] output option.
#output = /usr/tmp/images
# Filename format of created scene list. Can use $VIDEO_NAME in the name.
#filename = $VIDEO_NAME-Scenes.csv
# Skip the cutting list as the first row in the CSV file (yes/no).
# Set this option if compliance with RFC 4180 is required.
#skip-cuts = no
# Output only to command-line, don't write file (yes/no).
#no-output-file = no
# Suppress printing of scene list.
#quiet = no
#
# BACKEND OPTIONS
#
[backend-opencv]
# Number of times to keep reading frames after one fails to decode.
# If set to 0, processing will stop on the first decode failure.
#max-decode-attempts = 5
[backend-pyav]
# Threading mode to use: [none, slice, frame, auto]. Slice mode is the
# PyAV default, and auto/frame are the fastest.
#threading-mode = auto
# Suppress ffmpeg log output. Default is `no`.
#
# WARNING: When threading-mode is set to auto/frame, setting
# `suppress-output = yes` can cause the the program to not exit properly
# on Linux/OSX (press Ctrl+C to quit if this occurs).
#suppress-output = no