coloredcaps
Convert a video into colored YouTube XML captions (.ytt) made from block
characters.
Demo (Turn YouTube Captions (CC) on to See the Effect)
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
- Upload a video to YouTube, preferably the black video created with
--create-video. - On the Details tab, scroll down and select a video language.
- Open the Video elements tab at the top.
- Under subtitles, select Add and then Upload file.
- Select the generated
output.yttfile.
Run the following command to see every option:
coloredcaps --help
License
MIT
Metadata
Release files for coloredcaps 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coloredcaps-0.1.1.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coloredcaps-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / coloredcaps-0.1.1.tar.gz
| Download URL | coloredcaps-0.1.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1db5aa5f5ad2fade46ee51099f97ced4f3b0ef812a6640aec00365f0c374e4a3
|
|
BLAKE2b-256 checksum How to use checksums |
72f2759c3d16b1529e65333ba5f4298771a841fa363b486c8554f635c77f4d83
|
| 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.1-py3-none-any.whl
| Download URL | coloredcaps-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
377fa83aa674085cde933e1e4b073ae49477bac0f326ca4bf336fa4e2a39a7b4
|
|
BLAKE2b-256 checksum How to use checksums |
1daaf071e2abd255ec4dba8d98f11fabf38e501b0dccbadbe5c59a3e7d4fed29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.2
|