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
https://ffmpeg.org/
WHISPER AI: .srt subtitles extraction from video
You need to copy the .wav file