Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home Knowledge How-to convert multiple audio files in Linux

How-to convert multiple audio files in Linux

by Akaname last modified May 29, 2011 11:27 PM

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

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
Filed under: , , ,
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!