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
Method
max_val
Maximum value of the range.
scenedetect/_cli/config.py:125
Method
metric_keys
(self)
scenedetect/stats_manager.py:117
Method
min_val
Minimum value of the range.
scenedetect/_cli/config.py:120
Function
monitor_memory
()
tests/release/test_long_video.py:48
Method
name
Name of the video, without extension, or device.
scenedetect/video_stream.py:110
Method
name
Name of the video, without extension.
scenedetect/backends/pyav.py:171
Method
name
Name of the video, without extension, or device.
scenedetect/backends/moviepy.py:152
Method
name
(self)
scenedetect/backends/opencv.py:174
Method
name
Always 'CAP_ADAPTER'.
scenedetect/backends/opencv.py:453
Function
name_formatter
(video: VideoMetadata, scene: SceneMetadata)
tests/test_output.py:76
Function
no_logs_gte_error
Ensure no log messages with error severity or higher were reported during test execution.
tests/conftest.py:92
Function
no_logs_gte_error
()
tests/release/conftest.py:29
Function
on_new_scene
(frame_img: numpy.ndarray, position: FrameTimecode)
tests/test_api.py:128
Method
path
Video or device path.
scenedetect/video_stream.py:104
Method
path
Video path.
scenedetect/backends/pyav.py:166
Method
path
Video path.
scenedetect/backends/moviepy.py:147
Method
path
(self)
scenedetect/backends/opencv.py:166
Method
path
Always 'CAP_ADAPTER'.
scenedetect/backends/opencv.py:448
Method
position
Current position within stream as FrameTimecode. This can be interpreted as presentation time stamp, thus frame 1 corresponds to the
scenedetect/video_stream.py:146
Method
position
Current position within stream as FrameTimecode. This can be interpreted as presentation time stamp, thus frame 1 corresponds to the
scenedetect/backends/pyav.py:196
Method
position
Current position within stream as FrameTimecode. This can be interpreted as presentation time stamp of the last frame which was decoded by
scenedetect/backends/moviepy.py:187
Method
position
(self)
scenedetect/backends/opencv.py:222
Method
position
(self)
scenedetect/backends/opencv.py:484
Method
position_ms
Current position within stream as a float of the presentation time in milliseconds. The first frame has a PTS of 0.
scenedetect/video_stream.py:155
Method
position_ms
Current position within stream as a float of the presentation time in milliseconds. The first frame has a PTS of 0.
scenedetect/backends/pyav.py:207
Method
position_ms
Current position within stream as a float of the presentation time in milliseconds. The first frame has a time of 0.0 ms. This method
scenedetect/backends/moviepy.py:204
Method
position_ms
(self)
scenedetect/backends/opencv.py:234
Method
position_ms
(self)
scenedetect/backends/opencv.py:495
Method
post_process
Writes a final scene cut if the last detected fade was a fade-out. Only writes the scene cut if add_final_scene is true, and the last fade
scenedetect/detectors/threshold_detector.py:170
Method
post_process
Writes a final scene cut if the last detected fade was a fade-out.
scenedetect/detectors/transnet_v2.py:189
Method
process_frame
(self, timecode: FrameTimecode, frame_img: np.ndarray)
scenedetect/detectors/adaptive_detector.py:100
Method
process_frame
Process the next frame. Args: timecode: FrameTimecode of the current frame position. frame_img (numpy.ndarray or None
scenedetect/detectors/threshold_detector.py:100
Method
process_frame
Computes the histogram of the luma channel of the frame image and compares it with the histogram of the luma channel of the previous frame. If
scenedetect/detectors/histogram_detector.py:59
Method
process_frame
Process the next frame. `frame_num` is assumed to be sequential. Args: frame_num (int): Frame number of frame that is being passe
scenedetect/detectors/content_detector.py:192
Method
process_frame
Similar to ContentDetector, but using a perceptual hashing algorithm to calculate a hash for each frame and then calculate a hash difference
scenedetect/detectors/hash_detector.py:68
Method
process_frame
Process the next frame.
scenedetect/detectors/transnet_v2.py:165
Method
pts
The presentation timestamp of the frame in units of `time_base`.
scenedetect/common.py:311
Method
push
(self, pixels: np.ndarray, time: np.ndarray)
scenedetect/detectors/transnet_v2.py:82
Function
pytest_assertrepr_compare
(op, left, right)
tests/conftest.py:70
Method
rate
(self)
scenedetect/backends/pyav.py:225
Method
read
(self, decode: bool = True)
scenedetect/backends/moviepy.py:278
Method
reset
Not supported.
scenedetect/backends/opencv.py:508
Function
rotated_video_file
Video containing a corrupted frame causing a decode failure.
tests/conftest.py:140
Function
save_edl
Handles the `save-edl` command. Outputs in CMX 3600 format.
scenedetect/_cli/commands.py:258
Function
save_edl_command
( ctx: click.Context, filename: str | None, title: str | None, reel: str | None, output: s
scenedetect/_cli/__init__.py:1633
Function
save_fcp
Handles the `save-fcp` command.
scenedetect/_cli/commands.py:285
Function
save_fcp_command
( ctx: click.Context, filename: str | None, format: str | None, output: str | None, )
scenedetect/_cli/__init__.py:1738
Function
save_html
Handles the `save-html` command.
scenedetect/_cli/commands.py:45
Function
save_html_command
( ctx: click.Context, filename: str | None, no_images: bool, image_width: int | None, imag
scenedetect/_cli/__init__.py:1072
Function
save_images
Handles the `save-images` command.
scenedetect/_cli/commands.py:169
Function
save_images_command
( ctx: click.Context, output: str | None = None, filename: str | None = None, num_images: int
scenedetect/_cli/__init__.py:1505
Function
save_otio
Handles the `save-otio` command.
scenedetect/_cli/commands.py:329
Function
save_otio_command
( ctx: click.Context, filename: str | None, name: str | None, output: str | None, audio: b
scenedetect/_cli/__init__.py:1799
Function
save_qp
Handler for the `save-qp` command.
scenedetect/_cli/commands.py:79
Function
save_qp_command
( ctx: click.Context, filename: str | None, output: str | None, disable_shift: bool | None, )
scenedetect/_cli/__init__.py:1689
Function
scenedetect
( ctx: click.Context, input: str | None, output: str | None, stats: str | None, config: st
scenedetect/_cli/__init__.py:343
Method
seconds
(self)
scenedetect/common.py:173
Method
seconds
The frame's position in number of seconds.
scenedetect/common.py:372
Method
seek
Seek to the given timecode. If given as a frame number, represents the current seek pointer (e.g. if seeking to 0, the next frame decoded will
scenedetect/backends/moviepy.py:219
Method
seek
The underlying VideoCapture is assumed to not support seeking.
scenedetect/backends/opencv.py:504
Function
split_video
Handles the `split-video` command.
scenedetect/_cli/commands.py:210
Function
split_video_command
( ctx: click.Context, output: str | None, filename: str | None, quiet: bool, copy: bool,
scenedetect/_cli/__init__.py:1298
Method
stats_manager
Getter for the StatsManager associated with this SceneManager, if any.
scenedetect/scene_manager.py:247
Method
stats_manager
Optional :class:`StatsManager <scenedetect.stats_manager.StatsManager>` to use for storing frame metrics. When this detector is added to a par
scenedetect/detector.py:84
Method
stop
Stop the current :meth:`detect_scenes` call, if any. Thread-safe.
scenedetect/scene_manager.py:414
Function
test_addition
Test FrameTimecode addition (+/+=, __add__/__iadd__) operator.
tests/test_timecode.py:307
Function
test_api_detect
Demonstrate usage of the `detect()` function to process a complete video.
tests/test_api.py:17
Function
test_api_detect_start_end_time
Demonstrate usage of the `detect()` function to process a subset of a video.
tests/test_api.py:26
Function
test_api_detect_stats
Demonstrate usage of the `detect()` function to generate a statsfile.
tests/test_api.py:37
Function
test_api_device_callback
Demonstrate how to use a webcam/device/pipe and a callback function. Instead of calling `open_video()`, an existing `cv2.VideoCapture` can be used
tests/test_api.py:137
Function
test_api_open_video_framerate_legacy_alias
`open_video(framerate=...)` is the soft-deprecated alias for `frame_rate=` (issue #548). Both forms must produce equivalent streams; when both are
tests/test_api.py:75
Function
test_api_scene_manager
Demonstrate how to use a SceneManager to implement a function similar to `detect()`.
tests/test_api.py:44
Function
test_api_scene_manager_callback
Demonstrate how to use a callback with the SceneManager detect_scenes method.
tests/test_api.py:121
Function
test_api_scene_manager_start_end_time
Demonstrate how to use a SceneManager to process a subset of the input video.
tests/test_api.py:57
Function
test_api_stats_manager
Demonstrate using a StatsManager to save per-frame statistics to disk.
tests/test_api.py:107
Function
test_api_timecode_types
Demonstrate all different types of timecodes that can be used.
tests/test_api.py:88
Function
test_arithmetic_with_bare_timecode
`FrameTimecode` arithmetic should accept a bare :class:`Timecode` operand by treating it as an absolute time in seconds.
tests/test_timecode.py:446
Function
test_capture_adapter
Test that the VideoCaptureAdapter works with SceneManager.
tests/test_backend_opencv.py:41
Function
test_cfr_frame_num_exact
For CFR video, frame_num should be exact (not approximate).
tests/test_vfr.py:218
Function
test_cfr_position_is_timecode
CFR video positions should also be Timecode-backed with PTS support.
tests/test_vfr.py:211
Function
test_cli_backend
Test setting the `-b`/`--backend` argument.
tests/test_cli.py:788
Function
test_cli_backend_unsupported
Ensure setting an invalid backend returns an error.
tests/test_cli.py:796
Function
test_cli_chain_smoke
(test_video_file, tmp_path)
tests/release/test_cli_permutations.py:35
Function
test_cli_crop
Test --crop functionality.
tests/test_cli.py:118
Function
test_cli_crop_rejects_invalid
Test --crop rejects invalid options.
tests/test_cli.py:123
Function
test_cli_default_detector
Test `scenedetect` command invoked without a detector.
tests/test_cli.py:113
Function
test_cli_detector
Test each detection algorithm.
tests/test_cli.py:308
Function
test_cli_detector_with_stats
Test each detection algorithm with a statsfile.
tests/test_cli.py:315
Function
test_cli_framerate_legacy_alias
`--framerate` is the soft-deprecated hidden alias for `-f/--frame-rate` (issue #548). Both forms must be accepted; passing both should not error.
tests/test_cli.py:338
Function
test_cli_info_command
Test `scenedetect` info commands (e.g. help, about).
tests/test_cli.py:137
Function
test_cli_legacy_v06_config_file
A v0.6-era scenedetect.cfg using the deprecated `[export-html]` section must still load in v0.7. The parser maps `[export-html]` -> `[save-html]`
tests/test_cli.py:707
Function
test_cli_list_scenes
Test `list-scenes` command.
tests/test_cli.py:411
Function
test_cli_list_scenes_custom_delimiter
Test `list-scenes` command with custom delimiters set in a config file.
tests/test_cli.py:471
Function
test_cli_list_scenes_no_output
Test `list-scenes` command with the -n flag.
tests/test_cli.py:458
Function
test_cli_list_scenes_rejects_multichar_col_separator
Test `list-scenes` command with custom delimiters set in a config file.
tests/test_cli.py:497
Function
test_cli_list_scenes_skip_cuts
Test `list-scenes` command with the -s/--skip-cuts option for RFC 4180 compliance.
tests/test_cli.py:439
Function
test_cli_load_scenes_options
Ensure we can load scenes both with and without the cut row.
tests/test_cli.py:804
Function
test_cli_load_scenes_output
Verify we can use `load-scenes` with the `time` command and get the desired output.
tests/test_cli.py:822
Function
test_cli_load_scenes_round_trip
Verify we can use `load-scenes` and get the same scenes as output with `list-scenes`.
tests/test_cli.py:864
Function
test_cli_min_scene_len_accepts_all_timecode_forms
`--min-scene-len` (and equivalent options) must accept frames, seconds, and timecodes in v0.7 per the changelog. The four forms below all resolve
tests/test_cli.py:370
← previous
next →
401–500 of 660, ranked by callers