16

I'm using Ubuntu 12.04 (mostly Unity 2D) and I want to use lame in the terminal. I had been using it as an mp3 amplifier, but I forgot the command, all I remember is:

lame scale-<scale you want to increase> <infile> <outfile>

But it shows:

lame: excess arg Because.mp3 out

Because.mp3 is the filename.

Can anyone tell me the command for it?

karel
  • 122,695
  • 134
  • 305
  • 337
Jatttt
  • 2,377

2 Answers2

21

You have to use:

lame --scale <scale you want to increase> <infile> <outfile>

So that would be in your example:

lame --scale 3 Because.mp3 Because_loud.mp3
Requist
  • 2,439
  • well it says Could not find "Because.mp3". Can't init infile 'Because.mp3

    the file is in /home/cheenu/beeatles/love

    – Jatttt Feb 20 '14 at 17:09
  • then you either have to go to that dir (cd /home/cheenu/beeatles/love) before executing the command or add this to the filenames. lame --scale 3 /home/cheenu/beeatles/love/Because.mp3 /path/to/output/Because_load.mp3 (tab will help you complete the path/filenames) – Requist Feb 20 '14 at 17:16
3

You should properly escape filenames if they contain spaces, either surrounding them with double quotes or by using the "\" escape character.

lame --scale 3 "Because you should escape.mp3" out.mp3
lame --scale 3 Because\ you\ should\ escape.mp3 out.mp3

If you do not escape, bash will pass to lame just Because as its input file, and lame will exit with an error.

mythsmith
  • 151
  • 4