Skip to content

Instantly share code, notes, and snippets.

@wvpv
Created July 10, 2016 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wvpv/abf3bdcdd943ba00f90988c581f16fdc to your computer and use it in GitHub Desktop.
Save wvpv/abf3bdcdd943ba00f90988c581f16fdc to your computer and use it in GitHub Desktop.
Bash Script to Batch Convert .MKV files to .MP4 with avconv
find ./ -name '*.mkv' -exec bash -c 'avconv -i "$1" -c:v copy -c:a copy "${1%.mkv}.mp4"' _ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment