Skip to main content

Splice similar frames from videos

Project description

abridge

pipeline status coverage report Code style: black PyPI version

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

abridge-0.1.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

abridge-0.1.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file abridge-0.1.3.tar.gz.

File metadata

  • Download URL: abridge-0.1.3.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

Hashes for abridge-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d42200740d6c6c2386f76848c83c4bb63fdf740c8aee0595d8bcc034a2a6d68a
MD5 e960cd7f64830d71d4da30790a9cbaab
BLAKE2b-256 123f316a68409adfb34a0ef8f48c4d17ea40b79ac0565b1c98fe37d3b2ea78d1

See more details on using hashes here.

File details

Details for the file abridge-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: abridge-0.1.3-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

Hashes for abridge-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe2039f8fba00ce3fbfd735783e5075e6026172442825c822f0c5f536742adbd
MD5 1731479fc0fd27adb7a3b496d6b3fd19
BLAKE2b-256 a80f01a453a7360d74f4fda24a0206c39451572c42a457c8288d8e34a4105abc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page