Created
June 23, 2017 01:58
-
-
Save psenough/7865f5f389b16e511207964b6aaa9048 to your computer and use it in GitHub Desktop.
convert all mp3s and oggs in a directory to wav files using ffmpeg
This file contains 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
#!/bin/bash | |
for filename in *.mp3 | |
do | |
ffmpeg -i "$filename" -vn -ar 44100 -ac 2 -f wav "$filename.wav" | |
done | |
for filename in *.ogg | |
do | |
ffmpeg -i "$filename" -vn -ar 44100 -ac 2 -f wav "$filename.wav" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment