Skip to main content

Video scene cut/shot detection program and Python library.

Project description



Github Repo:

PySceneDetect is a command-line tool and Python library which analyzes a video, looking for scene changes or cuts. PySceneDetect integrates with external tools (e.g. ffmpeg, mkvmerge) to automatically split the video into individual clips when using the split-video command and has several other features.

Install: pip install --upgrade scenedetect[opencv]

Split video via CLI: scenedetect -i video.mp4 split-video

Split video using Python API:

from scenedetect import detect, AdaptiveDetector, split_video_ffmpeg
scene_list = detect('my_video.mp4', AdaptiveDetector())
split_video_ffmpeg('my_video.mp4', scene_list)

Licensed under BSD 3-Clause (see the LICENSE file for details).

Copyright (C) 2014-2023 Brandon Castellano. All rights reserved.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scenedetect-0.6.2.tar.gz (596.9 kB view hashes)

Uploaded Source

Built Distribution

scenedetect-0.6.2-py3-none-any.whl (117.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page