A Python script that:
- Reads the path of a video file from
path_video.txt
. - Converts the video to an audio file (
.mp3
) using FFmpeg. - Uses OpenAI Whisper to:
- Transcribe the audio into a
.txt
file. - Generate
.srt
subtitles with timestamps.
- Transcribe the audio into a
- Automatic audio extraction from video (
.mp4
,.mov
, etc.). - Option to remove the generated audio file after processing.
- Simple text-based configuration via
path_video.txt
.
- Python 3.7 or above
- PyTorch
- OpenAI Whisper
- FFmpeg installed on your system
ffmpeg-python
You can install dependencies using:
pip install -r requirements.txt