Skip to content

Instantly share code, notes, and snippets.

@Lokua
Last active July 20, 2019 17:11
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 Lokua/3a8c36f555f61887052c8232474edc10 to your computer and use it in GitHub Desktop.
Save Lokua/3a8c36f555f61887052c8232474edc10 to your computer and use it in GitHub Desktop.
converts all wav files in cwd to highest quality lame mp3
#!/bin/bash
function wav2mp3() {
for filename in *.wav; do
echo wav2mp3: converting $filename
mp3_filename="${filename[@]/%wav/mp3}"
lame --preset insane "$filename" "$mp3_filename"
echo wav2mp3: finished converting $filename
echo
done
}
@Lokua
Copy link
Author

Lokua commented Jul 20, 2019

only used on mac, needs:

brew install lame

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