Split a video by black frames
Project description
ffmpeg Black Split
Split a video based on black frames.
This tool uses the blackdetect
filter from ffmpeg to determine the periods of black content.
Author: Werner Robitza werner.robitza@gmail.com
Requirements
- Python 3.5 or higher
- FFmpeg:
- download a static build from their website)
- put the
ffmpeg
executable in your$PATH
Installation
pip3 install --user ffmpeg_black_split
Or clone this repository, then run the tool with python3 -m ffmpeg_black_split
.
Usage
Run:
ffmpeg-black-split <input-file>
This might take a while depending on the length of your input file. It'll then split the video into parts, prefixed by the original filename. The audio and video streams will be copied as-is.
The output will be placed in the current directory, with each file being named <input>_<start>-<end>.mkv
.
Extended Usage
See ffmpeg-black-split -h
for more.
License
ffmpeg_black_split, Copyright (c) 2022 Werner Robitza
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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
Built Distribution
Hashes for ffmpeg_black_split-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b12f7d55baea9080d62af31fae905c32dc794fa121ea32829178fd25701e335f |
|
MD5 | 0ef20e636e928589bf6f144a71c559fb |
|
BLAKE2b-256 | 8c3cf2d1d5b0126fbb5ff737be506167287c69129ef35de6ef6efffad162231a |