Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Breakthrough/PySceneDetect
/ functions
Functions
660 in github.com/Breakthrough/PySceneDetect
⨍
Functions
660
◇
Types & classes
69
↳
Endpoints
18
Function
test_cli_min_scene_len_smoke
(test_video_file, tmp_path)
tests/release/test_cli_permutations.py:127
Function
test_cli_moviepy_accepts_frame_rate_override
The MoviePy backend supports the -f/--frame-rate override in v0.7. The CLI must run end-to-end without raising NotImplementedError, and the overri
tests/test_cli.py:672
Function
test_cli_no_args
Test `scenedetect` command invoked without any arguments.
tests/test_cli.py:108
Function
test_cli_range_smoke
(test_video_file, tmp_path)
tests/release/test_cli_permutations.py:57
Function
test_cli_save_edl
Test `save-edl` command.
tests/test_cli.py:916
Function
test_cli_save_edl_start_timecode_smoke
save-edl --start-timecode produces an EDL where event timestamps are offset by the requested start. Both SMPTE (HH:MM:SS:FF) and 8-digit (HHMMSSFF
tests/release/test_cli_permutations.py:228
Function
test_cli_save_edl_with_params
Test `save-edl` command but override the other options.
tests/test_cli.py:946
Function
test_cli_save_fcp_fcp7
Test `save-fcp --format fcp7` produces a valid FCP7 xmeml file.
tests/test_cli.py:1378
Function
test_cli_save_fcp_fcpx
Test `save-fcp --format fcpx` produces a valid FCPXML 1.9 file.
tests/test_cli.py:1329
Function
test_cli_save_fcp_smoke
save-fcp writes a well-formed Final Cut Pro XML.
tests/release/test_cli_permutations.py:146
Function
test_cli_save_html
Test `save-html` command.
tests/test_cli.py:660
Function
test_cli_save_html_smoke
save-html replaces the deprecated export-html and produces an HTML report. Note: save-html lacks its own --output option and ignores the global -
tests/release/test_cli_permutations.py:198
Function
test_cli_save_images
Test `save-images` command.
tests/test_cli.py:601
Function
test_cli_save_images_path_handling
Test `save-images` ability to handle UTF-8 paths.
tests/test_cli.py:618
Function
test_cli_save_images_rotation
Test that `save-images` command rotates images correctly with the default backend.
tests/test_cli.py:641
Function
test_cli_save_otio
Test `save-otio` command.
tests/test_cli.py:982
Function
test_cli_save_otio_no_audio
Test `save-otio` command without audio.
tests/test_cli.py:1199
Function
test_cli_save_qp
Test `save-qp` command with and without a custom filename format.
tests/test_cli.py:726
Function
test_cli_save_qp_no_shift
Test `save-qp` command with start time shifting disabled.
tests/test_cli.py:769
Function
test_cli_save_qp_smoke
save-qp writes a QP file with `<frame> I <shift>` lines for scene boundaries.
tests/release/test_cli_permutations.py:170
Function
test_cli_save_qp_start_offset
Test `save-qp` command but using a shifted start time.
tests/test_cli.py:746
Function
test_cli_split_video_ffmpeg
Test `split-video` command using ffmpeg.
tests/test_cli.py:516
Function
test_cli_split_video_mkvmerge
Test `split-video` command using mkvmerge.
tests/test_cli.py:553
Function
test_cli_stats_roundtrip
(test_video_file, tmp_path)
tests/release/test_cli_permutations.py:76
Function
test_cli_time_end
Validate processed frames without start time being set. End time is the end frame to stop at, but with duration, we stop at start + duration - 1.
tests/test_cli.py:150
Function
test_cli_time_end_of_video
Validate frame number/timecode alignment at the end of the video. The end timecode includes presentation time and therefore should represent the f
tests/test_cli.py:275
Function
test_cli_time_scene_boundary
Validate frames that are processed when crossing a scene boundary. End time is the end frame to stop at, but with duration, we stop at start + dur
tests/test_cli.py:222
Function
test_cli_time_start
Validate processed frames with both start and end/duration set. End time is the end frame to stop at, but with duration, we stop at start + durati
tests/test_cli.py:186
Function
test_cli_time_validate_options
Validate behavior of setting parameters via the `time` command.
tests/test_cli.py:142
Function
test_comparisons_with_bare_timecode
`FrameTimecode` comparison operators should accept a bare :class:`Timecode` operand.
tests/test_timecode.py:466
Function
test_corrupt_video
Test that backend handles video with corrupt frame gracefully with defaults.
tests/test_video_stream.py:361
Function
test_crop_invalid
()
tests/test_scene_manager.py:199
Function
test_cross_backend_consistency
(rel_path, is_vfr)
tests/release/test_backends.py:45
Function
test_cross_backend_threshold_determinism
detect-threshold cut frames must be backend-deterministic across PyAV/OpenCV/MoviePy. Regression coverage for the changelog item: previously the
tests/release/test_backends.py:94
Function
test_deprecated_modules_emits_warning_on_import
()
tests/test_api.py:162
Function
test_detect_fades
(test_case: TestCase)
tests/test_detectors.py:198
Function
test_detect_fast_cuts
(test_case: TestCase)
tests/test_detectors.py:188
Function
test_detect_scenes_callback
Test SceneManager detect_scenes method with a callback function. Note that the API signature of the callback will undergo breaking changes in v1.
tests/test_scene_manager.py:109
Function
test_detect_scenes_callback_adaptive
Test SceneManager detect_scenes method with a callback function and a detector which requires frame buffering. Note that the API signature of
tests/test_scene_manager.py:145
Function
test_detect_scenes_crop
(test_video_file)
tests/test_scene_manager.py:182
Function
test_detector_metrics
Test passing StatsManager to a SceneManager and using it for storing the frame metrics from a ContentDetector.
tests/test_stats_manager.py:76
Function
test_detectors_with_stats
Test all detectors functionality with a StatsManager.
tests/test_detectors.py:206
Function
test_equal_frame_rate_legacy_alias
`equal_framerate()` is the soft-deprecated alias for `equal_frame_rate()` (issue #548). Both forms should produce identical results for every acce
tests/test_timecode.py:110
Function
test_equality
Test FrameTimecode equality (==, __eq__) operator.
tests/test_timecode.py:268
Function
test_fades_clip
Clip containing fades in/out.
tests/conftest.py:152
Function
test_frame_num_and_frame_rate_are_read_only
Per migration guide, `frame_num`, `frame_rate`, and the legacy `framerate` alias are read-only properties; callers must construct a new FrameTimec
tests/test_timecode.py:101
Function
test_frame_rate_for_vfr
For Timecode-backed instances, frame_rate is the approximation passed via fps.
tests/test_timecode.py:89
Function
test_frame_rate_property
`frame_rate` returns an exact Fraction; `framerate` returns the float equivalent.
tests/test_timecode.py:70
Function
test_frame_timecode_converts_ntsc_float_fps
End-to-end: passing a float NTSC rate into the FrameTimecode constructor must yield the exact Fraction representation, not the lossy float. This i
tests/test_timecode.py:386
Function
test_framerate
Test FrameTimecode constructor argument "fps".
tests/test_timecode.py:32
Function
test_framerate_legacy_alias
`framerate=` is the soft-deprecated alias for `frame_rate=` (issue #548). All backends must accept both forms and produce the same `frame_rate`.
tests/test_video_stream.py:349
Function
test_framerate_to_fraction_non_ntsc_fallback
Non-NTSC, non-integer framerates should fall back to limit_denominator and not be misclassified as NTSC.
tests/test_timecode.py:417
Function
test_get_frames
Test FrameTimecode get_frames() method.
tests/test_timecode.py:211
Function
test_get_scene_list_start_in_scene
Test SceneManager `get_scene_list()` method with the `start_in_scene` flag.
tests/test_scene_manager.py:64
Function
test_get_seconds
Test FrameTimecode get_seconds() method.
tests/test_timecode.py:231
Function
test_get_timecode
Test FrameTimecode get_timecode() method.
tests/test_timecode.py:247
Function
test_golden_regression
(golden_file)
tests/release/test_golden.py:53
Function
test_identity
Test FrameTimecode values, when used in init return the same values
tests/test_timecode.py:336
Function
test_image_sequence
Path to a short image sequence (from counter.mp4).
tests/conftest.py:146
Function
test_input_path_unicode
All backends must open videos at non-ASCII filesystem paths. This is a silent failure mode on platforms with mbcs default codecs; the failure mode
tests/release/test_validation.py:125
Function
test_invalid_path
Ensure correct exception is thrown if the path does not exist.
tests/test_video_stream.py:343
Function
test_invoke_command
Ensures the function exists and is callable without throwing an exception.
tests/test_platform.py:25
Function
test_load_corrupt_stats
Test loading a corrupted stats file created by outputting data in the wrong format.
tests/test_stats_manager.py:171
Function
test_load_empty_stats
Test loading an empty stats file, ensuring it results in no errors.
tests/test_stats_manager.py:92
Function
test_load_hardcoded_file
Test loading a stats file with some hard-coded data generated by this test case.
tests/test_stats_manager.py:108
Function
test_long_command
[Windows Only] Ensures that a command string too large to be handled is translated to the correct exception for error handling.
tests/test_platform.py:34
Function
test_long_video_stress
(long_video)
tests/release/test_long_video.py:39
Function
test_metrics
Test StatsManager metric registration/setting/getting with a set of pre-defined key-value pairs (metric_dict).
tests/test_stats_manager.py:46
Function
test_min_scene_len_accepts_time_values
Detectors accept min_scene_len as int (frames), float (seconds), or str (timecode).
tests/test_detectors.py:237
Function
test_min_scene_len_accepts_timecode_like
Detector ``min_scene_len`` and FlashFilter ``length`` should accept any TimecodeLike, including :class:`FrameTimecode` / :class:`Timecode`.
tests/test_timecode.py:482
Function
test_movie_clip
Movie clip containing fast cuts.
tests/conftest.py:111
Function
test_ntsc_framerate_detection
Common NTSC framerates should be detected from float values.
tests/test_timecode.py:374
Function
test_ntsc_framerate_detection_arbitrary_base
NTSC detection should work for any base rate, not a hardcoded list (e.g. 48000/1001 for HFR cinema).
tests/test_timecode.py:403
Function
test_ntsc_framerate_detection_low_precision
Low-precision float reports (e.g. truncated to 3 decimals) should still snap to the NTSC rational.
tests/test_timecode.py:410
Function
test_open_image_sequence
Test opening an image sequence. Currently, only VideoStreamCv2 supports this.
tests/test_backend_opencv.py:29
Function
test_output_csv_roundtrip
(test_video_file, tmp_path)
tests/release/test_validation.py:55
Function
test_output_image_extensions
(test_video_file, tmp_path)
tests/release/test_validation.py:69
Function
test_output_otio_rational_time_precision
(test_video_file, tmp_path)
tests/release/test_validation.py:96
Function
test_output_split_video
(test_video_file, tmp_path)
tests/release/test_validation.py:150
Function
test_precision
Test rounding and precision, which has implications for rounding behavior.
tests/test_timecode.py:345
Method
test_properties
Validate video properties: frame size, frame rate, duration, aspect ratio, etc.
tests/test_video_stream.py:142
Function
test_rational_framerate_precision
Rational framerates should round-trip frame/second conversions without drift.
tests/test_timecode.py:365
Method
test_read
Validate basic `read` functionality.
tests/test_video_stream.py:156
Method
test_read_eof
Ensure calling `read()` handles the end of the video correctly.
tests/test_video_stream.py:291
Method
test_read_no_decode
Validate invoking `read` with `decode` set to False.
tests/test_video_stream.py:165
Method
test_reset
Test `reset()` functions as expected.
tests/test_video_stream.py:198
Function
test_save_images
Test scenedetect.scene_manager.save_images function.
tests/test_output.py:97
Function
test_save_images_frame_margin_accepts_time_values
save_images() should accept frame counts (int), seconds (float), and timecode strings.
tests/test_output.py:172
Function
test_save_images_rejects_negative_margin
(test_video_file, tmp_path: Path)
tests/test_output.py:196
Function
test_save_images_singlethreaded
Test scenedetect.scene_manager.save_images function.
tests/test_output.py:134
Function
test_save_images_zero_width_scene
Test scenedetect.scene_manager.save_images guards against zero width scenes.
tests/test_output.py:204
Function
test_save_load_from_video
Test generating and saving some frame metrics from TEST_VIDEO_FILE to a file on disk, and loading the file back to ensure the loaded frame metrics
tests/test_stats_manager.py:137
Function
test_save_no_detect_scenes
Test saving without calling detect_scenes.
tests/test_stats_manager.py:101
Function
test_scene_list
Test SceneManager get_scene_list method with VideoStreamCv2/ContentDetector.
tests/test_scene_manager.py:28
Method
test_seek
Validate `seek()` functionality with different offset types.
tests/test_video_stream.py:210
Method
test_seek_invalid
Test `seek()` throws correct exception when specifying in invalid seek value.
tests/test_video_stream.py:325
Method
test_seek_past_eof
Validate calling `seek()` to offset past end of video.
tests/test_video_stream.py:304
Method
test_seek_start
Validate behaviour of `seek()` at the start of a video.
tests/test_video_stream.py:256
Function
test_split_video_ffmpeg_default
(tmp_path, test_movie_clip)
tests/test_output.py:47
Function
test_split_video_ffmpeg_formatter
(tmp_path, test_movie_clip)
tests/test_output.py:66
← previous
next →
501–600 of 660, ranked by callers