Skip to content

Instantly share code, notes, and snippets.

@michaeldebetaz
Last active June 25, 2023 14:39
Show Gist options
  • Save michaeldebetaz/046ec3e633313b078825dc8710130a6b to your computer and use it in GitHub Desktop.
Save michaeldebetaz/046ec3e633313b078825dc8710130a6b to your computer and use it in GitHub Desktop.
# Requires ffmpeg
#!/bin/bash
for file in *mkv; do
filename="${file%.*}"
echo "$filename"
ffmpeg -i "$file" -vn -an -codec:s srt "$filename.srt"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment