I have a large collection of MP3s (of course they're all legal. . .) and
a portable player with limited capacity (a Compaq iPAQ PM-1).
I want the best of all worlds:
high-quality audio files (192 kbps) on my hard drive for playing at home and
archiving,
Maximum play time on my portable.
The iPAQ PM-1 works with those mini-CD-R/RW disks that hold about 180
meg. That's not a whole lot of play time at 192kbps. . . so I
decided to write this.
It takes a directory tree of MP3s and resamples them to a lower bitrate
recursively, copying them into a new directory tree. Transfer these
smaller mp3 files to your portable player and you're golden.
It requires MP3::Info and Getopt::Long,
as well as the "lame" MP3 encoder (make sure you own a license to encode MP3
files). It's pretty *nix specific as well, though some kind soul could probably
make it more platform agnostic.
Usage Info:
resample.pl: Recursively resamples directories of MP3s.
Requires the "lame" MP3 encoder somewhere in $PATH, and the perl module
MP3::Info as well as the standard Getopt::Long, File::Find, and File::Copy.
Usage:
./resample.pl --bitrate 96
bitrate The bitrate to resample down to, default is 96.
Source The directory to start from. Must end with a trailing slash.
Destination The destination directory. Must end with a trailing slash.