Skip to content

Instantly share code, notes, and snippets.

@owenjones
Last active July 23, 2016 14:53
Show Gist options
  • Save owenjones/ac925bb97b8df81f6360e29adaa404ff to your computer and use it in GitHub Desktop.
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
#!/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