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.3.tar.gz (9.0 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.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vidtoolz_add_text-0.0.3.tar.gz
  • Upload date:
  • Size: 9.0 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.3.tar.gz
Algorithm Hash digest
SHA256 5815cb0463c1d2c68363cf05037be3897d6286701dcfaad304ca16d0f88df1e1
MD5 780d9e5d4b371f42c3b8af109439850f
BLAKE2b-256 9318d253a240b90d08729df3c877e157b0eff1e63f95e401798a8b76b696d155

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vidtoolz_add_text-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 607e5e7d144a018e0772f46615773ac763d6db1038c3628a60506f5ccab56b70
MD5 110be56c90c5e72706c7fe4eca18aed2
BLAKE2b-256 de8a518fc5c9d8fdb38527753f479709c1caa4ca23b71b6c0bf38dc06b911d40

See more details on using hashes here.

Provenance

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