Skip to content

Instantly share code, notes, and snippets.

@psenough
Created June 23, 2017 01:58
Show Gist options
  • Save psenough/7865f5f389b16e511207964b6aaa9048 to your computer and use it in GitHub Desktop.
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
#!/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