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:

  • Google BlocklyMembaca LifeHacker seperti biasa saat sampai di kantor. Dan lagi-lagi kagum dengan Google karena ada berita mengenai Google Blockly. Tool programming baru dari Google. http://lifehacker.com/5917581/google-blockly-is-a-visu… Read More
  • Ruby on Rails Ruby on Rails merupakan salah satu framework pembuatan aplikasi web. Dari namanya kita tahu bahwa Ruby on Rails seharusnya berdasar dari bahasa Ruby. Kalau dibandingkan misalnya sama seperti CodeIgniter, Zend ataupun Cake… Read More
  • Android Programming - Fast Way Preserving Sqlite DbActually this is some snippet I found from browsing, the guy who must be credited to this code is Omar Flores, sorry I can't found your link pal :). It helping me to copy already made SQLite database to my application, it mak… Read More
  • Instalasi Ruby on Rails Rails bisa di-install di berbagai macam platform. Baik Linux, Windows maupun Macintosh. Macintosh merupakan OS favorit untuk Rails developer, didukung juga karena adanya TextMate, yang dianggap text editor paling powerfull. … Read More
  • Android Programming - Access LocalhostWhen I developed an application that connect to my own web service ( I made my own simple web service too ^-^), I got this error "java.net.ConnectException localhost/127.0.0.1:8080 - Connection Refused". Hei, why my applicati… 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 ↑