How-to convert multiple audio files in Linux
You need to convert many audio files from one to another audio format? This is how to convert your audio files in the Linux terminal.
Convert multiple *.amr to *.oga audio files
This will convert all *.amr files in the current directory - including subdirectories - to *.oga audio files. See the Linux manual pages "man bash", "man find", "man ffmpeg", "man oggenc" and "man sed".
You can setup sampling rate, volume and quality for the ogg vorbis audio files to your needs.
This will not work for paths with whitespace included.
for i in `find . -name '*.amr'`; do ffmpeg -i $i -f ogg -acodec libvorbis -ar 44100 -vol 256 -aq 3 `echo $i | sed -e 's/\.amr$/\.oga/'`; done
