Skip to content

Instantly share code, notes, and snippets.

@yshalsager
Created August 14, 2018 20:13
Show Gist options
  • Save yshalsager/73d954ad1cbc8953b6994b12ade1f4b5 to your computer and use it in GitHub Desktop.
Save yshalsager/73d954ad1cbc8953b6994b12ade1f4b5 to your computer and use it in GitHub Desktop.
ani-dl SubExtractor
for file in *.mkv; do
ep=$(echo "$file" | grep -Po ' - [0-9]*' | cut -d ' ' -f3 | head -n1)
ffmpeg -i "$file" $ep.srt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment