Created
August 14, 2018 20:13
-
-
Save yshalsager/73d954ad1cbc8953b6994b12ade1f4b5 to your computer and use it in GitHub Desktop.
ani-dl SubExtractor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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