This project is a Python-based application that automates the process of generating subtitles for videos in any spoken language. It uses OpenAI's Whisper model for accurate transcription and automatically translates the generated subtitles into Brazilian Portuguese. The result is exported as a .srt
file, which can be easily added to videos using media players or video editing software.
The application is designed to handle large video files (up to 10GB) and is ideal for filmmakers, educators, or anyone working with multilingual content.
Below are some visuals to help you understand how the subs are supposed to look
Generated .srt
files are accurate and can be used directly with most media players. In this example I used VLC
- Automatic language detection using Whisper.
- High-accuracy subtitle generation.
- Subtitle translation to Brazilian Portuguese (or any specified language).
- Handles large video files (up to 10GB).
- Easy-to-use and extensible for API or GUI integration.
- Python
- Whisper: For speech-to-text processing.
- FFmpeg: For audio extraction from video files.
- mTranslate: For subtitle translation.
- MoviePy: For video processing and management.
- Python 3.8+
- FFmpeg installed on your system (Installation Guide).
- GPU support (optional) for faster processing.
If you find this project useful, consider supporting its development:
- USDT (TRC20):
TLpSee85pWMz9uTCSG3UyPdyWBuzNdKmYA
- Pix (Brazil):
f1d8f782-5046-4306-825b-27faa53bc7d4
This project is licensed under the MIT License.
Feel free to contribute to this project by submitting pull requests or opening issues. Feedback and suggestions are always welcome! 😊