Skip to content

Instantly share code, notes, and snippets.

@shyamjos
Created July 13, 2016 06:06
Show Gist options
  • Save shyamjos/40fdf6cf93bcea250d22483aad795daa to your computer and use it in GitHub Desktop.
Save shyamjos/40fdf6cf93bcea250d22483aad795daa to your computer and use it in GitHub Desktop.
Shell script to convert all .mkv video files in a directory to .mp3
find . -type f -name "*.mkv" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -b:a 320000 -y "${FILE%.mkv}.mp3";' _ '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment