Skip to main content

A CLI to create videos overlaid with text.

Project description

ViralOverlay™

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

Beer

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)

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

viraloverlay-0.174.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

viraloverlay-0.174-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file viraloverlay-0.174.tar.gz.

File metadata

  • Download URL: viraloverlay-0.174.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 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

File hashes

Hashes for viraloverlay-0.174.tar.gz
Algorithm Hash digest
SHA256 c8c52d33fb307e425bbca89a16998ffc8e0562688ddcabb41c4d43fb3ca9d508
MD5 90118fbcb08898cc8cfb27428d71ea76
BLAKE2b-256 b934fc3b099a8fb31d6a0245d2d053cd44ebb079c4248904f948414d30e6a6f6

See more details on using hashes here.

File details

Details for the file viraloverlay-0.174-py3-none-any.whl.

File metadata

  • Download URL: viraloverlay-0.174-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 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

File hashes

Hashes for viraloverlay-0.174-py3-none-any.whl
Algorithm Hash digest
SHA256 b877d39386034641f84a509ee983ec61c52dcacd3cf25e90685f4b0094a84267
MD5 6e8b93f9e217cac2f3ac1a9be111965c
BLAKE2b-256 e03c297d580cdd379ee7df1eb4ca913a606405c52c64b1f8dcc5ee8875a69ff9

See more details on using hashes here.

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