DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Reencoding MP3s To Lower Bitrate

02.10.2008
| 12513 views |
  • submit to reddit
        http://ubuntuforums.org/showthread.php?t=347176
Batch-reencode MP3s using a terminal tool.

this installs lame (http://lame.sourceforge.net/index.php), an MP3 enconder
sudo apt-get install lame

this reencodes all MP3s in the current folder to a bitrate of 32
for x in [ `ls -1 *.mp3` ]; do lame --preset 32 $x new32-${x}; done