Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active May 16, 2019 00:36
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/9235741588d32ea7fa259cc43ea44040 to your computer and use it in GitHub Desktop.
Save lextra2/9235741588d32ea7fa259cc43ea44040 to your computer and use it in GitHub Desktop.
FFMPEG.BAT - Creates a new FLAC folder and encodes the first audio stream from all files in this .bat location as .flac, than moves them to the new FLAC folder. Requires all files to be in the same location.
mkdir FLAC
for %%a in (*) do (
ffmpeg -i "%%a" -map_metadata -1 -vn -c:a flac "FLAC\%%~na.flac"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment