Last active
September 26, 2022 21:10
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.