Results 1 to 5 of 5

Thread: How to convert a directory of .wav to .mp3?

  1. #1

    How to convert a directory of .wav to .mp3?

    Hey all,

    After searching for hours I decided to post here in hope of finding a solution. I am trying to convert a directory of .wav files to .mp3 using lame. I can easily convert them file by file using the command below:

    lame -h -b 192 whatever.wav whatever.mp3

    This gets tiresome considering I have a large amount of wavs that I need to convert. I have researched on google for a script without any luck. I have also read the lame --help section.

    What is the best way possible to achieve this without using a frontend. Have I over looked a command? or missed the magical url to the correct script to do this?

    I appreciate any help I can get with this. Thanks

  2. #2
    Guest

    Re:How to convert a directory of .wav to .mp3?

    i suppose you could do lame -h or man lame to find out what sort of options for mass converting it can do. youcould likely do something like:

    lame -h -b 192 *.wav

    but i don't know if lame will automatically name each file and append the .mp3. you could potentially end out with one huge mp3

    i would definitely look through lame's manpage to see what sort of mass converting options they have. (i know oggenc can do mass coverting)

  3. #3

    Re:How to convert a directory of .wav to .mp3?

    Hey Sarah,

    Thanks for replying. I tried lame -h -b 192 *.wav earlier. When using that command it did not detect any of the wavs in the directory. Earlier when viewing help/man pages it did not have any options for mass converting. Looks like I may be trying oggenc.

  4. #4

    Re:How to convert a directory of .wav to .mp3?

    The solution was mlame. Just wanted to let you all know.

  5. #5

    Re:How to convert a directory of .wav to .mp3?

    [quote author=slackware link=board=2;threadid=6502;start=0#61274 date=1046803691]
    The solution was mlame. Just wanted to let you all know.
    [/quote]

    another way of doing it would be a loop:

    Code:
    for i in *.wav; do
    lame -arguments $i
    done
    in this case mlame is a better choice, but this is just useful to know for other commands

Similar Threads

  1. Active Directory LDAP Compliance
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 02:34 AM
  2. Reinstall Dial-Up Networking and TCP/IP
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 01:07 AM
  3. no modem in Redhat Linux 8??
    By in forum Linux - General Topics
    Replies: 172
    Last Post: 09-14-2003, 04:20 PM
  4. Help with Modem/Weird Request...
    By McBane in forum Suse
    Replies: 22
    Last Post: 12-31-2002, 01:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •