Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active May 16, 2019 02:09
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 lextra2/ba52c42cad923107330373903a7ebce3 to your computer and use it in GitHub Desktop.
Save lextra2/ba52c42cad923107330373903a7ebce3 to your computer and use it in GitHub Desktop.
FFMPEG.BAT - Encodes the first audio stream of all files that are dropped onto this .bat as .flac and outputs them in the same folder. Requires all files to be in the same location.
@echo off
:next
if "%~1" == "" goto done
ffmpeg -i "%~1" -map_metadata -1 -vn -c:a flac "%~1.flac"
shift
goto next
:done
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment