[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Any package on Debian to convert a WAVE file into MP3?



Rishi <rishi.forums@gmail.com> writes:
>
> This is the output of the 'file' command which I guess indicates the
> type of audio file format.
>
> ---------------------------------------------------------------------------
> rec02.wav:  RIFF (little-endian) data, WAVE audio, IMA ADPCM, mono 8000 Hz
> ---------------------------------------------------------------------------
>
> When I run lame to convert it into MP3 it gives this error and proceeds.
>
> ---------------------------------------------------------------------------
> Warning: corrupt or unsupported WAVE format
> Assuming raw pcm input file
> ---------------------------------------------------------------------------

It appears that "lame" doesn't support the IMA ADPCM format.

Instead of first converting to OGG and then to MP3 (which will produce
a poor quality result), you can use SoX to convert the WAVE file to a
new WAVE format that "lame" supports:

    $ file test.wav
    test.wav: RIFF (little-endian) data, WAVE audio, IMA ADPCM, mono 8000 Hz
    $ sox test.wav -s test2.wav
    $ file test2.wav
    test2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
    $ lame test2.wav test.mp3
    [ . . . ]
    $ 

-- 
Kevin Buhr <buhr+debian@asaurus.net>



Reply to: