Skip to content

Instantly share code, notes, and snippets.

@begin-theadventure
Last active September 26, 2022 21:10
Show Gist options
  • Save begin-theadventure/f2403ea22707e62d1ab44b19da535e37 to your computer and use it in GitHub Desktop.
Save begin-theadventure/f2403ea22707e62d1ab44b19da535e37 to your computer and use it in GitHub Desktop.
Bulk conversion of mp3 files to wav 16-bit 48000 Hz using ffmpeg and a shell script. It works in the current directory.
shopt -s globstar nullglob
for f in *.mp3
do
ffmpeg -i "${f}" -vn -c:a pcm_s16le -ar 48000 "${f%.*}.wav"
done
@begin-theadventure
Copy link
Author

Based on wav converter and this post.
Useful for bulk audio file conversion for Northstar audio override mods.
Titanfall 2 audio is 16 bit 48000 Hz wav. 44100 Hz should also be fine.

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