Skip to main content

PySceneDetect

Video Scene Cut Detection and Analysis Tool

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.

Metadata

Release files for scenedetect 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scenedetect 0.5
File Size Uploaded Provenance
scenedetect-0.5.tar.gz 73.3 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for scenedetect 0.5
File Interpreter ABI Platform
scenedetect-0.5-py3-none-any.whl Python 3 none any Details
scenedetect-0.5-py2-none-any.whl Python 2 none any Details

Total release size: 231.8 kB

Release files / scenedetect-0.5.tar.gz

Download URL scenedetect-0.5.tar.gz
Size 73.3 kB
Tags Source
SHA-256 checksum
How to use checksums
01a281c20f98b0d9b08aa0c296a1dcaa428e7483c9c66fa72581355a2bf5726c
BLAKE2b-256 checksum
How to use checksums
41d3ac39e49991a36ae6d46cdb00d1ef887289f01812dd3da3af02c2b7928f76
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / scenedetect-0.5-py3-none-any.whl

Download URL scenedetect-0.5-py3-none-any.whl
Size 79.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47f1a14cc3253b839ef9752627d54667ede1b38e74f06ade45802562fe1ef031
BLAKE2b-256 checksum
How to use checksums
3003987049737befe5b69a520942ef3f25ffef45c51bcb2d170bc28fe8b75f09
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / scenedetect-0.5-py2-none-any.whl

Download URL scenedetect-0.5-py2-none-any.whl
Size 79.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
c4ee9df2763d7d6bff13dc0e7ec5a2f2bf12bf31c25fd4e91c997ff5064a01dd
BLAKE2b-256 checksum
How to use checksums
5750a20fe66484925d83a469303c25b39bbf754c05c710b390e2b7e79e19ac46
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for scenedetect 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page