Skip to content

Instantly share code, notes, and snippets.

@fabiofidanza
Last active August 6, 2024 16:29
Show Gist options
  • 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
HQ
for f in *.wav; do ffmpeg -i "$f" -c:a libmp3lame -q:a 0 "${f/%wav/mp3}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment