Five Detectors
Choose from Adaptive, Content (HSV and edges), Perceptual Hash, Histogram, and Threshold detectors. All five are tested on BBC Planet Earth, AutoShot, and ClipShots.
Detect fast cuts and fades from the command line or Python. Split videos with ffmpeg or mkvmerge, export timeline files for video editors, or save per-frame metrics.
pip install --upgrade scenedetect
uv tool install scenedetect
pipx install scenedetect
from scenedetect import (
detect, AdaptiveDetector, split_video_ffmpeg,
)
# Find scene cuts and split the video with ffmpeg
scenes = detect("goldeneye.mp4", AdaptiveDetector())
split_video_ffmpeg("goldeneye.mp4", scenes)
# Split a video at each detected cut
scenedetect -i goldeneye.mp4 split-video
# Export a CSV scene list, still frames, and an HTML report
scenedetect -i goldeneye.mp4 list-scenes save-images save-html
# Split a video at each detected cut
scenedetect -i goldeneye.mp4 split-video
# Export a CSV scene list, still frames, and an HTML report
scenedetect -i goldeneye.mp4 list-scenes save-images save-html
docker pull ghcr.io/breakthrough/pyscenedetect
# CLI, ffmpeg, mkvmerge, PyAV, and MoviePy in one container
docker run --rm -v "$(pwd):/files" \
ghcr.io/breakthrough/pyscenedetect \
-i /files/goldeneye.mp4 split-video -o /files
Choose from Adaptive, Content (HSV and edges), Perceptual Hash, Histogram, and Threshold detectors. All five are tested on BBC Planet Earth, AutoShot, and ClipShots.
Export HH:MM:SS.nnn CSV scene lists, CMX 3600 EDL, Final Cut Pro XML, OpenTimelineIO (OTIO), x264 QP files, HTML reports, and still frames.
Decode video with OpenCV by default, or switch to PyAV or MoviePy. Install via pip (standard or headless), the signed Windows installer, or Docker.
People use PySceneDetect for many video workflows:
Download PySceneDetect to try it on your own videos, or review the Features page for a full list of detectors and export formats. The default timecode format (HH:MM:SS.nnn) works directly with tools such as ffmpeg and mkvmerge.