Created
July 3, 2019 04:00
-
-
Save luckylittle/bec98791c037d0837333ef89eea22f5d to your computer and use it in GitHub Desktop.
Convert all MP4s in a folder to MKVs using MKVMerge
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 | |
| # Requires: mkvmerge | |
| for RH in *; do mkvmerge ${RH} -o $(basename -s .mp4 ${RH}).mkv; done; echo 'Done!' | |
| # rm *.mp4 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merge one
*.mp4and one*.m4ainside each directory into a*.mkv:find . -name '*.mp4' -execdir sh -c 'mkvmerge -o "$(basename "{}" .mp4)".mkv {} "$(basename "{}" .mp4)".m4a' \;