A video subtitling project that uses Whisper to extract subtitles from videos.
This project is co-programing with Cursor
-
Ensure you have Poetry installed on your system.
-
Clone this repository and navigate to the project directory.
-
Install the project dependencies:
poetry install
-
Note: This project requires FFmpeg for audio processing. Make sure FFmpeg is installed on your system.
- On Ubuntu or Debian:
sudo apt-get install ffmpeg
- On macOS with Homebrew:
brew install ffmpeg
- On Windows: Download from the official FFmpeg website and add it to your system PATH.
- On Ubuntu or Debian:
After installation, you can run the project using:
To extract SRT subtitles from a video:
poetry run subvid /path/to/your/video.mp4 /path/to/output/subtitles.srt