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
Metadata
Release files for abridge 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| abridge-0.1.4.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abridge-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / abridge-0.1.4.tar.gz
| Download URL | abridge-0.1.4.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc8dbab94af7b4f1a64eb4dd0c3d7f82bb860d160f524b58f62c520d110759e2
|
|
BLAKE2b-256 checksum How to use checksums |
101be8c4791336646f7f69dd5e8606e6cdd23639a18922df5256f4fdf0ddba15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.3 Linux/4.19.23-coreos-r1
|
Release files / abridge-0.1.4-py3-none-any.whl
| Download URL | abridge-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cda766255446da8671c421641f7a4e98c307bebc6a4d921ad266b10fb5cbdbc8
|
|
BLAKE2b-256 checksum How to use checksums |
efd422bb2a0e2e2827df128e51ecbd86a3a8d3daae0eb6f95b95c3190ac877a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.3 Linux/4.19.23-coreos-r1
|