A simple web app that automatically generates subtitles for videos using AI.
Built with Streamlit, OpenAI Whisper, and MoviePy.
- ๐ค Upload video files (MP4, MOV, AVI, MKV)
- ๐ง Extract audio from video
- ๐ง Transcribe speech using Whisper (multilingual support)
- ๐ Generate subtitles in SRT format
- ๐ฌ Burn subtitles directly onto video
- ๐ฅ Download SRT file and final video
- Upload a video
- Audio is extracted using MoviePy
- Whisper model converts speech โ text
- Transcription is converted into SRT subtitles
- Subtitles are added to video
- Download results
- Python
- Streamlit (UI)
- Whisper (speech-to-text)
- MoviePy (video processing)
- SRT (subtitle formatting)
- Pydub (audio handling)
pip install -r requirements.txt
(Better is to create a virtual environment before this command either using venv or conda)streamlit run app.py-
Video: MP4, MOV, AVI, MKV
-
Output:
.mp4(video with subtitles).srt(subtitle file)
- Processing time depends on video length and model size
- Whisper runs locally (no API required)
- Large videos may take longer to process
- Better subtitle styling (fonts, colors)
- GPU acceleration for faster processing
- Real-time captioning
- Multi-language subtitle export
- OpenAI Whisper for speech recognition
- MoviePy for video processing
- Streamlit for UI framework
Manish Tiwari (predictivemanish) (Built as part of learning AI & real-world applications)