Skip to main content

Video scene cut/shot detection program and Python library.

Project description

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

Website: http://scenedetect.com/

Documentation: http://manual.scenedetect.com/

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


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. mkvmerge, ffmpeg) to automatically split the video into individual clips when using the split-video command. A frame-by-frame analysis can also be generated for a video, called a stats file, to help with determining optimal threshold values or detecting patterns/other analysis methods for a particular video.

There are two main detection methods PySceneDetect uses: detect-threshold (comparing each frame to a set black level, useful for detecting cuts and fades to/from black), and detect-content (compares each frame sequentially looking for changes in content, useful for detecting fast cuts between video scenes, although slower to process). Each mode has slightly different parameters, and is described in detail in the documentation.

In general, use detect-threshold mode if you want to detect scene boundaries using fades/cuts in/out to black. If the video uses a lot of fast cuts between content, and has no well-defined scene boundaries, you should use the detect-content mode. Once you know what detection mode to use, you can try the parameters recommended below, or generate a statistics file (using the -s / –stats argument) in order to determine the correct paramters - specifically, the proper threshold value.

For help or other issues, feel free to submit any bugs or feature requests to Github: https://github.com/Breakthrough/PySceneDetect/issues


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

Copyright (C) 2014-2022 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.1.tar.gz (98.9 kB view details)

Uploaded Source

Built Distribution

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

scenedetect-0.6.1-py3-none-any.whl (115.1 kB view details)

Uploaded Python 3

File details

Details for the file scenedetect-0.6.1.tar.gz.

File metadata

  • Download URL: scenedetect-0.6.1.tar.gz
  • Upload date:
  • Size: 98.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for scenedetect-0.6.1.tar.gz
Algorithm Hash digest
SHA256 9b5f0f21e2dc4aad6e1df6db431b66fc764d2e5e8a3bfb4085d4ec5a692cd1ac
MD5 15db912db14665c1bc5d77a37c6de4c0
BLAKE2b-256 57843b2bc86ad5ca4fed3a2ac7aeba002ee3dbfdae6f1066a4704cfd80520237

See more details on using hashes here.

File details

Details for the file scenedetect-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: scenedetect-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 115.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for scenedetect-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd4e93f88097f13e60022f3857479eebb9b2088c1f334872b710688c9a44a413
MD5 b9e65edc3347fd9800669fe2fd667a35
BLAKE2b-256 aab9786ca121a69d68908dcb9df8d05e4f158e344124d3c62c4baa0195afde18

See more details on using hashes here.

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