-
-
Save dennisschneider/df5dfae99de791e6207e to your computer and use it in GitHub Desktop.
Recursively convert mkv to mp4 with avconv
This file contains 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
# Enable recursive globbing in Bash: | |
shopt -s globstar | |
# Then, a simple loop, replacing the output filename: | |
for f in **/*.mkv; do avconv -i "$f" -c copy "${f%.mkv}.mp4"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This worked perfectly for what I was trying to do, thank you!