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/
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-2020 Brandon Castellano. All rights reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for scenedetect-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 451d17f43d1b5a18b0742c4ea35fc54ff368872a7bd9b874e7c64e5a3b09daa5 |
|
MD5 | 08cded8a22db522cef007a9a3f0cd92b |
|
BLAKE2b-256 | cfc5c86f61b04c9384198e6aa0a163d08dc9196104aade5934c1d4c50b52ccc4 |
Hashes for scenedetect-0.5.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41f51e7126a85be63d990b2117ce82c327ba521f99f21cbcbc8260be5be6551 |
|
MD5 | e104c2a33fdd7c6eb16837c40fe9398d |
|
BLAKE2b-256 | 6d6bec04ea7ebc7402a6db093576541465411926f9b10348f23516004b1f9b0a |