QUOTE(Shane N @ Dec 12 2006, 17:21)

What is happening, is I create wav files dynamically from a database. The wav files can be played directly. When I run LAME to convert them to MP3 with just "lame test.wav test.mp3", the MP3 is created, but the content isn't there, but rather a bunch of screeching. However, some other files will convert. I noticed that the output from LAME shows frames 19/22 and 90%. Does that mean it didn't finish? The ones that play sometimes do that as well.
Are there any limits to how small of a wav file can be converted? Many of these are 10-30 seconds long.
This must be quite a dramatic, if not traumatic, experience for a user converting files for the first time. It doesn't have to be this complicated. Honestly!
The fact you end up converting "some other file" makes me wonder if you might be running Lame via it's line command interface and getting the source file name muddled. Have you tried using one of the
front end GUIs which are available? They will make it much easier to set paramaters and will provide some advice on what the parameters do.
The small file size you are using should be no problem.
As other posters have said, the file needs to be the PCM type of WAV file. I am not clear what your audio file "database" is but perhaps it contains files which have been compressed to a half or a fourth of their original size using "AD" techniques and stored in a format called ADPCM which is then given a WAV wrapper.
Incidentally, there are two common variants of ADPCM: one by Microsoft called MS-ADPCM and one by the IMA called IMA-ADPCM.
Personally, if I had an ADPCM-WAV file I might be inclined to get a different encoder than the esteemed Lame and use that to convert the ADPCM-WAV file direct to MP3. This might be better than taking the file from ADPCM-WAV back to PCM-WAV and then to MP3.
Luckily my first attempts at file conversion all those years ago never got snarled up in discussions about ADPCM!

Heh! I hope you don't get snarled up in it either.
Moonshot