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

  • submit to reddit
Batch-reencode MP3s using a terminal tool.

this installs lame (, 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