With this tutorial:
http://docs.buyscripts.in/LAME_MP3_Encoder



[root@ks300847 ~]# lame
LAME 32bits version 3.97 (http://www.mp3dev.org/)

usage: lame [options] <infile> [outfile]

<infile> and/or <outfile> can be "-", which means stdin/stdout.

Try:
"lame --help" for general usage information
or:
"lame --preset help" for information on suggested predefined settings
or:
"lame --longhelp"
or "lame -?" for a complete options list

[root@ks300847 ~]#