Skip to content

Instantly share code, notes, and snippets.

@Jeshii
Last active November 18, 2025 03:41
Show Gist options
  • Select an option

  • Save Jeshii/522336fdd3c013d1510746b4a2c6d6c9 to your computer and use it in GitHub Desktop.

Select an option

Save Jeshii/522336fdd3c013d1510746b4a2c6d6c9 to your computer and use it in GitHub Desktop.
Making subtitle files en-masse with whisper
  1. Install https://github.com/openai/whisper
  2. Make audio files of the video files
for file in *.MOV; do ffmpeg -i "$file" -vn -acodec copy "${file:r}.m4a"; done
  1. Run whisper on the audio files
for file in *.m4a; do whisper "$file" --language English; done
  1. Play videos with VLC to see subtitles or use the other various files created by whisper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment