Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
I have a 198MB wave file that Im trying to convert to an mp3 file using lame. This is what happens when I try the following commands: Lame h v ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User zba78's Avatar
    Join Date
    Feb 2004
    Location
    Birmingham, England
    Posts
    335

    Lame help


    I have a 198MB wave file that Im trying to convert to an mp3 file using lame. This is what happens when I try the following commands:

    Lame h v 01.wav 01.mp3
    The system hard freezes at about 35% - 40%

    Lame h 01.wav 01.mp3
    The system hard freezes at about 65% - 70%

    Lame 01.wav 01.mp3
    The system hard freezes at about 80% - 95%

    So then I split the wave file into to 99MB files and did:

    Lame h 01a.wav 01a.mp3
    Lame h 01b.wav 01b.mp3

    And this worked fine. Which leads me to one of 2 conclusions.

    1 either lame cannot handle very large files
    2 lame on my system cannot handle very large files.

    I have enough hard-disk space free (about 7GB) and have 512 physical RAM + 1GB swap.

    BTW booted up to runlevel 3 and tried the same thing but got the same result.

    Any advice please?
    Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi

  2. #2
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Download audacity, load the wav and export as mp3.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  3. #3
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    or you could encode it to ogg-vorbis....
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  4. #4
    Linux User zba78's Avatar
    Join Date
    Feb 2004
    Location
    Birmingham, England
    Posts
    335
    Thanks for the advice.

    Sadly Audacity does the same thing, the system hard-freezes part way through the exportation process. I've adjusted the Bitrate down to 64 but that just makes it hard-freeze slighty later on (about 6 seconds left).

    I really can't fathom this one...the one thing that does work is if I do

    lame -f file.wav file.mp3
    but the quality is greatly reduced. I guess the only thing to do is split the wav file into smaller chunks and convert each one individually.

    BTW. what exactly is ogg vorbis? an audio format? and what program would convert a wave file to ogg vorbis? and will programs like xmms, xine play ogg vorbis? will ogg vorbis files play in windows?
    Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi

  5. #5
    Linux Engineer kriss's Avatar
    Join Date
    Jun 2003
    Posts
    1,113
    Ogg Vorbis is a new audio compression format. It is roughly comparable to other formats used to store and play digital music, such as MP3, VQF, AAC, and other digital audio formats. It is different from these other formats because it is completely free, open, and unpatented.

    From the vobis FAQ.

    You can encode a wav file to a vorbis file with the application "oggenc".

    And yes, nearly all somewhat new players support ogg vorbis like mplayer, xine, xmms, winamp etc etc

    It also produces better sound quality pr. kb than what mp3 does.

    Kriss

  6. #6
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Ogg Vorbis is excellent.

    Audacity will also export as ogg.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  7. #7
    Linux User zba78's Avatar
    Join Date
    Feb 2004
    Location
    Birmingham, England
    Posts
    335
    Thanks all. Ive downloaded vorbis-tools, libao, libogg, libvorbis. When I get home ill try to install them all (the RPMs).

    Is it best to use oggenc to encode my wave files to ogg or will audacity have an option in the menu to export to ogg? What commands would I use with oggenc?
    Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi

  8. #8
    Linux Engineer
    Join Date
    Dec 2002
    Location
    New Zealand
    Posts
    766
    audacity does support export to ogg.

    when u say ur system freezes, are u sure its not just using swapfile, which woudl seem incredibly slow compared to ram and may well make ur system respond very slowly, but if this is the cause then it will eventually unfreeze

  9. #9
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    If you don't have oggenc then audacity will ask you where it is if you try and export as ogg.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  10. #10
    Linux User zba78's Avatar
    Join Date
    Feb 2004
    Location
    Birmingham, England
    Posts
    335
    Quote Originally Posted by Hellmasker
    audacity does support export to ogg.

    when u say ur system freezes, are u sure its not just using swapfile, which woudl seem incredibly slow compared to ram and may well make ur system respond very slowly, but if this is the cause then it will eventually unfreeze
    Well according to KSim there is available RAM free, but CPU usage is constantly 99%-100% which is where I think the problem lies. Im gonna give OGG a try and hope it helps. I must say, Audacity is a really great piece of kit
    Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi

Page 1 of 2 1 2 LastLast

Posting Permissions

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