How to create subtitles automatically on videos with Whisper AI
Here all the commands you need to generate automatically the subtitles on videos
FFMPEG: Audio conversion to 16bit
ffmpeg -i onemintalk.mp4 -resampler soxr -sample_fmt s16 -ar 16000 -ac 1 onemintalk.wav
WHISPER AI: .srt subtitles extraction from video
You need to copy the .wav
file in the whispercpp directory
./main -l en -osrt onemintalk.wav
https://github.com/ggerganov/whisper.cpp
(Optional) Subtitles translation
https://translatesubtitles.co/
(Optional) AEGISUB: Subtitles style
https://github.com/Aegisub/Aegisub/