|
71 | 71 | <dd class="field-odd"><ul class="simple"> |
72 | 72 | <li><p><strong>adaptive_threshold</strong> (<em>float</em>) – Threshold (float) that score ratio must exceed to trigger a |
73 | 73 | 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">"0.6s"</span></code>, <code class="docutils literal notranslate"><span class="pre">"00:00:00.600"</span></code>).</p></li> |
76 | 77 | <li><p><strong>window_width</strong> (<em>int</em>) – Size of window (number of frames) before and after each frame to |
77 | 78 | average together in order to detect deviations from the mean. Must be at least 1.</p></li> |
78 | 79 | <li><p><strong>min_content_val</strong> (<em>float</em>) – Minimum threshold (float) that the content_val must exceed in order to |
|
152 | 153 | <dt class="field-odd">Parameters<span class="colon">:</span></dt> |
153 | 154 | <dd class="field-odd"><ul class="simple"> |
154 | 155 | <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">"0.6s"</span></code>, <code class="docutils literal notranslate"><span class="pre">"00:00:00.600"</span></code>).</p></li> |
157 | 159 | <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 |
158 | 160 | (<cite>content_val</cite> in a statsfile, the value <cite>threshold</cite> is compared against).</p></li> |
159 | 161 | <li><p><strong>luma_only</strong> (<em>bool</em>) – If True, only considers changes in the luminance channel of the video. |
|
304 | 306 | <li><p><strong>size</strong> (<em>int</em>) – Size of square of low frequency data to use for the DCT</p></li> |
305 | 307 | <li><p><strong>lowpass</strong> (<em>int</em>) – How much high frequency information to filter from the DCT. A value of 2 means |
306 | 308 | 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">"0.6s"</span></code>, <code class="docutils literal notranslate"><span class="pre">"00:00:00.600"</span></code>).</p></li> |
309 | 312 | </ul> |
310 | 313 | </dd> |
311 | 314 | </dl> |
|
370 | 373 | YUV, and normalized based on the number of bins. Higher dicfferences imply greater |
371 | 374 | change in content, so larger threshold values are less sensitive to cuts.</p></li> |
372 | 375 | <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">"0.6s"</span></code>, <code class="docutils literal notranslate"><span class="pre">"00:00:00.600"</span></code>).</p></li> |
375 | 379 | </ul> |
376 | 380 | </dd> |
377 | 381 | </dl> |
@@ -485,8 +489,9 @@ <h2>Examples:<a class="headerlink" href="#examples" title="Permalink to this hea |
485 | 489 | <dd class="field-odd"><ul class="simple"> |
486 | 490 | <li><p><strong>threshold</strong> (<em>float</em>) – 8-bit intensity value that each pixel value (R, G, and B) |
487 | 491 | must be <= 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">"0.6s"</span></code>, <code class="docutils literal notranslate"><span class="pre">"00:00:00.600"</span></code>).</p></li> |
490 | 495 | <li><p><strong>fade_bias</strong> (<em>float</em>) – Float between -1.0 and +1.0 representing the percentage of |
491 | 496 | timecode skew for the start of a scene (-1.0 causing a cut at the |
492 | 497 | fade-to-black, 0.0 in the middle, and +1.0 causing the cut to be |
|
0 commit comments