Skip to main content

A cross-platform, OpenCV-based video scene detection program and Python library.

Project description

https://readthedocs.org/projects/pyscenedetect/badge/?version=latest 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://py.scenedetect.com/

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

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


PySceneDetect is a command-line tool, written in Python and using OpenCV, which analyzes a video, looking for scene changes or cuts. The output timecodes can then be used with another tool (e.g. mkvmerge, ffmpeg) to split the video into individual clips (or using the split-video command). A frame-by-frame analysis can also be generated for a video, 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) 2012-2019 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.5.1.tar.gz (60.3 kB view details)

Uploaded Source

Built Distributions

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

scenedetect-0.5.1-py3-none-any.whl (75.9 kB view details)

Uploaded Python 3

scenedetect-0.5.1-py2-none-any.whl (75.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: scenedetect-0.5.1.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for scenedetect-0.5.1.tar.gz
Algorithm Hash digest
SHA256 abe97bf7753f43f5689c8b5f519af818d84fc90dcb39c8f49c84ffb8b297ca23
MD5 9045419483b5a7dc3440885fd3c9a573
BLAKE2b-256 bed4f0ce1608a5f2a7f571d2f69c8a3c3c2e15481f617d942f881fd77b56c9c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scenedetect-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 75.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for scenedetect-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aaf0206d4e5d090dab5d21c067b5e3af7e6b45dd8f7a1fd2fe3682161957ec2b
MD5 fda6d8fae9ffec7a6098d98b99532635
BLAKE2b-256 886aa44256d721d2b08f351bee7cf67e20bacc9c0e510de925f7ea7e713aaa7c

See more details on using hashes here.

File details

Details for the file scenedetect-0.5.1-py2-none-any.whl.

File metadata

  • Download URL: scenedetect-0.5.1-py2-none-any.whl
  • Upload date:
  • Size: 75.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

File hashes

Hashes for scenedetect-0.5.1-py2-none-any.whl
Algorithm Hash digest
SHA256 b7cfb7f1c52b0a2a33c9727a2a00d85c4e0e55cc13e8f2869975a478967c660b
MD5 499403f8fa45d5916ffa7c1810c63ced
BLAKE2b-256 c3d8a9786687a9bd38f512183a1aee8a0e0b4f7e04c5ae6ba571809277f95cb6

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