- Automated video transcription using Whisper
- High-quality translations using Google Gemini AI
- SRT file generation in both source and target languages
- Automatic subtitle embedding in videos
- Concurrent processing support for multiple videos
- Real-time progress tracking with rich console interface
- Python 3.11+
- Install ffmpeg
- Get a Gemini API key
pip install subauto
Check if installation is complete
subauto --version
If a version is displayed, then SubAuto is installed correctly.
First, you need to configure your Gemini API key:
subauto set-api-key 'YOUR-API-KEY'
Translate videos to Spanish (full command):
subauto --directory /path/to/videos --output-directory /path/to/output --output-lang "es"
Or use the short version:
subauto -d /path/to/videos -o /path/to/output -ol "es"
Process multiple videos simultaneously by configuring the number of workers:
subauto -d /path/to/videos -o /path/to/output -ol "es" -w 4
Speed up the transcription process by specifying the source language:
subauto -d /path/to/videos -o /path/to/output -ol "es" -il "en" -w 4
Note: If you don't specify the input language, SubAuto will automatically detect it.
Then definitely consider supporting me on GitHub Sponsors or buy me a coffee:
Your support will allow me to allocate time to properly maintain my projects like this.
If you want to contribute to this project, please use the following steps:
- Fork the project.
- Create a new branch (git checkout -b feature/awesome-feature).
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/awesome-feature).
- Open a pull request.
This project is licensed under the MIT License.