Skip to content

Commit a1712f6

Browse files
author
github-actions
committed
[docs] @Breakthrough: Generate Documentation
Source: main (0d12be7) Destination: head
1 parent c0ed805 commit a1712f6

25 files changed

Lines changed: 209 additions & 56 deletions
4.38 KB
Binary file not shown.
14.2 KB
Binary file not shown.
2.13 KB
Binary file not shown.

‎docs/head/.doctrees/cli.doctree‎

2.18 KB
Binary file not shown.
420 Bytes
Binary file not shown.
31.8 KB
Binary file not shown.

‎docs/head/_sources/cli.rst.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@ Options
416416

417417
Default: ``True``
418418

419+
.. option:: --min-out-length TIMECODE
420+
421+
Minimum time spent faded out before a cut is allowed. Ignores shorter fades even when the minimum scene length is met. Also applies to a final fade-out, including the last processed frame. Zero allows fades of any duration. TIMECODE can be specified in frames (4), seconds with an `s` suffix (0.4s), or timecode (00:00:00.400).
422+
423+
Default: ``0.1s``. The Python API default remains ``0``.
424+
419425
.. option:: -m TIMECODE, --min-scene-len TIMECODE
420426

421427
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (-m 100), in seconds with `s` suffix (-m 3.5s), or timecode (-m 00:01:52.778).

‎docs/head/api/detectors.html‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479
<p>This detector is available from the command-line as the <cite>detect-threshold</cite> command.</p>
480480
<dl class="py class">
481481
<dt class="sig sig-object py" id="scenedetect.detectors.threshold_detector.ThresholdDetector">
482-
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ThresholdDetector</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">threshold</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">12</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">min_scene_len</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">15</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">fade_bias</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">add_final_scene</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">method</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">Method.FLOOR</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">block_size</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#scenedetect.detectors.threshold_detector.ThresholdDetector" title="Permalink to this definition"></a></dt>
482+
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">ThresholdDetector</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">threshold</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">12</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">min_scene_len</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">15</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">fade_bias</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">add_final_scene</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">method</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">Method.FLOOR</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">block_size</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">min_out_length</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#scenedetect.detectors.threshold_detector.ThresholdDetector" title="Permalink to this definition"></a></dt>
483483
<dd><p>Detects fast cuts/slow fades in from and out to a given threshold level.</p>
484484
<p>Detects both fast cuts and slow fades so long as an appropriate threshold
485485
is chosen (especially taking into account the minimum grey/black level).</p>
@@ -499,6 +499,9 @@
499499
generate an additional scene at this timecode.</p></li>
500500
<li><p><strong>method</strong> (<a class="reference internal" href="#scenedetect.detectors.threshold_detector.ThresholdDetector.Method" title="scenedetect.detectors.threshold_detector.ThresholdDetector.Method"><em>Method</em></a>) – How to treat <cite>threshold</cite> when detecting fade events.</p></li>
501501
<li><p><strong>block_size</strong> – [DEPRECATED] DO NOT USE. For backwards compatibility.</p></li>
502+
<li><p><strong>min_out_length</strong> (<em>int</em><em> | </em><em>float</em><em> | </em><em>str</em><em> | </em><a class="reference internal" href="common.html#scenedetect.common.Timecode" title="scenedetect.common.Timecode"><em>Timecode</em></a><em> | </em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a>) – Minimum time spent faded out before a cut can be added. Accepts the
503+
same formats as min_scene_len. Shorter fades are ignored. Defaults to 0,
504+
allowing fades of any duration.</p></li>
502505
</ul>
503506
</dd>
504507
</dl>
@@ -542,7 +545,8 @@
542545
<p>Only writes the scene cut if add_final_scene is true, and the last fade
543546
that was detected was a fade-out. There is no bias applied to this cut
544547
(since there is no corresponding fade-in) so it will be located at the
545-
exact frame where the fade-out crossed the detection threshold.</p>
548+
exact frame where the fade-out crossed the detection threshold. The fade-out
549+
must also meet min_out_length, including the last processed frame.</p>
546550
<dl class="field-list simple">
547551
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
548552
<dd class="field-odd"><p><strong>timecode</strong> (<a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a>) – </p>

