Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home Knowledge Convert multiple *.amr to *.oga audio files

Convert multiple *.amr to *.oga audio files

by Akaname last modified Jul 04, 2011 04:14 PM

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
Akaname (垢嘗) licks it...

Sekien Akaname

Akaname is a long tongued japanese demon

Usually, it comes in the night to lick the mud out of the bathtub. Take care and don't forget to clean your bathtub properly!