Add Automatic Captions to YouTube Shorts with AI
Project description
Captacity
Add automatic captions to YouTube Shorts (and other videos) using Whisper and MoviePy
Quick start
$ python3 main.py <video_file> <output_file>
Programmatic use
import captacity
captacity.add_captions(
video_file="my_short.mp4",
output_file="my_short_with_captions.mp4",
)
Custom configuration
import captacity
captacity.add_captions(
video_file="my_short.mp4",
output_file="my_short_with_captions.mp4",
font = "fonts/Bangers-Regular.ttf",
font_size = 130,
font_color = "yellow",
stroke_width = 3,
stroke_color = "black",
shadow_strength = 1.0,
shadow_blur = 0.1,
highlight_current_word = True,
word_highlight_color = "red",
line_count=1,
padding = 50,
)
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
captacity-0.1.0.tar.gz
(143.3 kB
view hashes)
Built Distribution
captacity-0.1.0-py3-none-any.whl
(141.9 kB
view hashes)
Close
Hashes for captacity-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 987f60bc99d73a910823156eb5ed23aeb02dfc9bb66e2bf65a8ac8b4e6658f9a |
|
MD5 | dea755c7ed106de5c7823ba23d4d0f30 |
|
BLAKE2b-256 | e77ad239cf633a7657d6c14d563e31b2e191b7b397fac0f7aec90a4103085998 |