Skip to main content

Create shorts from long form videos

Project description

vidtoolz-shorts

PyPI Changelog Tests License

Create shorts from long form videos

Installation

First install vidtoolz.

pip install vidtoolz

Then install this plugin in the same environment as your vidtoolz application.

vidtoolz install vidtoolz-shorts

Usage

type vidtoolz-shorts --help to get help

usage: vid shorts [-h] [-t TEXT_FILE] [-i [INPUT ...]] [-d TIME] [-st STARTAT]
                  [-r RATIO] [-o OUTPUT]
                  filename

Create shorts from long form videos

positional arguments:
  filename              File containing the list of files or .mp4 file which
                        is used for shorts

optional arguments:
  -h, --help            show this help message and exit
  -t TEXT_FILE, --text-file TEXT_FILE
                        Text file containing comments (default: None)
  -i [INPUT ...], --input [INPUT ...]
                        Text inputs (default: [])
  -d TIME, --time TIME  Duration of shorts in secs (default: 60)
  -st STARTAT, --startat STARTAT
                        Audio startat ex 30s or 1:15 or 1:24:30 (default: 0.0)
  -r RATIO, --ratio RATIO
                        Size Ratio: ex 9/16 (0.5625), 4/5 (0.8) or (default:
                        1.0)
  -o OUTPUT, --output OUTPUT
                        Path to save the trimmed video.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd vidtoolz-shorts
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

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

vidtoolz_shorts-0.0.3.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vidtoolz_shorts-0.0.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file vidtoolz_shorts-0.0.3.tar.gz.

File metadata

  • Download URL: vidtoolz_shorts-0.0.3.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vidtoolz_shorts-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d955217e2c75bb72be0f45e978f3aa3dd12f00c8ff114fdeb88909ca4ab84e3b
MD5 19fff2528beb421a1a6a8a0728dd64c3
BLAKE2b-256 fde14e3e44456accd1039d071c59240392b0f67c270e3018b0cac7695e5c28e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidtoolz_shorts-0.0.3.tar.gz:

Publisher: publish.yml on sukhbinder/vidtoolz-shorts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vidtoolz_shorts-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for vidtoolz_shorts-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8429984b1e9044b63a2acc98a6948d8788471d0a4b8343220939a1d088ed1d84
MD5 77e7f5685b8926dc2ac8a65f4c32fe3c
BLAKE2b-256 198195d3c4b558edc2370f3cd3ac2dde73061922913d3fd484aeaf99d86cdf1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidtoolz_shorts-0.0.3-py3-none-any.whl:

Publisher: publish.yml on sukhbinder/vidtoolz-shorts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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