CLI tool for local video subtitle generation and translation
Top 45.5% on sourcepulse
This project provides a command-line tool for batch generating subtitle files from local videos and translating them into other languages. It's designed for users with large collections of foreign-language videos who need to add subtitles and translations efficiently, avoiding the overhead of uploading videos to online services.
How It Works
The tool follows a straightforward pipeline: it extracts audio from video files using FFmpeg, generates original language subtitles using the Whisper model (integrated via whisper.cpp
for Apple Silicon optimization), and then translates these subtitles using various API services. Users can configure the output format to include only the translation, or both the original and translated subtitles.
Quick Start & Requirements
yarn install
or npm install
.env.local
for translation services (Baidu, Volcano, Deeplx, Ollama).config.js
.yarn start
or npm start
.Highlighted Details
whisper.cpp
for optimized performance on Apple Silicon.Maintenance & Community
The project is actively maintained by buxuku. Discussions and issue reporting are encouraged via GitHub.
Licensing & Compatibility
The repository does not explicitly state a license. The use of translation APIs requires users to obtain their own API keys and adhere to the terms of those services.
Limitations & Caveats
The non-Store version is not optimized for Apple Silicon, leading to slower subtitle generation. Batch translation may be subject to rate limiting by the chosen API. Users must obtain and configure their own API keys for translation services.
1 month ago
1 day