Pat Farrell wrote:
On Thu, 2005-06-16 at 13:34 -0700, Aylwin wrote:

I've started ripping my CD collection to FLAC using EAC.  At some point
I'd like to batch convert some of the FLACs to MP3.  What's the best
way to go about this?


With a Perl program. I've got one you can start with
on my Slim software page
http://www.pfarrell.com/music/slimserver/slimsoftware.html

Look for the text:
a new, low functionality utlity in Perl to convert flac files to mp3,
called flac2mp3.pl

Aha! I too have a utility named flac2mp3.pl which, surprisingly enough, converts flac files to mp3 format.

I wrote it for exactly the same situation - I store all my music in flac format and needed to convert it to mp3 for my iPod.

My goal was to write something that I could just point at a directory tree full of flac files and have it mirrored into a corresponding directory structure full of mp3 files. I also only want to convert those files that need converting, i.e. newly-added files. Finally, I didn't want to have to re-transcode a file if only the tags have changed, so I added a tags-only mode.

One of these days I'll get round to writing some documentation, but at least it's got usage instructions now:

# flac2mp3
Usage: flac2mp3 [--quiet] [--debug] [--tagsonly] [--force] <flacdir> <mp3dir>
    --quiet         Disable informational output to stdout
    --debug         Enable debugging output. For developers only!
    --tagsonly      Don't do any transcoding - just update tags
    --force         Force transcoding and tag update even if not required

To use the script, you'll need the following:

flac
lame
Perl
Perl modules:
 - Audio::FLAC::Header
 - MP3::Tag

Caveat: I've only tested it on Linux (Fedora Core 3), but it should work OK on Windows if you can get Audio::FLAC::Header installed.

flac2mp3 is currently available here:

http://robinbowes.com/filemgmt/viewcat.php?cid=4

R.
--
http://robinbowes.com

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/ripping

Reply via email to