Last active
November 6, 2019 09:33
-
-
Save jshbrntt/9314769 to your computer and use it in GitHub Desktop.
Batch file to convert folder of .flac files to .mp3 using ffmpeg.
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
@ECHO OFF | |
FOR %%f IN (*.flac) DO ( | |
echo Converting: %%f | |
ffmpeg -i "%%f" -ab 320k -map_metadata 0 "%%~nf.mp3" | |
) | |
echo Finished | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just info for future readers:
PS:
To use the FOR command in a batch program, specify %%variable instead
of %variable. Variable names are case sensitive, so %f is different
from %F