Created
October 10, 2022 20:37
-
-
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)
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/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