Skip to content

Instantly share code, notes, and snippets.

@corbanmailloux
Created September 25, 2015 01:15
Show Gist options
  • Save corbanmailloux/ccf1b2a3d8dd208e4f35 to your computer and use it in GitHub Desktop.
Save corbanmailloux/ccf1b2a3d8dd208e4f35 to your computer and use it in GitHub Desktop.
Loop through a folder, merge SRT files with MP4s and make a MKV.
for i in *.mp4
do
i="${i%.mp4}"
"C:\Program Files\MKVToolNix\mkvmerge.exe" -o "$i.mkv" --default-track 0 --language 0:eng "$i.srt" "$i.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment