Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Batch convert .wav to .mp3 or .ogg
:: you must have oggenc or lame codecs installed and available in your PATH
cd path/to/your/folder/of/wav/files/to/convert
:: replace BITRATE with what you need, and use either of the following lines:
for /F %v IN ('dir /b *.wav') DO oggenc -m BITRATE %v
for /F %v IN ('dir /b *.wav') DO lame -b BITRATE %v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment