Skip to content

Instantly share code, notes, and snippets.

@IanoNjuguna
Last active April 10, 2024 19:03
Show Gist options
  • Save IanoNjuguna/d8a68055285829b4356cc6390d8eafe0 to your computer and use it in GitHub Desktop.
Save IanoNjuguna/d8a68055285829b4356cc6390d8eafe0 to your computer and use it in GitHub Desktop.
When executed, this batch script converts all video files (mp4) in a folder to audio files (mp3) and stores them in the output\ folder (automatically created). NOTE: You should have ffmpeg installed before execution.
echo off
mkdir outputs
for %%a in ("*.mp4") do ffmpeg -i "%%a" -b:a 192K -vn "outputs\%%~na.mp3"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment