Skip to content

Commit ffb34a6

Browse files
author
github-actions
committed
[docs] @Breakthrough: Generate Documentation
Source: main (1dc1dea) Destination: head
1 parent eaad3db commit ffb34a6

10 files changed

Lines changed: 24 additions & 17 deletions

File tree

1.53 KB
Binary file not shown.
5.21 KB
Binary file not shown.
1.07 KB
Binary file not shown.
150 Bytes
Binary file not shown.
11.2 KB
Binary file not shown.

docs/head/api/detector.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
5555
<dd class="field-odd"><ul class="simple">
5656
<li><p><strong>mode</strong> (<a class="reference internal" href="#scenedetect.detector.FlashFilter.Mode" title="scenedetect.detector.FlashFilter.Mode"><em>Mode</em></a>) – The mode to use when enforcing <cite>length</cite>.</p></li>
57-
<li><p><strong>length</strong> (<em>int</em>) – Number of frames to use when filtering cuts.</p></li>
57+
<li><p><strong>length</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em>) – Minimum scene length. Accepts an <cite>int</cite> (number of frames), <cite>float</cite> (seconds),
58+
or <cite>str</cite> (timecode, e.g. <code class="docutils literal notranslate"><span class="pre">&quot;0.6s&quot;</span></code> or <code class="docutils literal notranslate"><span class="pre">&quot;00:00:00.600&quot;</span></code>).</p></li>
5859
</ul>
5960
</dd>
6061
</dl>

