Help - Search - Members - Calendar
Full Version: Lame Decoding
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
Cindy_16051988
Hello, sorry to disturb you all. I am newbie here. Recently, I call lame.exe from my software to do the encode and decode part by the help of a friend. My software is designed to record and play wave file in audio and visual. It is used in our speech rehabilitation centre to help children with speech problem. I work part time there.

I convert the wave file recorded by my software to MP3 by calling the lame.exe. It happened successfully.

Then, since the software can only play wave (cannot play MP3), I use the lame.exe to convert MP3 to wave file again. But, my software failed to play the wave giving the error of “Unsupported File Format”.

I checked both the wave file before and after conversion. They give the same format: PCM, mono, 16 kHz, 16 bits, 256 kbps. I could not figure out why the software cant play the wave file after conversion. The software can play the wave file recorded by the software itself.

Then, I tried by changing “- -decode” to “- - decode –t” but I get another error of saying that “Invalid File Type”. The, I tried again for “-x” because I thought there may be problem of little endian and big endian. The problem is still the same.

Hope you can give me some ideas or suggestions. I promise to do it as independent as possible, please, please. Please guide me at this very beginning.
john33
Welcome to HA. smile.gif

The standard command line for decoding is:
CODE
lame --decode file.mp3
and should be all that you require.
cabbagerat
QUOTE(Cindy_16051988 @ Apr 25 2006, 11:50 PM) *

Hope you can give me some ideas or suggestions. I promise to do it as independent as possible, please, please. Please guide me at this very beginning.

You can try using the Windows version (I assume you are on Windows, but it supports most other platforms) of SoX. It can decode MP3s from the command line into nearly any format you want, including changing the sample rate, etc.
Cindy_16051988
Hi,cabbagerat and john33, thank you very much for your reply, appreciate.

I have managed to convert it successfully. I was asked by a friend to remove the codes of GetNumSamples and after I removed it, the software can play the wave successfully.

May I ask? Is it possible to directly convert the wave to mp3 when the children click the button "save"? I worried that the small children dont know how to do this and that. We hope to make it as simple as possible. so that they are motivated to use this software.
AtaqueEG
Does LAME 3.97 decode gaplessly? Or do I have to keep on using something like foobar2000?
NeoRenegade
QUOTE(AtaqueEG @ Apr 27 2006, 12:16 AM) *

Does LAME 3.97 decode gaplessly? Or do I have to keep on using something like foobar2000?
I believe the "fixed for decoding" build at RareWares is what you want.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.