LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   What is the correct syntax for Lame (http://www.linuxquestions.org/questions/linux-software-2/what-is-the-correct-syntax-for-lame-471527/)

darkscot 08-07-2006 05:46 AM

What is the correct syntax for Lame
 
I am trying to use Lame to convert a WAV file to MP3. Do I need to put in any options or should the following work?

Lame /home/user/file.wav /home/user/file.mp3

jens 08-07-2006 10:41 PM

Quote:

Originally Posted by darkscot
I am trying to use Lame to convert a WAV file to MP3. Do I need to put in any options or should the following work?

Lame /home/user/file.wav /home/user/file.mp3

You don't have to type the resulting file if you don't use any options.

Code:

lame file.wav
...will ceate an mp3 version (file.wav.mp3)
But it will not give you real stereo and only a 128Kbits/sec bitrate.

For stereo and a higher bitrate(in this case you do need to type the resulting file):
Code:

lame -b 160 -m s file.wav file.mp3
(replace 160 with something like 256 if you wish so)

darkscot 08-14-2006 02:29 AM

Quote:

Originally Posted by jens
You don't have to type the resulting file if you don't use any options. lame file.wav will ceate an mp3 version (file.wav.mp3)

Thanks, I think the problem was the file name was too complicated (artist name album name track title.wav) and Lame was getting confused. changing to a simpler file name solved the problem.

Quote:

But it will not give you real stereo and only a 128Kbits/sec bitrate. For stereo and a higher bitrate(in this case you do need to type the resulting file): lame -b 160 -m s file.wav file.mp3
That is interesting to know!


All times are GMT -5. The time now is 09:57 AM.