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

Demo

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] [-t TEXT] [-mt MULTI_TEXT] [-o OUTPUT]
                   [-p {top-left,top-right,bottom-left,bottom-right,center,bottom}]
                   [-st START_TIME] [-et END_TIME] [-f FONTSIZE]
                   [-pad PADDING] [-d DURATION]
                   main_video

Add text to a video file

positional arguments:
  main_video            Path to the main video file.

optional arguments:
  -h, --help            show this help message and exit
  -t TEXT, --text TEXT  Text to write
  -mt MULTI_TEXT, --multi-text MULTI_TEXT
                        Multi-text in format "text,start,duration". Can be
                        used multiple times. ex "hello,1:20,10"
  -o OUTPUT, --output OUTPUT
                        Output video file name (default: None)
  -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: (default: 0)
  -et END_TIME, --end-time END_TIME
                        End time when text should disappear. (default: None)
  -f FONTSIZE, --fontsize FONTSIZE
                        Fontsize (default: 50)
  -pad PADDING, --padding PADDING
                        Padding (default: 50)
  -d DURATION, --duration DURATION
                        Duration in seconds (default: 4)

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.4.1.tar.gz (9.5 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.4.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vidtoolz_add_text-0.4.1.tar.gz
  • Upload date:
  • Size: 9.5 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.4.1.tar.gz
Algorithm Hash digest
SHA256 dfeab0afb6659f0eebff8285aea38fd8ed9aa349e12fd399a72e6c71bc266c5f
MD5 e62ec17c4cafc40c99b6c597d009301d
BLAKE2b-256 3b9a0f3bae9b60998a886207166d4b7c23f532ac2c7e537decb8ad1a6ea87940

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidtoolz_add_text-0.4.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.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vidtoolz_add_text-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 792fab6920c82242650a66719e213f87644b14a0b627cb1d0910b990ef7f42da
MD5 3956dc683bb3a8ffdbb932bd4c0e772c
BLAKE2b-256 585ff2aa89e7b272e9c815ae0bd6793d2d0cb75367beff914f7839c830fab941

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidtoolz_add_text-0.4.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