21

I used to download a program in windows that used lame to compress audio of mp3 files and made them smaller in size but I don't know how to do this in Ubuntu.

Does anybody know anything about this?

Please remember that I have just installed ubuntu so I practically don't know anything.

1

3 Answers 3

28

Terminal way:

lame is in Universe repository. So you have to first enable universe repository.

  • See this question → How do I enable the "Universe" repository?

  • Then install lame by the below using commands in a terminal. To open a terminal press Ctrl + Alt + T.

    sudo apt-get update
    sudo apt-get install lame
    

Then navigate to the directory by using cd command to the folder you have the file to convert it. I assume your file is in Desktop directory and it's name is 001.mp3. We also assume your input file is of 128kbps and you want an output file of 32kbps. So, use these commands to compress it

cd ~/Desktop
lame -b 32  001.mp3 001-32.mp3

You can use any name for the output file other than the same name as input file which is in this case 001.mp3.

Note that, the conversion will use fixed bitrate as opposed to variable or average bitrate.

See the lame manual page for more help.

Graphical way:

If you prefer graphical tools to do this, I suggest you a small and simple tool to do so. It is soundconverter.

  1. Install it with this link → soundconverter Install soundconverter or using this command in terminal

    sudo apt-get install soundconverter
    
  2. Open it by searching in Dash with term "soundconverter". To bring Dash, Press Super key which is also known as Windows key.

  3. When it opened, Press the **Add File* button in it's toolbar, and select the file you want to convert.

  4. Then go to EditPreference from menu. In Type of result select mp3 and select a quality.

    • Very low = 64 kbps
    • Low = 96 kbps
    • Normal = 128 kbps
    • High = 192 kbps
    • Very high = 256 kbps.

    I think, you should select "Very low" or "Low" depending on your needs. Then click close.

  5. Click Convert button in toolbar to convert it.

That's it. Your file will be converted and stored in the same directory as the input file. You can also change the directory for output folder in Preference Window.

3
  • @Juancho I updated my answer. See whether it was causing problem.
    – Anwar
    Sep 7, 2012 at 12:06
  • Thank You Very Much...Working fine
    – balaji
    Jul 24, 2020 at 1:51
  • I am using lame and it works; but I wonder whether it is posssible to really shrink the file size even more. For example, I have a cat meow .mp3 here - for 8 seconds it is 32kb in size. That seems so long for something that is basically simple ... there is a bit of noise in the audio sample too. I'd love to read tips how to reduce the file size even more. Text compresses so much nicer IMO and you can find so much more guides on the www for this too...
    – shevy
    Feb 7, 2021 at 16:24
4

If you need a tool with a graphical user interface, then you can use Soundconverter. You can open the software-center and search for it or you install it manually via terminal.

sudo apt-get install soundconverter

Download / Install for Ubuntu

Soundconverter

2

Use this:

lame -b [bitrate] input.mp3 output.mp3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .