Skip to content

Instantly share code, notes, and snippets.

@mattconnell
Created February 9, 2018 22:30
Show Gist options
  • Save mattconnell/ac990efb49deb5dad2f59961f4321e3d to your computer and use it in GitHub Desktop.
Save mattconnell/ac990efb49deb5dad2f59961f4321e3d to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Converting all wav files to liblame-encoded mp3s."
for i in *.wav ; do
echo -n "Processing file $i... "
ffmpeg -loglevel error -i "$i" -acodec mp3 "${i//\.wav/}".mp3
echo "Done."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment