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

(Optional) Subtitles translation

(Optional) AEGISUB: Subtitles style

(Optional) AVIDEMUX: Burn subtitles on the video