This project is an AI-powered video subtitle editor that uses OpenAI's Whisper model to transcribe and translate audio from video files, generate subtitles, and allow users to edit and preview the subtitles before downloading the final subtitled video.
- Extract audio from video files
- Transcribe and translate audio using Whisper model
- Generate SRT subtitle files
- Edit subtitles within the web interface
- Add subtitles to video using FFmpeg
- Download the final subtitled video
- Python 3.7+
- moviepy==2.0.0.dev2
- imageio==2.25.1
- ffmpeg-python
- streamlit
- whisper
- pysrt
-
Clone the repository:
git clone https://github.com/yourusername/AI-Video-Subtitle-Editor.git cd AI-Video-Subtitle-Editor -
Install the required packages:
pip install -r requirements.txt
-
Ensure FFmpeg is installed on your system. You can download it from FFmpeg.org.
-
Install ImageMagick:
sudo apt install imagemagick
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and go to
http://localhost:8501. -
Upload a video file, and the app will guide you through extracting audio, transcribing, generating subtitles, editing, and previewing the final subtitled video.
This project is licensed under the MIT License. See the LICENSE file for details.