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
↓ 2 callers
Method
get_detect_content_params
Get a dict containing user options to construct a ContentDetector with.
scenedetect/_cli/context.py:338
↓ 2 callers
Method
get_detect_hash_params
Handle detect-hash command options and return args to construct one with.
scenedetect/_cli/context.py:436
↓ 2 callers
Method
get_detect_hist_params
Handle detect-hist command options and return args to construct one with.
scenedetect/_cli/context.py:421
↓ 2 callers
Method
get_detect_threshold_params
Handle detect-threshold command options and return args to construct one with.
scenedetect/_cli/context.py:402
↓ 2 callers
Function
get_ffmpeg_path
Get path to ffmpeg if available on the current system. First looks at PATH, then checks if one is available from the `imageio_ffmpeg` package. Ret
scenedetect/platform.py:250
↓ 2 callers
Method
get_init_log
Get initialization log. Consumes the log, so subsequent calls will return None.
scenedetect/_cli/config.py:737
↓ 2 callers
Method
get_num_detectors
Get number of registered scene detectors added via add_detector.
scenedetect/scene_manager.py:326
↓ 2 callers
Function
get_scenes_from_cuts
Returns a list of tuples of start/end FrameTimecodes for each scene based on a list of detected scene cuts/breaks. This function is called wh
scenedetect/scene_manager.py:143
↓ 2 callers
Method
hash_frame
Calculates the perceptual hash of a frame and returns it. Based on phash from https://github.com/JohannesBuchner/imagehash.
scenedetect/detectors/hash_detector.py:120
↓ 2 callers
Function
init_logger
Initializes logging for PySceneDetect. The logger instance used is named 'pyscenedetect'. By default the logger has no handlers to suppress output
scenedetect/platform.py:175
↓ 2 callers
Function
is_ffmpeg_available
Is ffmpeg Available: Gracefully checks if ffmpeg command is available. Returns: True if `ffmpeg` can be invoked, False otherwise.
scenedetect/output/video.py:86
↓ 2 callers
Function
is_mkvmerge_available
Is mkvmerge Available: Gracefully checks if mkvmerge command is available. Returns: True if `mkvmerge` can be invoked, False otherwise.
scenedetect/output/video.py:77
↓ 2 callers
Method
mk_ft
(self, pts: int)
scenedetect/detectors/transnet_v2.py:160
↓ 2 callers
Function
print_command_help
Print help/usage for a given command. Modifies `ctx` in-place.
scenedetect/_cli/__init__.py:153
↓ 2 callers
Method
register_metrics
Register a list of metric keys that will be used by the detector.
scenedetect/stats_manager.py:120
↓ 2 callers
Function
resync_appdir
(advinst: Path)
scripts/update_installer.py:75
↓ 2 callers
Function
run_benchmark
(detector: str, dataset: str, detailed: bool)
benchmark/__main__.py:64
↓ 2 callers
Function
run_scenedetect
Perform main CLI application control logic. Run once all command-line options and configuration file options have been validated. Arguments:
scenedetect/_cli/controller.py:30
↓ 2 callers
Method
set_description
No-op.
scenedetect/platform.py:66
↓ 2 callers
Function
sha256_file
(path: Path)
scripts/finalize_windows_dist.py:78
↓ 2 callers
Function
transform_add_option_refs
(s: str, refs: list[str])
docs/generate_cli_docs.py:143
↓ 2 callers
Method
valid_header
Check that the given CSV row is a valid header for a statsfile. Arguments: row: A row decoded from the CSV reader. Retur
scenedetect/stats_manager.py:206
↓ 2 callers
Function
verify_authenticode
Bail unless `path` carries a Valid Authenticode signature. Catches the wrong-artifact case: e.g. someone drops the AppVeyor pre-signing bundl
scripts/finalize_windows_dist.py:106
↓ 1 callers
Method
__init__
Arguments: message: Additional context the backend can provide for the open failure.
scenedetect/video_stream.py:55
↓ 1 callers
Method
__init__
Initialize a new StatsManager. Arguments: base_timecode: Timecode associated with this object. Must not be None (default value
scenedetect/stats_manager.py:99
↓ 1 callers
Method
__init__
(self, threshold: float, flash_filter: FlashFilter)
scenedetect/detectors/transnet_v2.py:30
↓ 1 callers
Method
__init__
Open a video file, image sequence, or network stream. Arguments: path: Path to the video. Can be a file, image sequence (`'folder
scenedetect/backends/opencv.py:74
↓ 1 callers
Method
_calculate_frame_score
Calculate score representing relative amount of motion in `frame_img` compared to the last time the function was called (returns 0.0 on the fi
scenedetect/detectors/content_detector.py:147
↓ 1 callers
Function
_detect
(context: CliContext)
scenedetect/_cli/controller.py:105
↓ 1 callers
Method
_detect_edges
Detect edges using the luma channel of a frame. Arguments: lum: 2D 8-bit image representing the luma channel of a frame.
scenedetect/detectors/content_detector.py:213
↓ 1 callers
Function
_detect_scenes
(detector: str, dataset: str, detailed: bool)
benchmark/__main__.py:41
↓ 1 callers
Function
_estimated_kernel_size
Estimate kernel size based on video resolution.
scenedetect/detectors/content_detector.py:39
↓ 1 callers
Method
_filter_merge
(self, timecode: FrameTimecode, above_threshold: bool)
scenedetect/detector.py:189
↓ 1 callers
Method
_filter_suppress
( self, timecode: FrameTimecode, above_threshold: bool )
scenedetect/detector.py:171
↓ 1 callers
Method
_get_duration
Get video duration as number of frames based on the video and set framerate.
scenedetect/backends/pyav.py:333
↓ 1 callers
Method
_get_metric
(self, timecode: int | FrameTimecode, metric_key: str)
scenedetect/stats_manager.py:300
↓ 1 callers
Method
_handle_eof
Fix for issue where if thread_type is 'AUTO' the whole video is not decoded. Re-open video if the threading mode is AUTO and we didn't decode
scenedetect/backends/pyav.py:363
↓ 1 callers
Method
_load_from_disk
(self, path=None)
scenedetect/_cli/config.py:746
↓ 1 callers
Function
_load_scenes
(context: CliContext)
scenedetect/_cli/controller.py:177
↓ 1 callers
Method
_load_scenes
(self, scene_filename)
benchmark/evaluator.py:8
↓ 1 callers
Method
_open_video_stream
( self, input_path: str, frame_rate: float | None, backend: str | None, )
scenedetect/_cli/context.py:490
↓ 1 callers
Function
_parse_config
Process the given configuration into a key-value mapping. Returns a tuple of the config dict itself (or None on failure), and a list of log messag
scenedetect/_cli/config.py:579
↓ 1 callers
Function
_parse_edl_start_timecode
Parse a SMPTE ``HH:MM:SS:FF`` (or 8-digit ``HHMMSSFF``) start timecode into a frame count.
scenedetect/output/__init__.py:257
↓ 1 callers
Method
_post_process
Add remaining cuts to the cutting list, after processing the last frame.
scenedetect/scene_manager.py:409
↓ 1 callers
Method
_process_frame
Add any cuts detected with the current frame to the cutting list. Returns True if any new cuts were detected, False otherwise.
scenedetect/scene_manager.py:382
↓ 1 callers
Function
_pyi_rthook
()
packaging/windows/pyi_rth_scenedetect.py:15
↓ 1 callers
Function
_query_package_version
Return version of an installed package, querying PyPI metadata first then falling back to the module's `__version__` attribute when metadata is mi
scenedetect/platform.py:319
↓ 1 callers
Function
_save_stats
Handles saving the statsfile if -s/--stats was specified.
scenedetect/_cli/controller.py:163
↓ 1 callers
Function
_scale_image
( image: np.ndarray, aspect_ratio: float | None, height: int | None, width: int | None, sc
scenedetect/output/image.py:75
↓ 1 callers
Function
_validate_structure
Validates the layout of the section/option mapping. Returns a bool indicating if validation was successful, and a list of log messages for the ini
scenedetect/_cli/config.py:535
↓ 1 callers
Function
add_backquotes
(match: re.Match)
docs/generate_cli_docs.py:109
↓ 1 callers
Function
add_backquotes_with_refs
Returns a transformation function that backquotes command examples, adding backquotes and references to any found options.
docs/generate_cli_docs.py:113
↓ 1 callers
Method
add_cell
Add a SimpleTableCell object to the list of cells.
scenedetect/_thirdparty/simpletable.py:178
↓ 1 callers
Function
add_hidden_alias
Adds a copy of `command` that can be invoked under the name `alias`.
scenedetect/_cli/__init__.py:392
↓ 1 callers
Method
add_row
Add a SimpleTableRow object to the list of rows.
scenedetect/_thirdparty/simpletable.py:253
↓ 1 callers
Function
build_docs
()
scripts/stage_windows_dist.py:131
↓ 1 callers
Method
calculate_histogram
Calculates and optionally normalizes the histogram of the luma (Y) channel of an image converted from BGR to YUV color space.
scenedetect/detectors/histogram_detector.py:123
↓ 1 callers
Function
calculate_timecode
(value: str)
scenedetect/_cli/controller.py:194
↓ 1 callers
Method
callback
(image, frame_num)
tests/test_scene_manager.py:99
↓ 1 callers
Function
check_split_video_requirements
Validates that the proper tool is available on the system to perform the `split-video` command. Arguments: use_mkvmerge: True if mkvm
scenedetect/_cli/context.py:48
↓ 1 callers
Method
clear_detectors
Remove all scene detectors added to the SceneManager via add_detector().
scenedetect/scene_manager.py:344
↓ 1 callers
Function
compute_downscale_factor
Get the optimal default downscale factor based on a video's resolution (currently only the width in pixels is considered). The resulting effe
scenedetect/scene_manager.py:123
↓ 1 callers
Function
create_help
()
docs/generate_cli_docs.py:253
↓ 1 callers
Function
create_parser
()
benchmark/__main__.py:77
↓ 1 callers
Function
default_formatter
Formats filenames using a template string which allows the following variables: `$VIDEO_NAME`, `$SCENE_NUMBER`, `$START_TIME`, `$END_TIME`, `$STA
scenedetect/output/video.py:127
↓ 1 callers
Method
ensure_detector
Ensures at least one detector has been instantiated, otherwise adds a default one.
scenedetect/_cli/context.py:127
↓ 1 callers
Function
extract_default_value
(s: str)
docs/generate_cli_docs.py:131
↓ 1 callers
Function
extract_signed_bundle
(signed_zip: Path, dest: Path)
scripts/finalize_windows_dist.py:143
↓ 1 callers
Function
find_7zip
()
scripts/finalize_windows_dist.py:65
↓ 1 callers
Function
find_7zip
()
scripts/stage_windows_dist.py:66
↓ 1 callers
Function
find_advinst
()
scripts/update_installer.py:50
↓ 1 callers
Method
format_epilog
Writes the epilog into the formatter if it exists.
scenedetect/_cli/__init__.py:139
↓ 1 callers
Method
format_help_text
Writes the help text to the formatter if it exists.
scenedetect/_cli/__init__.py:128
↓ 1 callers
Function
format_option
(command: click.Command, opt: click.Option, flags: list[str])
docs/generate_cli_docs.py:156
↓ 1 callers
Function
format_scene_number
(video: VideoMetadata, scene: SceneMetadata)
scenedetect/output/video.py:135
↓ 1 callers
Function
formatter
(video: VideoMetadata, scene: SceneMetadata)
scenedetect/output/video.py:139
↓ 1 callers
Method
from_config
(config_value: str, default: "CropValue")
scenedetect/_cli/config.py:190
↓ 1 callers
Function
generate_golden
(video_path: str, detector_class, params: dict)
scripts/generate_goldens.py:49
↓ 1 callers
Function
generate_subcommands
(ctx: click.Context, commands: list[str])
docs/generate_cli_docs.py:226
↓ 1 callers
Function
generate_synthetic_matrix_video
Generates a video with specific codec and container.
tests/release/synthetic.py:89
↓ 1 callers
Method
generate_timecode_list
Generates a list of timecodes for each scene in `scene_list` based on the current config parameters. Uses PTS-accurate seconds-based
scenedetect/output/image.py:334
↓ 1 callers
Function
generate_vfr_bframes
Generates H.264 video with B-frames to exercise DTS/PTS divergence.
tests/release/synthetic.py:71
↓ 1 callers
Function
generate_vfr_pts_gap
Generates a video where setpts filter drops 3 frames mid-clip.
tests/release/synthetic.py:51
↓ 1 callers
Function
generate_vfr_swing
Generates a VFR video with three segments separated by visible luma steps. Segments: black @ 1 fps (5s) -> gray @ 60 fps (5s) -> white @ 1 fps (5
tests/release/synthetic.py:20
↓ 1 callers
Method
get_cut_list
[DEPRECATED] Return a list of FrameTimecodes of the detected scene changes/cuts. Unlike get_scene_list, the cutting list returns a list of Fr
scenedetect/scene_manager.py:675
↓ 1 callers
Function
get_ffmpeg_version
Get ffmpeg version identifier, or None if ffmpeg is not found. Uses `get_ffmpeg_path()`.
scenedetect/platform.py:280
↓ 1 callers
Method
get_frames
[DEPRECATED] Get the current time/position in number of frames. Use the `frame_num` property instead. :meta private:
scenedetect/common.py:317
↓ 1 callers
Method
get_metrics
Returns a list of all metric names/keys used by this detector. Returns: List of strings of frame metric key names that will be us
scenedetect/detector.py:96
↓ 1 callers
Method
get_metrics
(self)
scenedetect/detectors/threshold_detector.py:97
↓ 1 callers
Function
get_mkvmerge_path
Get path to mkvmerge if available on the current system by checking PATH. Returns None if mkvmerge couldn't be found.
scenedetect/platform.py:294
↓ 1 callers
Function
get_mkvmerge_version
Get mkvmerge version identifier, or None if mkvmerge is not found in PATH.
scenedetect/platform.py:304
↓ 1 callers
Function
get_moviepy_major_version
()
tests/test_video_stream.py:44
↓ 1 callers
Function
get_system_version_info
Get the system's operating system, Python, packages, and external tool versions. Useful for debugging or filing bug reports. Used for the `sc
scenedetect/platform.py:340
↓ 1 callers
Method
handle_options
Parse all global options/arguments passed to the main scenedetect command, before other sub-commands (e.g. this function processes the [option
scenedetect/_cli/context.py:176
↓ 1 callers
Function
hash_zip_contents
(zip_path: Path)
scripts/finalize_windows_dist.py:86
↓ 1 callers
Function
main
()
benchmark/__main__.py:130
↓ 1 callers
Function
main
()
scripts/generate_goldens.py:59
↓ 1 callers
Function
main
()
scripts/finalize_windows_dist.py:243
↓ 1 callers
Function
main
()
scripts/generate_assets.py:355
↓ 1 callers
Function
main
()
scripts/stage_windows_dist.py:173
← previous
next →
101–200 of 660, ranked by callers