Categories:


- System -

- Internet -

- Video -

- Audio -

- Pictures -

- Other -


HOW TO install Ubuntu - complete guide

List of everyday used applications (in process)








HOW TO shrink your mp3 files (i use this when transfering music to my cell phone)



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.




You can leave a comment at the homepage.



SEARCH



  • Ubuntu official

  • Ubuntuguide, helps you start using Ubuntu

  • Order latest Ubuntu cd at your doorstep, for FREE


  • If you have problems installing programs with 'apt-get' or 'aptitude' be sure you have enabled universe repositories.
    Click here to see how to enable them.