A simple Python tool that generates SRT subtitles from video files using OpenAI Whisper. Perfect for Final Cut Pro, Shorts, and other social media videos.
- Generates
.srtsubtitles automatically from video - Works with
.mp4,.mov,.mkv, and other formats supported by ffmpeg - User-friendly messages when input files are missing
- Ready to import into Final Cut Pro
- Easily extendable for short-form videos
- Python 3.10+
- ffmpeg installed and in PATH
- pip
Clone the repository:
git clone https://github.com/yourusername/auto-subtitles.git
cd auto-subtitlesCreate venv:
python3 -m venv .venv
source .venv/bin/activate # macOS / Linux
# .venv\Scripts\activate # WindowsInstall dependencies:
pip install --upgrade pip
pip install openai-whisper ffmpeg-python-
Put your video file in the input/ folder, e.g. input/video.mp4.
-
Run the script:
python transcribe.py
or in interactive mode
python transcribe.py --interactive
- Subtitles will be generated in output/subtitles.srt.