Splice similar frames from videos
Project description
abridge
Effortlessly shorten videos.
About
abridge can automatically shorten video files by removing parts from the video
where not much happens. This is great for making timelapse videos more engaging
and removes the need for manual editing to cut these dead spots from the videos.
Installation
pip install abridge
abridge makes use of moviepy, which releys on ffmpeg. ffmpeg should be installed
when the package is installed, but this may not work on some systems.
Docker
adbridge can be run as a docker image, which gaurentees it will run
on all systems.
docker pull freshollie/abridge:latest
docker run freshollie/abridge
Usage
usage: abridge [-h] [-w workers] [-o outdir] [-t diff-threshold]
[-r repetition-threshold]
clip [clip ...]
Effortlessly shorten videos
positional arguments:
clip Clip to cut or glob group
optional arguments:
-h, --help show this help message and exit
-w workers Number of clip processors
-o outdir
-t diff-threshold Difference threshold required between frames for a
frames to be considered different
-r repetition-threshold
Number of frames in a row required to make a cut
Api
from abridge import abridge_clip
abridge_clip("/path/to/clip")
Developing
The abridge project is managed and packaged by poetry
Use poetry install to download the required packages for development
poetry run pre-commit install should be run to install the pre-commit
scripts which help with ensuring code is linted before push.
Tests
Tests are written with pytest and can be run with make test
Linting
abridge is linted with pylint and formatted with black and isort
mypy is used throughout the project to ensure consitent types.
make lint will check linting, code formatting, and types
make format will format code to required standards
TODO:
- Test coverage on processor
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abridge-0.1.4.tar.gz.
File metadata
- Download URL: abridge-0.1.4.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/4.19.23-coreos-r1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc8dbab94af7b4f1a64eb4dd0c3d7f82bb860d160f524b58f62c520d110759e2
|
|
| MD5 |
c0dbc95b9d627c4546845ae13fbd4297
|
|
| BLAKE2b-256 |
101be8c4791336646f7f69dd5e8606e6cdd23639a18922df5256f4fdf0ddba15
|
File details
Details for the file abridge-0.1.4-py3-none-any.whl.
File metadata
- Download URL: abridge-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/4.19.23-coreos-r1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cda766255446da8671c421641f7a4e98c307bebc6a4d921ad266b10fb5cbdbc8
|
|
| MD5 |
6cc917666f8182751f7e23ad4f874c87
|
|
| BLAKE2b-256 |
efd422bb2a0e2e2827df128e51ecbd86a3a8d3daae0eb6f95b95c3190ac877a1
|