Skip to content

Instantly share code, notes, and snippets.

@dennisschneider
Created July 24, 2015 18:35
Show Gist options
  • Save dennisschneider/df5dfae99de791e6207e to your computer and use it in GitHub Desktop.
Save dennisschneider/df5dfae99de791e6207e to your computer and use it in GitHub Desktop.
Recursively convert mkv to mp4 with avconv
# 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
@smccaffrey
Copy link

This worked perfectly for what I was trying to do, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment