CLI tool for automatic video subtitling
Top 22.6% on sourcepulse
This project provides a command-line tool for automatically generating and overlaying subtitles onto video files using OpenAI's Whisper model and FFmpeg. It is designed for video creators and editors seeking an efficient way to add accurate subtitles to their content.
How It Works
The tool leverages OpenAI's Whisper, a robust speech-to-text model, to transcribe audio from video files. It then utilizes FFmpeg to burn these generated subtitles directly onto the video frames, creating a single output file with embedded subtitles. Users can select different Whisper model sizes for trade-offs between transcription accuracy and processing speed, and can also opt to translate subtitles into English.
Quick Start & Requirements
pip install git+https://github.com/m1guelpf/auto-subtitle.git
apt
, brew
, or choco
).auto_subtitle /path/to/video.mp4 -o subtitled/
auto_subtitle --help
Highlighted Details
tiny
, base
, small
, medium
, large
) for customizable accuracy and performance.--task translate
flag.Maintenance & Community
No specific community channels or maintenance details are provided in the README.
Licensing & Compatibility
Limitations & Caveats
The README does not specify hardware requirements for different Whisper models, which may impact performance and usability on lower-end systems.
1 year ago
1 week