Skip to main content

coloredcaps

Convert a video into colored YouTube XML captions (.ytt) made from block characters.

Installation

Install coloredcaps from PyPI:

pip install coloredcaps

To install a local copy while developing:

pip install -e .

coloredcaps requires Python 3.10 or newer.

Usage

coloredcaps input.mp4

This creates output.ytt in the current folder.

Choose another output folder:

coloredcaps input.mp4 --output captions

Control the caption resolution and frame rate:

coloredcaps input.mp4 --cols 30 --fps 8

You can specify --cols, --rows, or let coloredcaps calculate both. The maximum frame rate is 10 FPS.

To also create a black video containing the original audio:

coloredcaps input.mp4 --create-video

The --create-video option requires FFmpeg to be installed and available on your PATH.

Uploading to YouTube

  1. Upload a video to YouTube, preferably the black video created with --create-video.
  2. On the Details tab, scroll down and select a video language.
  3. Open the Video elements tab at the top.
  4. Under subtitles, select Add and then Upload file.
  5. Select the generated output.ytt file.

Run the following command to see every option:

coloredcaps --help

License

MIT

Metadata

Release files for coloredcaps 0.1.0

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

Source distribution (sdist)

Source distribution for coloredcaps 0.1.0
File Size Uploaded
coloredcaps-0.1.0.tar.gz 7.7 kB Details

Built distribution (wheel)

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

Total release size: 15.2 kB

Release files / coloredcaps-0.1.0.tar.gz

Download URL coloredcaps-0.1.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5def770bf5c1dc60b426ab500e5327954456896d0bf291a2cdffb374310cf7c4
BLAKE2b-256 checksum
How to use checksums
10839e7b5b25495848e4eae70138923aa3575ab8f889e2ab360f4c154b212b9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Release files / coloredcaps-0.1.0-py3-none-any.whl

Download URL coloredcaps-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bd7778dd467cc78f1d458260ef1abf63517dc0312eb75ce0bf556da05ddb47c
BLAKE2b-256 checksum
How to use checksums
e8374e3fea83d29a2448be3db40419855c0ea8ef5d7f0baa49276d3674e1d662
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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