‎docs/head/api/output.html‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<dl class="field-list simple">
5050
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
5151
<dd class="field-odd"><ul class="simple">
52-
<li><p><strong>output_csv_file</strong> (<em>TextIO</em><em> | </em><em>str</em><em> | </em><em>Path</em>) – Handle to open file in write mode, or a filesystem path. A path is
52+
<li><p><strong>output_csv_file</strong> (<em>str</em><em> | </em><em>PathLike</em><em>[</em><em>str</em><em>] </em><em>| </em><em>bytes</em><em> | </em><em>PathLike</em><em>[</em><em>bytes</em><em>] </em><em>| </em><em>TextIO</em>) – Handle to open file in write mode, or a filesystem path. A path is
5353
opened with a context manager so the file is closed after writing.</p></li>
5454
<li><p><strong>scene_list</strong> (<em>list</em><em>[</em><em>tuple</em><em>[</em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>, </em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>]</em><em>]</em>) – List of pairs of FrameTimecodes denoting each scene’s start/end FrameTimecode.</p></li>
5555
<li><p><strong>include_cut_list</strong> (<em>bool</em>) – Bool indicating if the first row should include the timecodes where
@@ -74,7 +74,8 @@
7474
<dl class="field-list simple">
7575
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
7676
<dd class="field-odd"><ul class="simple">
77-
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>Path</em>) – Path to write the EDL file to. Parent directories must exist.</p></li>
77+
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>PathLike</em><em>[</em><em>str</em><em>] </em><em>| </em><em>bytes</em><em> | </em><em>PathLike</em><em>[</em><em>bytes</em><em>] </em><em>| </em><em>TextIO</em>) – Open text file or path to write the EDL file to. Parent directories must
78+
exist. When a path is provided, the file is closed after writing.</p></li>
7879
<li><p><strong>scene_list</strong> (<em>list</em><em>[</em><em>tuple</em><em>[</em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>, </em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>]</em><em>]</em>) – List of scenes as pairs of FrameTimecodes denoting each scene’s start/end.</p></li>
7980
<li><p><strong>title</strong> (<em>str</em>) – Title header written as <code class="docutils literal notranslate"><span class="pre">TITLE:</span></code> in the EDL.</p></li>
8081
<li><p><strong>reel</strong> (<em>str</em>) – Reel name used for each event. Typically 2-8 uppercase characters.</p></li>
@@ -96,7 +97,8 @@
9697
<dl class="field-list simple">
9798
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
9899
<dd class="field-odd"><ul class="simple">
99-
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>Path</em>) – Path to write the xmeml file to. Parent directories must exist.</p></li>
100+
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>PathLike</em><em>[</em><em>str</em><em>] </em><em>| </em><em>bytes</em><em> | </em><em>PathLike</em><em>[</em><em>bytes</em><em>] </em><em>| </em><em>TextIO</em>) – Open text file or path to write the xmeml file to. Parent directories must
101+
exist. When a path is provided, the file is closed after writing.</p></li>
100102
<li><p><strong>scene_list</strong> (<em>list</em><em>[</em><em>tuple</em><em>[</em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>, </em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>]</em><em>]</em>) – List of scenes as pairs of FrameTimecodes. Must not be empty.</p></li>
101103
<li><p><strong>video_path</strong> (<em>str</em><em> | </em><em>Path</em>) – Path to the source video file; written into the output as a <code class="docutils literal notranslate"><span class="pre">file://</span></code> URI.</p></li>
102104
<li><p><strong>frame_rate</strong> (<em>Fraction</em>) – Source frame rate as a rational <cite>Fraction</cite>.</p></li>
@@ -121,7 +123,8 @@
121123
<dl class="field-list simple">
122124
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
123125
<dd class="field-odd"><ul class="simple">
124-
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>Path</em>) – Path to write the FCPXML file to. Parent directories must exist.</p></li>
126+
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>PathLike</em><em>[</em><em>str</em><em>] </em><em>| </em><em>bytes</em><em> | </em><em>PathLike</em><em>[</em><em>bytes</em><em>] </em><em>| </em><em>TextIO</em>) – Open text file or path to write the FCPXML file to. Parent directories must
127+
exist. When a path is provided, the file is closed after writing.</p></li>
125128
<li><p><strong>scene_list</strong> (<em>list</em><em>[</em><em>tuple</em><em>[</em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>, </em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>]</em><em>]</em>) – List of scenes as pairs of FrameTimecodes. Must not be empty.</p></li>
126129
<li><p><strong>video_path</strong> (<em>str</em><em> | </em><em>Path</em>) – Path to the source video file; written into the output as a <code class="docutils literal notranslate"><span class="pre">file://</span></code> URI.</p></li>
127130
<li><p><strong>frame_rate</strong> (<em>Fraction</em>) – Source frame rate as a rational <cite>Fraction</cite> (e.g. <code class="docutils literal notranslate"><span class="pre">Fraction(24000,</span> <span class="pre">1001)</span></code>).</p></li>
@@ -164,7 +167,8 @@
164167
<dl class="field-list simple">
165168
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
166169
<dd class="field-odd"><ul class="simple">
167-
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>Path</em>) – Path to write the OTIO file to. Parent directories must exist.</p></li>
170+
<li><p><strong>output_path</strong> (<em>str</em><em> | </em><em>PathLike</em><em>[</em><em>str</em><em>] </em><em>| </em><em>bytes</em><em> | </em><em>PathLike</em><em>[</em><em>bytes</em><em>] </em><em>| </em><em>TextIO</em>) – Open text file or path to write the OTIO file to. Parent directories must
171+
exist. When a path is provided, the file is closed after writing.</p></li>
168172
<li><p><strong>scene_list</strong> (<em>list</em><em>[</em><em>tuple</em><em>[</em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>, </em><a class="reference internal" href="common.html#scenedetect.common.FrameTimecode" title="scenedetect.common.FrameTimecode"><em>FrameTimecode</em></a><em>]</em><em>]</em>) – List of scenes as pairs of FrameTimecodes.</p></li>
169173
<li><p><strong>video_path</strong> (<em>str</em><em> | </em><em>Path</em>) – Path to the source video file; written into the output as an absolute path.</p></li>
170174
<li><p><strong>frame_rate</strong> (<em>Fraction</em>) – Source frame rate as a rational <cite>Fraction</cite>. Exported as a float, as the

