breakthrough/pyscenedetect

:movie_camera: Python and OpenCV-based scene cut/transition detection program & library.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 13 minutes ago
Added to GitGenius on September 13th, 2026
Created on June 4th, 2014
Open Issues & Pull Requests: 67 (+0)
GitHub issues: Enabled
Number of forks: 518
Total Stargazers: 5,174 (+0)
Total Subscribers: 67 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

PySceneDetect is a Python library and command-line tool for detecting scene cuts and transitions in video files using OpenCV.

The tool addresses the problem of automatically identifying where scenes change in video content, which is useful for video editing, analysis, and splitting workflows. It provides multiple detection algorithms: a content-aware detector that identifies abrupt changes in frame content, an adaptive two-pass detector designed to handle fast camera movement more robustly, and a threshold detector for fade transitions. Users can apply these detectors through either a command-line interface or a Python API, with results returned as lists of scene boundaries with precise timestamps.

Developers should choose this tool if they need to programmatically split videos by scene or extract keyframes at transition points. It suits projects ranging from automated video processing pipelines to interactive editing applications. The tool integrates with ffmpeg and mkvmerge for actual video splitting, and offers a Docker image with all dependencies pre-installed for environments where local setup is impractical. The project includes benchmark data comparing detector accuracy and processing speed across different algorithms, allowing users to select the approach that best fits their content characteristics.

The project maintains active engagement through a Discord community channel. Development includes regular updates to the codebase with improvements to detection algorithms and API refinements. The tool is distributed through multiple channels including pip, native Windows installers, and containerized images, indicating attention to accessibility across different user environments and deployment scenarios.