Skip to content

Instantly share code, notes, and snippets.

@geolimber
Created December 27, 2018 06:11
Show Gist options
  • Save geolimber/667c8c4aeec540c3c708ef0cd7f82d17 to your computer and use it in GitHub Desktop.
Save geolimber/667c8c4aeec540c3c708ef0cd7f82d17 to your computer and use it in GitHub Desktop.
Finds all *.webm files in current folder and subfolders and converts it to mp3 using ffmpeg
find . -type f -iname "*.webm" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";' _ '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment