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.0.3.tar.gz (87.0 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.0.3-py3-none-any.whl (100.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scenedetect-0.6.0.3.tar.gz
  • Upload date:
  • Size: 87.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/62.3.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for scenedetect-0.6.0.3.tar.gz
Algorithm Hash digest
SHA256 a897fe9a726830f2fda8cf1ae5c4a5a6fefe77c9918f24cbd97284a3c3407a70
MD5 e7ea8158426e2072c06028d60ad1f715
BLAKE2b-256 b0523dc8b0a5daccf4f6b8e5879bca4a6deac7259b7d81dfdb311d37f33243b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scenedetect-0.6.0.3-py3-none-any.whl
  • Upload date:
  • Size: 100.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/62.3.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for scenedetect-0.6.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ccacf993be85a62d010579496a872ad3bdcd3cdf5af0e042d5bed781adba94
MD5 7f626d7d554f1e3a9779f93f38bd2836
BLAKE2b-256 c07330251f1681df1022add313e5c8841f6174c8c1b2d70fabc727de799eefa8

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