Skip to content

Instantly share code, notes, and snippets.

@fabiofidanza
Created March 20, 2024 17:23
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 fabiofidanza/4b4869d6826e8a2a5563bdf925200478 to your computer and use it in GitHub Desktop.
Save fabiofidanza/4b4869d6826e8a2a5563bdf925200478 to your computer and use it in GitHub Desktop.
Convert all wavs in a folder to mp3 + ogg
for f in *.wav; do ffmpeg -i "$f" -c:a libmp3lame -q:a 2 "${f/%wav/mp3}" -c:a libvorbis -q:a 4 "${f/%wav/ogg}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment