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
$ pip install captacity
$ captacity <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 = "/path/to/your/font.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.2.0.tar.gz
(149.6 kB
view hashes)
Built Distribution
captacity-0.2.0-py3-none-any.whl
(149.1 kB
view hashes)
Close
Hashes for captacity-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46685566f974ab8e94901c311dd44cd032a199ebb394470ff8fe475f22f7d2f2 |
|
MD5 | 26073382fc999d340aa54d19a5630747 |
|
BLAKE2b-256 | 58279fb1efba9217fee3db0359dabd1ce15bfcded55b7735b8a443995ea049d7 |