Skip to main content

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

Project description

Website: http://py.scenedetect.com/

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

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

https://readthedocs.org/projects/pyscenedetect/badge/?version=latest https://img.shields.io/github/release/Breakthrough/PySceneDetect.svg https://img.shields.io/pypi/status/PySceneDetect.svg https://img.shields.io/pypi/dm/PySceneDetect.svg https://img.shields.io/pypi/l/PySceneDetect.svg https://img.shields.io/github/stars/Breakthrough/PySceneDetect.svg?style=social&label=View%20on%20Github

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-2018 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.tar.gz (73.3 kB view details)

Uploaded Source

Built Distributions

scenedetect-0.5-py3-none-any.whl (79.2 kB view details)

Uploaded Python 3

scenedetect-0.5-py2-none-any.whl (79.2 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: scenedetect-0.5.tar.gz
  • Upload date:
  • Size: 73.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.tar.gz
Algorithm Hash digest
SHA256 01a281c20f98b0d9b08aa0c296a1dcaa428e7483c9c66fa72581355a2bf5726c
MD5 fb98b7bf5798c09ce79b28da62169688
BLAKE2b-256 41d3ac39e49991a36ae6d46cdb00d1ef887289f01812dd3da3af02c2b7928f76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scenedetect-0.5-py3-none-any.whl
  • Upload date:
  • Size: 79.2 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-py3-none-any.whl
Algorithm Hash digest
SHA256 47f1a14cc3253b839ef9752627d54667ede1b38e74f06ade45802562fe1ef031
MD5 f37417d5139c838295b9fd32aa0cc922
BLAKE2b-256 3003987049737befe5b69a520942ef3f25ffef45c51bcb2d170bc28fe8b75f09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scenedetect-0.5-py2-none-any.whl
  • Upload date:
  • Size: 79.2 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-py2-none-any.whl
Algorithm Hash digest
SHA256 c4ee9df2763d7d6bff13dc0e7ec5a2f2bf12bf31c25fd4e91c997ff5064a01dd
MD5 d36b2aa8f543312482d5064b1e7847f8
BLAKE2b-256 5750a20fe66484925d83a469303c25b39bbf754c05c710b390e2b7e79e19ac46

See more details on using hashes here.

Supported by

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