Skip to content

Instantly share code, notes, and snippets.

@bensquire
Last active May 10, 2020 08:02
Show Gist options
  • Save bensquire/c573d6f317dd02d14372988457f70872 to your computer and use it in GitHub Desktop.
Save bensquire/c573d6f317dd02d14372988457f70872 to your computer and use it in GitHub Desktop.
Convert directory of MP4's to MKV's using ffmpeg (tested on OSX)
#!/bin/sh
for i in *.mp4; do
ffmpeg -i "${i}" -c:v copy -c:a copy "${i}.mkv"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment