LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   decoding mp3 to pcm format !! (https://www.linuxquestions.org/questions/programming-9/decoding-mp3-to-pcm-format-41884/)

Morpheus 01-17-2003 09:57 PM

decoding mp3 to pcm format !!
 
hi..
Does any one Know how to decode mp3 to pcm format???
I would like to know r ther any decoders available :confused:

thanx

Hko 01-18-2003 08:28 AM

Code:

shell$ mpg123 -s some_music.mp3 >some_music.pcm
From the mpg321 man page:
Quote:

mpg321 -- Free clone of mpg123, a command-line mp3 player

[..snip..]

-s, --stdout
Use standard output instead of an audio device for output.
Output is in 16-bit PCM, little-endian.

-w N, --wav N
Write to wav file N instead of using the audio device. This
option will be preferred if --cdr or --au are specified too.
Specifying '-' for N will cause the file to be written to
standard output.

--cdr N Write to cdr file N instead of using the audio device. Speci-
fying '-' for N will cause the file to be written to standard
output.

--au N Write to au file N instead of using the audio device. Speci-
fying '-' for N will cause the file to be written to standard
output.
See the "sox" program for some other/more conversions.


All times are GMT -5. The time now is 04:50 AM.