Skip to main content

Video scene cut/shot detection program and Python library (bundles the opencv-python-headless OpenCV variant and the scenedetect CLI; for servers without GUI libraries).

Project description

https://img.shields.io/pypi/status/scenedetect.svg https://img.shields.io/github/release/Breakthrough/PySceneDetect.svg https://img.shields.io/pypi/l/scenedetect.svg https://img.shields.io/github/stars/Breakthrough/PySceneDetect.svg?style=social&label=View%20on%20Github

Documentation: https://www.scenedetect.com/docs

Github Repo: https://github.com/Breakthrough/PySceneDetect/

Install: pip install --upgrade scenedetect (or scenedetect-headless for servers)

Packages: scenedetect (CLI + opencv-python), scenedetect-headless (CLI + opencv-python-headless), and scenedetect-core (library only, minimal dependencies, bring your own OpenCV variant). All provide the same scenedetect module – install only one.


PySceneDetect is a tool for detecting shot changes in videos, and can automatically split videos into separate clips. PySceneDetect is free and open-source software, and has several detection methods to find fast-cuts and threshold-based fades.

For example, to split a video: scenedetect -i video.mp4 split-video

You can also use the Python API (docs) to do the same:

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 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_headless-0.7.1.dev0.tar.gz (258.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scenedetect_headless-0.7.1.dev0-py3-none-any.whl (142.7 kB view details)

Uploaded Python 3

File details

Details for the file scenedetect_headless-0.7.1.dev0.tar.gz.

File metadata

File hashes

Hashes for scenedetect_headless-0.7.1.dev0.tar.gz
Algorithm Hash digest
SHA256 0edb0c053d965e22ff75318491cf633977971206139faad048d543ba1f71b9a9
MD5 437ab41ee46cf28762af8403cdf4ab21
BLAKE2b-256 b78ed3c73c757ec11b92f0cadb6d66ccf05eb14599399bd9c76e9a575f6b542b

See more details on using hashes here.

Provenance

The following attestation bundles were made for scenedetect_headless-0.7.1.dev0.tar.gz:

Publisher: publish-pypi.yml on Breakthrough/PySceneDetect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scenedetect_headless-0.7.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for scenedetect_headless-0.7.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 642b16af6bf636998f499593525c7a555acddb18fa678e3c98577b0e28254696
MD5 933139234ab8fc8fe764f20adbc36479
BLAKE2b-256 1721b2e914d559ff986c807362f49b14f077f3ae585ded5aafc560608dfc5179

See more details on using hashes here.

Provenance

The following attestation bundles were made for scenedetect_headless-0.7.1.dev0-py3-none-any.whl:

Publisher: publish-pypi.yml on Breakthrough/PySceneDetect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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