Saturday, May 23, 2009

Compress Mp3 in Ubuntu

It is just simple bash script that can run in linux to compress a mp3 file to larger or smaller bitrate.
In windows I ussually use DBPowerAmp to compress a mp3 file format but I can't find similar program ini Linux (ubuntu) so I search in internet and found this script. It just need Lame installed on your system, do not need installation, just run this script in the folder where you saved your mp3 files.
It is as simple as :
mkdir ./compressed
for file in *.mp3; do lame --mp3input -b 32 "$file" "./compressed/$file"; done
Just copy this code and use your favourite text editor to paste in it and save in .sh extension.
To run this script you just need to copy this cript into folder where you save your mp3 and run from command line. it is very easy and fast.


GBU

Categories: , ,

Related Posts:

  • Setting VGA SIS di Ubuntu 11.04 (lagi)Sebelumnya saya sudah membuat artikel mengenai setting VGA SiS ini di UBuntu 11.04. Tapi saat itu saya memakai instalasi Wubi dari Windows, sekarang setelah saya install secara Native ternyata trik itu tidak berfungsi lagi un… Read More
  • Error Waktu Install OfficeSudah sekitar 4 tahun saya jadi Linux User. Keahlian sih gitu-gitu saja. Tapi lumayanlah untuk troubleshoting dan dalam penggunaan sehari-hari, bahkan yang lebih advance juga dah lumayanlah. Berkat pengalaman sekian lama mang… Read More
  • Setting VGA SIS di UbuntuKemarin waktu install ubuntu di laptop Axioo saya, salah satu masalah yang saya temui adalah mengenai resolusi layar (lihat di posting blog sebelumnya). Selesai install resolusi yang didapat cuma 800x600 pixel. Parah banget t… Read More
  • Otak-atik Ubuntu 11.04Berawal dari setting VGA SiS itu, saya jadi terarik otak-atik si Ubuntu, sesuai dengan niatan juga untuk pindah framework pemrograman Eclipse saya ke Ubuntu, biar lebih terasa lagi opensourcenya.Karena tujuan awal memindahkan… Read More
  • My Gadget ListMau update koleksi gadget ahh. Sekarang saya memakai beberapa gadget : Laptop Axioo Neon Series (ga tau seri-nya), modem SMART moding PCMCIA to USB, Harddisk external Hitachi 320GB, Blackberry Curve 8310, Dopod 818pro, dan C… Read More

2 komentar:

DBees said...

i am newbie in linux ubuntu 9.10, i've tried your instruction, but it didn't work, and there was notice as below:
bash: syntax error near unexpected token `do'

Johannes Dwi Cahyo Kristanto said...

Hi Ruhyat..i'm sorry for late response..
I think the problem is you do not have lame installed n your Ubuntu
Just install lame witn command from terminal..
Thx

Copyright © 2025 Johannes Dwi Cahyo | Powered by Blogger

Design by Anders Noren | Blogger Theme by NewBloggerThemes.com | BTheme.net      Up ↑