Last active
July 23, 2016 14:53
-
-
Save owenjones/ac925bb97b8df81f6360e29adaa404ff to your computer and use it in GitHub Desktop.
Merges separate .mkv and .srt files in a folder into a single .mkv
This file contains hidden or 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
#!/bin/sh | |
echo ">> Merging .srt into .mkv" | |
for f in *.mkv | |
do | |
echo ">> Merging ${f%.*}" | |
mkvmerge -o ./merged/${f} ${f} ${f%.*}.srt | |
done | |
echo ">> Finished merging" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment