Skip to content

Instantly share code, notes, and snippets.

@begin-theadventure
Last active September 26, 2022 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save begin-theadventure/87e59b1aaf806fe542237f9e1a7fb2f6 to your computer and use it in GitHub Desktop.
Save begin-theadventure/87e59b1aaf806fe542237f9e1a7fb2f6 to your computer and use it in GitHub Desktop.
Bulk conversion of wav files to 16-bit 48000 Hz using ffmpeg and a shell script. It works in the current directory.
shopt -s globstar nullglob
for f in *.wav **/*.wav
do
ffmpeg -i "$f" -acodec pcm_s16le -ar 48000 "${f%.wav}.new.wav"
mv -f "${f%.wav}.new.wav" "$f"
done
@begin-theadventure
Copy link
Author

Author: Andrea Corbellini
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