something like this ?

a script to encode .WAVs without user interaction
http://www.h.shuttle.de/mitch/stuff.en.html

more software here : http://www.mp3-converter.com/linux/