Skip to content

Instantly share code, notes, and snippets.

@burfo
Created February 28, 2021 23:03
Show Gist options
  • Save burfo/07520325af0cc457357daa5b8f243128 to your computer and use it in GitHub Desktop.
Save burfo/07520325af0cc457357daa5b8f243128 to your computer and use it in GitHub Desktop.
Windows CMD script to convert WAVs into MP3s
:: Drag and drop a WAV file onto this script to convert it into an MP3. Requires VLC to be installed.
set vlc="%PROGRAMFILES%\VideoLAN\VLC\vlc.exe"
set source=%~1
set dest="%~dpn1.mp3"
%vlc% -I dummy -vvv "%source%" --sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=file{no-overwrite},mux=mp3,dst='%dest%'} vlc://quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment