[thelist] audio files (.wav) to .ogg shell script

John List johnlist at gulfbridge.net
Thu Jul 8 19:58:35 CDT 2010

On 07/08/2010 05:10 PM, Bob Meetin wrote:
> I had some very old 60 minute family cassette tapes converted to audio 
> files. They were returned in .wav format and they are huge, 300+ MB. I 
> had planned on placing them on a family website but the size is close 
> to a deal killer. Are there better options than .wav that are a little 
> more conservative if I were to convert them. I've downloaded audacity 
> on my Linux box as one possible tool, and of course, anything that is 
> command-line doable works for me.

Here's a Linux shell script that uses mplayer to convert .wav files to .ogg:


echo Param $foo
echo Path $path
echo File $file
echo Base $base

mplayer -ao pcm:waveheader:fast:file=$base.wav \
-quiet -vc null -vo null \

More information about the thelist mailing list