docs/head/api/detectors.html

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@
7171
<dd class="field-odd"><ul class="simple">
7272
<li><p><strong>adaptive_threshold</strong> (<em>float</em>) – Threshold (float) that score ratio must exceed to trigger a
7373
new scene (see frame metric adaptive_ratio in stats file).</p></li>
74-
<li><p><strong>min_scene_len</strong> (<em>int</em>) – Once a cut is detected, this many frames must pass before a new one can
75-
be added to the scene list. Can be an int or FrameTimecode type.</p></li>
74+
<li><p><strong>min_scene_len</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em>) – Once a cut is detected, this much time must pass before a new one can
75+
be added to the scene list. Accepts an int (frames), float (seconds), or
76+
str (e.g. <code class="docutils literal notranslate"><span class="pre">&quot;0.6s&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;00:00:00.600&quot;</span></code>).</p></li>
7677
<li><p><strong>window_width</strong> (<em>int</em>) – Size of window (number of frames) before and after each frame to
7778
average together in order to detect deviations from the mean. Must be at least 1.</p></li>
7879
<li><p><strong>min_content_val</strong> (<em>float</em>) – Minimum threshold (float) that the content_val must exceed in order to
@@ -152,8 +153,9 @@
152153
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
153154
<dd class="field-odd"><ul class="simple">
154155
<li><p><strong>threshold</strong> (<em>float</em>) – Threshold the average change in pixel intensity must exceed to trigger a cut.</p></li>
155-
<li><p><strong>min_scene_len</strong> (<em>int</em>) – Once a cut is detected, this many frames must pass before a new one can
156-
be added to the scene list. Can be an int or FrameTimecode type.</p></li>
156+
<li><p><strong>min_scene_len</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em>) – Once a cut is detected, this much time must pass before a new one can
157+
be added to the scene list. Accepts an int (frames), float (seconds), or
158+
str (e.g. <code class="docutils literal notranslate"><span class="pre">&quot;0.6s&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;00:00:00.600&quot;</span></code>).</p></li>
157159
<li><p><strong>weights</strong> (<a class="reference internal" href="#scenedetect.detectors.content_detector.ContentDetector.Components" title="scenedetect.detectors.content_detector.ContentDetector.Components"><em>ContentDetector.Components</em></a>) – Weight to place on each component when calculating frame score
158160
(<cite>content_val</cite> in a statsfile, the value <cite>threshold</cite> is compared against).</p></li>
159161
<li><p><strong>luma_only</strong> (<em>bool</em>) – If True, only considers changes in the luminance channel of the video.
@@ -304,8 +306,9 @@
304306
<li><p><strong>size</strong> (<em>int</em>) – Size of square of low frequency data to use for the DCT</p></li>
305307
<li><p><strong>lowpass</strong> (<em>int</em>) – How much high frequency information to filter from the DCT. A value of 2 means
306308
keep lower 1/2 of the frequency data, 4 means only keep 1/4, etc…</p></li>
307-
<li><p><strong>min_scene_len</strong> (<em>int</em>) – Once a cut is detected, this many frames must pass before a new one can
308-
be added to the scene list. Can be an int or FrameTimecode type.</p></li>
309+
<li><p><strong>min_scene_len</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em>) – Once a cut is detected, this much time must pass before a new one can
310+
be added to the scene list. Accepts an int (frames), float (seconds), or
311+
str (e.g. <code class="docutils literal notranslate"><span class="pre">&quot;0.6s&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;00:00:00.600&quot;</span></code>).</p></li>
309312
</ul>
310313
</dd>
311314
</dl>
@@ -370,8 +373,9 @@
370373
YUV, and normalized based on the number of bins. Higher dicfferences imply greater
371374
change in content, so larger threshold values are less sensitive to cuts.</p></li>
372375
<li><p><strong>bins</strong> (<em>int</em>) – Number of bins to use for the histogram.</p></li>
373-
<li><p><strong>min_scene_len</strong> (<em>int</em>) – Once a cut is detected, this many frames must pass before a new one can
374-
be added to the scene list. Can be an int or FrameTimecode type.</p></li>
376+
<li><p><strong>min_scene_len</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em>) – Once a cut is detected, this much time must pass before a new one can
377+
be added to the scene list. Accepts an int (frames), float (seconds), or
378+
str (e.g. <code class="docutils literal notranslate"><span class="pre">&quot;0.6s&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;00:00:00.600&quot;</span></code>).</p></li>
375379
</ul>
376380
</dd>
377381
</dl>
@@ -485,8 +489,9 @@ <h2>Examples:<a class="headerlink" href="#examples" title="Permalink to this hea
485489
<dd class="field-odd"><ul class="simple">
486490
<li><p><strong>threshold</strong> (<em>float</em>) – 8-bit intensity value that each pixel value (R, G, and B)
487491
must be &lt;= to in order to trigger a fade in/out.</p></li>
488-
<li><p><strong>min_scene_len</strong> (<em>int</em>) – Once a cut is detected, this many frames must pass before a new one can
489-
be added to the scene list. Can be an int or FrameTimecode type.</p></li>
492+
<li><p><strong>min_scene_len</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em>) – Once a cut is detected, this much time must pass before a new one can
493+
be added to the scene list. Accepts an int (frames), float (seconds), or
494+
str (e.g. <code class="docutils literal notranslate"><span class="pre">&quot;0.6s&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;00:00:00.600&quot;</span></code>).</p></li>
490495
<li><p><strong>fade_bias</strong> (<em>float</em>) – Float between -1.0 and +1.0 representing the percentage of
491496
timecode skew for the start of a scene (-1.0 causing a cut at the
492497
fade-to-black, 0.0 in the middle, and +1.0 causing the cut to be

docs/head/api/output.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
<li><p><strong>video</strong> (<a class="reference internal" href="video_stream.html#scenedetect.video_stream.VideoStream" title="scenedetect.video_stream.VideoStream"><em>VideoStream</em></a>) – A VideoStream object corresponding to the scene list.
4949
Note that the video will be closed/re-opened and seeked through.</p></li>
5050
<li><p><strong>num_images</strong> (<em>int</em>) – Number of images to generate for each scene. Minimum is 1.</p></li>
51-
<li><p><strong>frame_margin</strong> (<em>int</em>) – Number of frames to pad each scene around the beginning
52-
and end (e.g. moves the first/last image into the scene by N frames).
53-
Can set to 0, but will result in some video files failing to extract
54-
the very last frame.</p></li>
51+
<li><p><strong>frame_margin</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em>) – Padding around the beginning and end of each scene used when
52+
selecting which frames to extract. Accepts an int (frames), float (seconds),
53+
or str (e.g. <code class="docutils literal notranslate"><span class="pre">&quot;0.1s&quot;</span></code>, <code class="docutils literal notranslate"><span class="pre">&quot;00:00:00.100&quot;</span></code>). Can be 0, but some video files
54+
may then fail to extract the very last frame.</p></li>
5555
<li><p><strong>image_extension</strong> (<em>str</em>) – Type of image to save (must be one of ‘jpg’, ‘png’, or ‘webp’).</p></li>
5656
<li><p><strong>encoder_param</strong> (<em>int</em>) – Quality/compression efficiency, based on type of image:
5757
‘jpg’ / ‘webp’: Quality 0-100, higher is better quality. 100 is lossless for webp.

docs/head/cli/config_file.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ <h2>Example<a class="headerlink" href="#example" title="Permalink to this headin
323323
<span class="c1"># Compression amount for png images (0 to 9). Only affects size, not quality.</span>
324324
<span class="c1">#compression = 3</span>
325325

326-
<span class="c1"># Number of frames to ignore around each scene cut when selecting frames.</span>
326+
<span class="c1"># Padding around each scene cut when selecting frames. Accepts a number of frames (1),</span>
327+
<span class="c1"># seconds with `s` suffix (0.1s), or timecode (00:00:00.100).</span>
327328
<span class="c1">#frame-margin = 1</span>
328329

329330
<span class="c1"># Resize by scale factor (0.5 = half, 1.0 = same, 2.0 = double).</span>

docs/head/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)