Skip to content

Instantly share code, notes, and snippets.

@kampar
Created April 28, 2025 13:14
Show Gist options
  • Save kampar/fd4630725bae4f80a1fcaae35230cd13 to your computer and use it in GitHub Desktop.
Save kampar/fd4630725bae4f80a1fcaae35230cd13 to your computer and use it in GitHub Desktop.
Convert all mp3 within current directory into 32kbps bitrate and tempo faster 1.5 times
@echo off
for %%F in (*.mp3) do (
if not exist "%%~nF.32x1.5.mp3" (
echo Converting "%%F" to "%%~nF.32x1.5.mp3" with 1.5× speed...
ffmpeg -i "%%F" -map_metadata 0 -filter:a "atempo=1.5" -b:a 32k "%%~nF.32x1.5.mp3"
) else (
echo "%%~nF.64x1.5.mp3" already exists, skipping.
)
)
echo All files processed!
pause
@kampar
Copy link
Author

kampar commented Apr 28, 2025

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