Jump to content

.wav to .mp3 using lame


Recommended Posts

Like the title says. Here's what I try:

 

lame rec01.wav rec01.mp3

 

Seems pretty simple to me. I can do it in audacity, but when I try to lame it from the command line I get a file with nothing but hideous screeching static. :o

 

Any idea what I'm doing wrong?

 

Thanks!

Sam

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Yes, I've been through the man page. Bitrate looks optional.

 

I did try adding a few different options, like

lame -h rec.wav rec.mp3

 

and now get an error that says

Warning: corrupt or unsupported WAVE format

Assuming raw pcm input file

 

I can play the .wav file though.

 

Follow-up: I just did an experiment creating a .wav with text2wave and converting it with lame (no options), and it worked. Apparently some .wav files work, and some don't.

Edited by javaguy
Link to comment
Share on other sites

This will not improve the sound quality of some of the .wav files that you are having problems with, however I believe you will like how easy it is to use.

urpmi audiokonverter

Then you simply right-click on the .wav > actions > convert to

Link to comment
Share on other sites

I'm not having problems with the .wav files per se. They sound great. I'm having trouble converting them.

 

Right-clicking and selecting action-convert did give me an mp3 file, but it too is just screeching static. Is there something about this particular .wav file (I recorded it using a standalone mp3 player, btw) that makes it hard to convert?

 

edit: I uploaded one to http://media-convert.com/, and whatever they use was able to convert it to a good mp3. That's kinda a hassle though.

Edited by javaguy
Link to comment
Share on other sites

Are your wav files regular 44.1Khz/16bit ones?

Also - WMP11 (yeah... that great windoze application...) rips/converts to proprietary wav files which use tags in nonstandard wav headers- while a pure wav is raw pcm, as Lame wisely (?) assumed above.

Are you sure your wav's arent of the tagged kind?

Edited by scarecrow
Link to comment
Share on other sites

00000000 52 49 46 46 00 DA 01 00 57 41 56 45 66 6D 74 20 RIFF....WAVEfmt

00000010 14 00 00 00 11 00 01 00 40 1F 00 00 A0 0F 00 00 ........@.......

00000020 00 02 04 00 02 00 F9 03 66 61 63 74 04 00 00 00 ........fact....

00000030 DB BA 09 00 4C 49 53 54 BC 01 00 00 49 4E 46 4F ....LIST....INFO

00000040 49 53 46 54 0A 00 00 00 41 43 54 49 4F 4E 53 00 ISFT....ACTIONS.

00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

Link to comment
Share on other sites

  • 2 weeks later...

lame rec01.wav rec01.mp3

 

Correctly. I tested and Audacity load this file. Sound is crystality.

 

Recomended

lame -V2 rec01.wav rec01.mp3

....Lex

Edited by Lexicon
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...