‎docs/head/api/platform.html‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@
249249
</dl>
250250
</dd></dl>
251251

252+
<dl class="py data">
253+
<dt class="sig sig-object py" id="scenedetect.platform.BytePath">
254+
<span class="sig-name descname"><span class="pre">BytePath</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">bytes</span> <span class="pre">|</span> <span class="pre">os.PathLike[bytes]</span></em><a class="headerlink" href="#scenedetect.platform.BytePath" title="Permalink to this definition"></a></dt>
255+
<dd><p>Type hint for byte-based filesystem paths. Accepts <cite>bytes</cite> or any object implementing
256+
<code class="xref py py-class docutils literal notranslate"><span class="pre">os.PathLike</span></code> that returns <cite>bytes</cite>.</p>
257+
</dd></dl>
258+
252259
<dl class="py data">
253260
<dt class="sig sig-object py" id="scenedetect.platform.DEBUG_MODE">
254261
<span class="sig-name descname"><span class="pre">DEBUG_MODE</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bool</span></em><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">False</span></em><a class="headerlink" href="#scenedetect.platform.DEBUG_MODE" title="Permalink to this definition"></a></dt>
@@ -351,6 +358,7 @@ <h3>Navigation</h3>
351358
<li class="toctree-l2"><a class="reference internal" href="#scenedetect.platform.get_system_version_info"><code class="docutils literal notranslate"><span class="pre">get_system_version_info()</span></code></a></li>
352359
<li class="toctree-l2"><a class="reference internal" href="#scenedetect.platform.init_logger"><code class="docutils literal notranslate"><span class="pre">init_logger()</span></code></a></li>
353360
<li class="toctree-l2"><a class="reference internal" href="#scenedetect.platform.invoke_command"><code class="docutils literal notranslate"><span class="pre">invoke_command()</span></code></a></li>
361+
<li class="toctree-l2"><a class="reference internal" href="#scenedetect.platform.BytePath"><code class="docutils literal notranslate"><span class="pre">BytePath</span></code></a></li>
354362
<li class="toctree-l2"><a class="reference internal" href="#scenedetect.platform.DEBUG_MODE"><code class="docutils literal notranslate"><span class="pre">DEBUG_MODE</span></code></a></li>
355363
<li class="toctree-l2"><a class="reference internal" href="#scenedetect.platform.StrPath"><code class="docutils literal notranslate"><span class="pre">StrPath</span></code></a></li>
356364
</ul>

0 commit comments

Comments
 (0)