Created
February 28, 2021 23:03
-
-
Save burfo/07520325af0cc457357daa5b8f243128 to your computer and use it in GitHub Desktop.
Windows CMD script to convert WAVs into MP3s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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