Skip to main content

Add text to a video file

Project description

vidtoolz-add-text

PyPI Changelog Tests License

Add text to a video file

Installation

First install vidtoolz.

pip install vidtoolz

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

vidtoolz install vidtoolz-add-text

Usage

type vid addtext --help to get help

usage: vid addtext [-h] [-o OUTPUT]
                   [-p {top-left,top-right,bottom-left,bottom-right,center,bottom}]
                   [-st START_TIME] [-et END_TIME] [-f FONTSIZE]
                   main_video text

Add text to a video file

positional arguments:
  main_video            Path to the main video file.
  text                  Text to write

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output video file name (default: output.mp4)
  -p {top-left,top-right,bottom-left,bottom-right,center,bottom}, --position {top-left,top-right,bottom-left,bottom-right,center,bottom}
                        Position of the text (default: bottom)
  -st START_TIME, --start-time START_TIME
                        Start time when text should appear
  -et END_TIME, --end-time END_TIME
                        End time when text should disappear
  -f FONTSIZE, --fontsize FONTSIZE
                        Fontsize default:50

Development

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

cd vidtoolz-add-text
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_add_text-0.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

vidtoolz_add_text-0.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file vidtoolz_add_text-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for vidtoolz_add_text-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0463bd87d1265dd81cc7dfd32c42d314c3aff148afc65e332b7afa84fa1b591d
MD5 099a5e9b927ab717cb38bdd996d512bf
BLAKE2b-256 e40eed32d6c0135f6d246fbb1d6b3058cb950b538c31abacd09754f2acd7df12

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidtoolz_add_text-0.0.1.tar.gz:

Publisher: publish.yml on sukhbinder/vidtoolz-add-text

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_add_text-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vidtoolz_add_text-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a77569553b573baacb11855046f042c1172ef29f31bd5f97bf0a745b2f6021c
MD5 0841c91ffc40a2a767cbaba933954523
BLAKE2b-256 6eff803245784970e444915e335ea6d48c9b567a13c642cdc23ce9db46c3ce98

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidtoolz_add_text-0.0.1-py3-none-any.whl:

Publisher: publish.yml on sukhbinder/vidtoolz-add-text

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