Skip to main content

ViralOverlay™

Add styled, timed text to videos 'n GIFs! Kinda like this:

Demo

Usage

vo [OPTIONS] FILEPATH OVERLAY_DATA

OVERLAY_DATA: a JSON file path OR a JSON-formatted string containing an
array of overlays, each containing key-value pairs of at least "text",
"start", and "stop". optional keys: "font_size", "font_color",
"text_position_x", and "text_position_y"

Options:
  -g, --gif             output to GIF instead of MP4
  -f, --font-path TEXT  path to the font you'd like to use.
  --help                Show this message and exit.

Example

$ vo <path_to_video> <json_transcript_filepath_or_string> [--gif --font]

(lots of ffmpeg output...)
Okay, I overlaid your text on <path_to_video_overlaid>.

JSON Transcript Format

The json_transcript string or file should look like this:

[
    {
        "start": 1.03,
        "stop": 1.21,
        "text": "I"
    },
    {
        "start": 1.21,
        "stop": 1.44,
        "text": "am"
    },
    {
        "start": 1.45,
        "stop": 1.84,
        "text": "saying"
    },
    {
        "start": 1.85,
        "stop": 2.25,
        "text": "some"
    },
    {
        "start": 2.25,
        "stop": 2.97,
        "text": "words"
    }
]

See sibling projects Transcribe all the Things and tpro for easy, automatic generation of such transcripts.

Installation

pip install viraloverlay
brew install ffmpeg  # (if you don't have ffmpeg already)

Metadata

Release files for viraloverlay 0.178

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for viraloverlay 0.178
File Size Uploaded Provenance Actions
viraloverlay-0.178.tar.gz 7.6 kB Without provenance Details for viraloverlay-0.178.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for viraloverlay 0.178
File Interpreter ABI Platform Actions
viraloverlay-0.178-py3-none-any.whl Python 3 none any Details for viraloverlay-0.178-py3-none-any.whl

Total release size: 17.4 kB

Release files / viraloverlay-0.178.tar.gz

Download URL viraloverlay-0.178.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
097f3c87f14b91064c865a7c0f1368dc32a02343cd90c4fedf38928cf38bc6f1
BLAKE2b-256 checksum
How to use checksums
f40ae29ab1ab3216fc85417b75fae53b99681fe302125f43530f09ba682fb91a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / viraloverlay-0.178-py3-none-any.whl

Download URL viraloverlay-0.178-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a7be8898d7a7928a9f805e9f03497b8faa434ed22dfb47ca8c595c7ce24d0f1
BLAKE2b-256 checksum
How to use checksums
45bb5107aada89e61400fbee38a9d1fdff23bf3b91ef8e552062473bae769ee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for viraloverlay 0.178

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page