Skip to content

Instantly share code, notes, and snippets.

@AlexanderBrevig
Created October 1, 2012 11:44
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 AlexanderBrevig/3811139 to your computer and use it in GitHub Desktop.
Save AlexanderBrevig/3811139 to your computer and use it in GitHub Desktop.
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