Skip to content

Instantly share code, notes, and snippets.

@davidhaley
Created October 10, 2022 20:37
Show Gist options
  • Save davidhaley/16ff7d829ea5a6b9d49b469aeef52622 to your computer and use it in GitHub Desktop.
Save davidhaley/16ff7d829ea5a6b9d49b469aeef52622 to your computer and use it in GitHub Desktop.
Convert all MKV files in the current directoy to MP4 (without re-encoding)
#!/bin/bash
for i in *.mkv; do
[ -f "$i" ] || break
OUTPUT="${i%.mkv}.mp4"
ffmpeg -i "$i" -c copy "$OUTPUT"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment