Skip to main content

Splice similar frames from videos

Project description

abridge

pipeline status coverage report Code style: black

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.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: abridge-0.1.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Darwin/18.7.0

File hashes

Hashes for abridge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 817f71d8ca17e6fbca6a8f6adff80678189413aded762c88e11f37f464acf3dd
MD5 f4c233c7d7cf8e4db8f245a4ad2061a5
BLAKE2b-256 bc8c3ba722c26039235068bed47c9d3db41419f927c92b1bb08c1208caf27a60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: abridge-0.1.2-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 Darwin/18.7.0

File hashes

Hashes for abridge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf3b4086f3c0e8cefc7d17aea15326161c4e33e5cf52c71b213035eb51700b38
MD5 cf2b4e1b2221c362a61761ca041da70b
BLAKE2b-256 927662641ca1c75c419b5c82049ec2d8ee868560249af453cc1ce110562e048e

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