MCPcopy Create free account

hub / github.com/Breakthrough/PySceneDetect / functions

Functions660 in github.com/Breakthrough/PySceneDetect

Functiontest_cli_min_scene_len_smoke
(test_video_file, tmp_path)
tests/release/test_cli_permutations.py:127
Functiontest_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
Functiontest_cli_no_args
Test `scenedetect` command invoked without any arguments.
tests/test_cli.py:108
Functiontest_cli_range_smoke
(test_video_file, tmp_path)
tests/release/test_cli_permutations.py:57
Functiontest_cli_save_edl
Test `save-edl` command.
tests/test_cli.py:916
Functiontest_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
Functiontest_cli_save_edl_with_params
Test `save-edl` command but override the other options.
tests/test_cli.py:946
Functiontest_cli_save_fcp_fcp7
Test `save-fcp --format fcp7` produces a valid FCP7 xmeml file.
tests/test_cli.py:1378
Functiontest_cli_save_fcp_fcpx
Test `save-fcp --format fcpx` produces a valid FCPXML 1.9 file.
tests/test_cli.py:1329
Functiontest_cli_save_fcp_smoke
save-fcp writes a well-formed Final Cut Pro XML.
tests/release/test_cli_permutations.py:146
Functiontest_cli_save_html
Test `save-html` command.
tests/test_cli.py:660
Functiontest_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
Functiontest_cli_save_images
Test `save-images` command.
tests/test_cli.py:601
Functiontest_cli_save_images_path_handling
Test `save-images` ability to handle UTF-8 paths.
tests/test_cli.py:618
Functiontest_cli_save_images_rotation
Test that `save-images` command rotates images correctly with the default backend.
tests/test_cli.py:641
Functiontest_cli_save_otio
Test `save-otio` command.
tests/test_cli.py:982
Functiontest_cli_save_otio_no_audio
Test `save-otio` command without audio.
tests/test_cli.py:1199
Functiontest_cli_save_qp
Test `save-qp` command with and without a custom filename format.
tests/test_cli.py:726
Functiontest_cli_save_qp_no_shift
Test `save-qp` command with start time shifting disabled.
tests/test_cli.py:769
Functiontest_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
Functiontest_cli_save_qp_start_offset
Test `save-qp` command but using a shifted start time.
tests/test_cli.py:746
Functiontest_cli_split_video_ffmpeg
Test `split-video` command using ffmpeg.
tests/test_cli.py:516
Functiontest_cli_split_video_mkvmerge
Test `split-video` command using mkvmerge.
tests/test_cli.py:553
Functiontest_cli_stats_roundtrip
(test_video_file, tmp_path)
tests/release/test_cli_permutations.py:76
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_cli_time_validate_options
Validate behavior of setting parameters via the `time` command.
tests/test_cli.py:142
Functiontest_comparisons_with_bare_timecode
`FrameTimecode` comparison operators should accept a bare :class:`Timecode` operand.
tests/test_timecode.py:466
Functiontest_corrupt_video
Test that backend handles video with corrupt frame gracefully with defaults.
tests/test_video_stream.py:361
Functiontest_crop_invalid
()
tests/test_scene_manager.py:199
Functiontest_cross_backend_consistency
(rel_path, is_vfr)
tests/release/test_backends.py:45
Functiontest_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
Functiontest_deprecated_modules_emits_warning_on_import
()
tests/test_api.py:162
Functiontest_detect_fades
(test_case: TestCase)
tests/test_detectors.py:198
Functiontest_detect_fast_cuts
(test_case: TestCase)
tests/test_detectors.py:188
Functiontest_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
Functiontest_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
Functiontest_detect_scenes_crop
(test_video_file)
tests/test_scene_manager.py:182
Functiontest_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
Functiontest_detectors_with_stats
Test all detectors functionality with a StatsManager.
tests/test_detectors.py:206
Functiontest_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
Functiontest_equality
Test FrameTimecode equality (==, __eq__) operator.
tests/test_timecode.py:268
Functiontest_fades_clip
Clip containing fades in/out.
tests/conftest.py:152
Functiontest_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
Functiontest_frame_rate_for_vfr
For Timecode-backed instances, frame_rate is the approximation passed via fps.
tests/test_timecode.py:89
Functiontest_frame_rate_property
`frame_rate` returns an exact Fraction; `framerate` returns the float equivalent.
tests/test_timecode.py:70
Functiontest_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
Functiontest_framerate
Test FrameTimecode constructor argument "fps".
tests/test_timecode.py:32
Functiontest_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
Functiontest_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
Functiontest_get_frames
Test FrameTimecode get_frames() method.
tests/test_timecode.py:211
Functiontest_get_scene_list_start_in_scene
Test SceneManager `get_scene_list()` method with the `start_in_scene` flag.
tests/test_scene_manager.py:64
Functiontest_get_seconds
Test FrameTimecode get_seconds() method.
tests/test_timecode.py:231
Functiontest_get_timecode
Test FrameTimecode get_timecode() method.
tests/test_timecode.py:247
Functiontest_golden_regression
(golden_file)
tests/release/test_golden.py:53
Functiontest_identity
Test FrameTimecode values, when used in init return the same values
tests/test_timecode.py:336
Functiontest_image_sequence
Path to a short image sequence (from counter.mp4).
tests/conftest.py:146
Functiontest_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
Functiontest_invalid_path
Ensure correct exception is thrown if the path does not exist.
tests/test_video_stream.py:343
Functiontest_invoke_command
Ensures the function exists and is callable without throwing an exception.
tests/test_platform.py:25
Functiontest_load_corrupt_stats
Test loading a corrupted stats file created by outputting data in the wrong format.
tests/test_stats_manager.py:171
Functiontest_load_empty_stats
Test loading an empty stats file, ensuring it results in no errors.
tests/test_stats_manager.py:92
Functiontest_load_hardcoded_file
Test loading a stats file with some hard-coded data generated by this test case.
tests/test_stats_manager.py:108
Functiontest_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
Functiontest_long_video_stress
(long_video)
tests/release/test_long_video.py:39
Functiontest_metrics
Test StatsManager metric registration/setting/getting with a set of pre-defined key-value pairs (metric_dict).
tests/test_stats_manager.py:46
Functiontest_min_scene_len_accepts_time_values
Detectors accept min_scene_len as int (frames), float (seconds), or str (timecode).
tests/test_detectors.py:237
Functiontest_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
Functiontest_movie_clip
Movie clip containing fast cuts.
tests/conftest.py:111
Functiontest_ntsc_framerate_detection
Common NTSC framerates should be detected from float values.
tests/test_timecode.py:374
Functiontest_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
Functiontest_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
Functiontest_open_image_sequence
Test opening an image sequence. Currently, only VideoStreamCv2 supports this.
tests/test_backend_opencv.py:29
Functiontest_output_csv_roundtrip
(test_video_file, tmp_path)
tests/release/test_validation.py:55
Functiontest_output_image_extensions
(test_video_file, tmp_path)
tests/release/test_validation.py:69
Functiontest_output_otio_rational_time_precision
(test_video_file, tmp_path)
tests/release/test_validation.py:96
Functiontest_output_split_video
(test_video_file, tmp_path)
tests/release/test_validation.py:150
Functiontest_precision
Test rounding and precision, which has implications for rounding behavior.
tests/test_timecode.py:345
Methodtest_properties
Validate video properties: frame size, frame rate, duration, aspect ratio, etc.
tests/test_video_stream.py:142
Functiontest_rational_framerate_precision
Rational framerates should round-trip frame/second conversions without drift.
tests/test_timecode.py:365
Methodtest_read
Validate basic `read` functionality.
tests/test_video_stream.py:156
Methodtest_read_eof
Ensure calling `read()` handles the end of the video correctly.
tests/test_video_stream.py:291
Methodtest_read_no_decode
Validate invoking `read` with `decode` set to False.
tests/test_video_stream.py:165
Methodtest_reset
Test `reset()` functions as expected.
tests/test_video_stream.py:198
Functiontest_save_images
Test scenedetect.scene_manager.save_images function.
tests/test_output.py:97
Functiontest_save_images_frame_margin_accepts_time_values
save_images() should accept frame counts (int), seconds (float), and timecode strings.
tests/test_output.py:172
Functiontest_save_images_rejects_negative_margin
(test_video_file, tmp_path: Path)
tests/test_output.py:196
Functiontest_save_images_singlethreaded
Test scenedetect.scene_manager.save_images function.
tests/test_output.py:134
Functiontest_save_images_zero_width_scene
Test scenedetect.scene_manager.save_images guards against zero width scenes.
tests/test_output.py:204
Functiontest_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
Functiontest_save_no_detect_scenes
Test saving without calling detect_scenes.
tests/test_stats_manager.py:101
Functiontest_scene_list
Test SceneManager get_scene_list method with VideoStreamCv2/ContentDetector.
tests/test_scene_manager.py:28
Methodtest_seek
Validate `seek()` functionality with different offset types.
tests/test_video_stream.py:210
Methodtest_seek_invalid
Test `seek()` throws correct exception when specifying in invalid seek value.
tests/test_video_stream.py:325
Methodtest_seek_past_eof
Validate calling `seek()` to offset past end of video.
tests/test_video_stream.py:304
Methodtest_seek_start
Validate behaviour of `seek()` at the start of a video.
tests/test_video_stream.py:256
Functiontest_split_video_ffmpeg_default
(tmp_path, test_movie_clip)
tests/test_output.py:47
Functiontest_split_video_ffmpeg_formatter
(tmp_path, test_movie_clip)
tests/test_output.py:66
← previousnext →501–600 of 660, ranked by callers