godot's muse

mp3tools

There was a time I needed to perform various transformations on mp3 files. Perl provides, via CPAN, modules for this sort of thing, and I include some of the scripts in the hopes someone may find them useful. Chances are there are better tools out there -- buyer beware.

These scripts are free software, released under the GNU General Public License.


mp3recode

mp3recode is a perl script which will automatically re-encode mp3's which fall below a defined bitrate. You can download the latest release (v.05).

Some folks have mis-understood the purpose of this tool -- make no mistake, mp3recode does not claim to produce higher quality audio from low bitrate encoded mp3's.

mp3recode is useful if you need to re-encode a lot of mp3's to a lower bitrate for some purpose or the other (say for space conservation).

mp3recode is useful if you need to have some low bitrate mp3's encoded to a higher bitrate so that a streaming software/package doesn't stream nonsense (this was the original purpose of mp3recode-- I had a bunch of crappy encodes which shout hated; I needed shout to stop complaining, ergo mp3recode was born.)

mp3recode is useful if you simply want lame to re-encode all of your mp3's in the hopes of cleaning up weird frames or the like.

usage

mp3recode [rate-cap] [re-encode rate]

Pretty straightforward: mp3recode.pl (rate) (new-encode-rate) where rate is the bitrate you want all lower rates to be re-coded in the (new-encode-rate). If left empty, mp3recode will default to 128 in both cases.

Example:

I want to re-encode my pile of 128k mp3's to 64k.

mp3recode.pl 129 64 (notice, it's 129, as we want to snag 128's as well).

I want to re-encode everything in a specific directory encoded below 128 to 128 (helpful for those nasty shout problems):

mp3recode.pl 128


mp3munch

mp3munch is a perl script designed to ease the creation of audio cd's under linux. My desire was to make creating audio cd's as easy and console-driven as possible. It was inspired by Ryan Richter's mp3burn. You can download the latest release (v.04).

It works for me which means nothing: it may not work for you or may cause some serious side effect.

requirements

mp3munch.pl has the following requirements: perl, MP3::Info, cdrecord, mpg123 and sox.

Quick scripts

mp3time.pl is a modified version of rajak's original sizer.pl. It dumps the current playing time of all the mp3's it finds in the current directory.

mp3check.pl is a quick and dirty perl script which checks bitrates of mp3's, printing out those which fall below a given bitrate (it defaults to 128). Usage: mp3check.pl (rate). It operates on the current directory, displaying those files which have bitrates below (rate)