Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Lame decoding

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.

Comments

  • MojojojoMojojojo Posts: 17Member
    : 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.
    :
    :

    Let me see if I understand your problem correctly... you encoded an MP3 file using LAME, and you again decoded the MP3 file back to WAV, and are trying to play the WAV file in your app, but it gives you errors.

    If this is the issue, then I would suggest that you find a WAV file which plays fine on your app, and then see it's attributes (sampling rate, bits per sample, channels). Maybe your software is looking for a particular set of attributes, for e.g., only stereo, 44.1 KHz, 16 bit files.

  • SephirothSephiroth Fayetteville, NC, USAPosts: 1,035Member
    I would suggest using dbPowerAmp. It is a freeware application that can encode and decode virtually all formats. You could then encoe to a better quality format such as WMA or even OGG, then decode back to wave using the same program once you get where you are going. However, even the best codec around loses some quality during compression, so the wave may sound slightly different than the original after all the conversions. If you need to play wave format, I would pick up a cheap 1GB or less flash drive and just leave it as wave to begin with.

    -[italic][b][red]S[/red][purple]e[/purple][blue]p[/blue][green]h[/green][red]i[/red][purple]r[/purple][blue]o[/blue][green]t[/green][red]h[/red][/b][/italic]

Sign In or Register to comment.