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

Re: converting pcm raw output to wav or mp3 file

On Mon, Sep 20, 2010 at 17:13, Siju George <sgeorge.ml@gmail.com> wrote:
On Mon, Sep 20, 2010 at 5:05 PM, Kumar Appaiah
<a.kumar@alumni.iitm.ac.in> wrote:
> Dear Siju,
> On Mon, Sep 20, 2010 at 03:19:09PM +0530, Siju George wrote:
>> I followed
>> http://wiki.audacityteam.org/index.php?title=Recording_audio_playing_on_the_computer#Using_the_ALSA_PCM_file
>> and got the
>> /tmp/out.raw file
>> How do I convert it to wav or mp3?
> You would need an MP3 encoder, such as LAME. LAME is not available in
> Debian, but is available from unofficial repositories, such as Debian
> Multimedia (see http://debian-multimedia.org/ for details)

thanks i found out

$lame -r out.raw out.wav

to convert to wave and

$ffmpeg-i out.wav out.mp3

to convert to mp3

thanks :-)


To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] AANLkTim1GJNF2W5NyV3r8v6GTtL7K6jqEM+e7sMp0YKO@mail.gmail.com" target="_blank">http://lists.debian.org/[🔎] AANLkTim1GJNF2W5NyV3r8v6GTtL7K6jqEM+e7sMp0YKO@mail.gmail.com

Wave is nothing but raw PCM in littile endian (intel) format with generally 44 bytes of header which contains sample rate, number of channels, total number of samples etc.
Since it is raw PCM data, while creating either wave or mp3, you will have to specify your sample rate, number of channel and format (number of bits, little/big endian etc.)

Reply to: