Skip to content

Instantly share code, notes, and snippets.

@mauricius
Created November 4, 2018 11:09
Show Gist options
  • Save mauricius/b92c4b2c3188fd5ee341a1242c034c5d to your computer and use it in GitHub Desktop.
Save mauricius/b92c4b2c3188fd5ee341a1242c034c5d to your computer and use it in GitHub Desktop.
Batch script to re-encode MP3 files to different bitrate
set formats=*.mp3
set presets=-vn -ar 44100 -ac 2 -ab 192k -f mp3 -map_metadata 0 -id3v2_version 3
set outputext=mp3
# iterate through files and save in a 'reencoded' folder
for %%g in (%formats%) do start /b /wait "" "ffmpeg.exe" -i "%~dp0%%g" %presets% "reencoded/%%~ng.%outputext%" && TITLE "Converted: "%%g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment