Skip to content

Instantly share code, notes, and snippets.

@stephan-nordnes-eriksen
Last active May 22, 2021 09:55
Show Gist options
  • Save stephan-nordnes-eriksen/530c1e4ed4055413fd4c198c49c5f2d3 to your computer and use it in GitHub Desktop.
Save stephan-nordnes-eriksen/530c1e4ed4055413fd4c198c49c5f2d3 to your computer and use it in GitHub Desktop.
.bat script for drag-n-dropping audio files to convert them into .wav with ffmpeg. Assumes globally available ffmpeg command
if [%1]==[] goto :eof
:loop
@echo converting %1 to .wav
ffmpeg -i %1 "%~dpn1%.wav"
shift
if not [%1]==[] goto loop
echo Done
@pause
@stephan-nordnes-eriksen
Copy link
Author

Simply save this as a .bat file on a windows machine, and drag-n-drop any number of audio files (or even video) to output a .wav file for each input file in the same directory as they came from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment