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.1.tar.gz (254.6 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.1-py3-none-any.whl (103.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scenedetect-0.6.0.1.tar.gz
  • Upload date:
  • Size: 254.6 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.1.tar.gz
Algorithm Hash digest
SHA256 81a2772bc20df7c01f5d554bd9cc955da3b66af046b350eab2e8da60046bbf54
MD5 141bbe4365611d35610a843afe23f54a
BLAKE2b-256 a196ff02bc2c911164dfadf89f85c317ccf2c28817f9507db18711f4fe8726c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scenedetect-0.6.0.1-py3-none-any.whl
  • Upload date:
  • Size: 103.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2470f82bbfb78499d7855e544772d9d158fe0eae9a29cb1f2778506c95ab510b
MD5 01de7ad480f4981145b9a2124be5d1d1
BLAKE2b-256 c0fa94893a812816f9fca073511038220e504fd03b1bca2e43dc6c36e32a0875

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