
- System -
- Internet -
- Video -
- Audio -
- Pictures -
- Other -
HOW TO install Ubuntu - complete guide
List of everyday used applications (in process)

To do this we will use the same principle as we did in this tutorial with some diferences.
Open terminal (press Alt+F2 then type gnome-terminal). Go to the folder where the mp3's you want to shrink are located and type the following:
ls | xargs -I lame -b 128 ./{} ./{}.192.mp3
If you get errors you don't have the lame installed. To install it type following:
sudo apt-get install lame
The explanation of the command above is pretty simple. The ls gives us the content of folder we're in line by line. The | xargs -I sends each line of output to the following command. lame -b 128 ./{} ./{}.192.mp3 command executes for each line of output. The command itself does following:
lame -b 128 xxx.mp3 yyy.mp3
lame - name of the app
-b 128 - bitrate of the output file, possible values are 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 320 (of course no use in using bitrate larger than the original file)
xxx.mp3 - original file, the file we want to shrink (that is change its bitrate or number of bits (kilobytes) per second of file)
yyy.mp3 - output file name
That is this command creates new mp3 file with desired bitrate, smaller the bitrate smaller the new mp3. Instead of using each file name we used ./{} which will be a line from the ls output.