https://github.com/codeonthespectrum/aisubs
A subtitle generator for videos up to 10GB, automatically transcribing and translating spoken content into Brazilian Portuguese. Ideal for multilingual content, this tool creates accurate `.srt` files for seamless integration with video players.
https://github.com/codeonthespectrum/aisubs
automation ffmpeg language-detection moviepy multilingual-translations openai python speech-to-text subtitles-generator translation video-processing video-subtitles video-transcription whisper-api
Last synced: about 2 months ago
JSON representation
A subtitle generator for videos up to 10GB, automatically transcribing and translating spoken content into Brazilian Portuguese. Ideal for multilingual content, this tool creates accurate `.srt` files for seamless integration with video players.
- Host: GitHub
- URL: https://github.com/codeonthespectrum/aisubs
- Owner: codeonthespectrum
- Created: 2024-12-11T15:01:05.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T12:34:23.000Z (about 2 months ago)
- Last Synced: 2025-04-09T20:07:14.218Z (about 2 months ago)
- Topics: automation, ffmpeg, language-detection, moviepy, multilingual-translations, openai, python, speech-to-text, subtitles-generator, translation, video-processing, video-subtitles, video-transcription, whisper-api
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Video Subtitle Generator with Language Detection and Translation**
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.
### **The Fina Look**
Below are some visuals to help you understand how the subs are supposed to look
#### **1. Exported Subtitle File**
*Generated `.srt` files are accurate and can be used directly with most media players. In this example I used VLC*


---
## **Features**
- 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.---
## **Technologies Used**
- **Python**
- [Whisper](https://github.com/openai/whisper): For speech-to-text processing.
- [FFmpeg](https://ffmpeg.org/): For audio extraction from video files.
- [mTranslate](https://pypi.org/project/mtranslate/): For subtitle translation.
- [MoviePy](https://zulko.github.io/moviepy/): For video processing and management.---
## **Installation**
### **Prerequisites**
- Python 3.8+
- FFmpeg installed on your system ([Installation Guide](https://ffmpeg.org/download.html)).
- GPU support (optional) for faster processing.## ** Support the Project
If you find this project useful, consider supporting its development:- USDT (TRC20):
`TLpSee85pWMz9uTCSG3UyPdyWBuzNdKmYA`
- Pix (Brazil):
`f1d8f782-5046-4306-825b-27faa53bc7d4`
## ** License **
*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! 😊*