Skip to content

Instantly share code, notes, and snippets.

@thebabush
Created September 27, 2017 12:50
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 thebabush/0d3c6ae9c96f83482d4df5f328ccb774 to your computer and use it in GitHub Desktop.
Save thebabush/0d3c6ae9c96f83482d4df5f328ccb774 to your computer and use it in GitHub Desktop.
Convert all WAVs in a directory to MP3s (VBR 150/195 kbps) using ffmpeg on windows
REM Put this file in a directory and double click on it
REM Some details:
REM - ffmpeg must be in the system PATH
REM - you can change the bitrate easily by changing the "q" parameter (https://trac.ffmpeg.org/wiki/Encode/MP3)
for /f "tokens=1 delims=." %%a in ('dir /B *.wav') do ffmpeg -i "%%a.wav" -q:a 3 "%%a.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment