Gentoo Archives: gentoo-user

From: Jorge Peixoto de Morais Neto <please.no.spam.here@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] FLAC to mp3 converters?
Date: Wed, 05 Nov 2008 17:12:48
Message-Id: 38af3d670811050912u27d19e36t909ceb2724961de3@mail.gmail.com
In Reply to: [gentoo-user] FLAC to mp3 converters? by Mark Knecht
1 On Tue, Nov 4, 2008 at 4:04 PM, Mark Knecht <markknecht@×××××.com> wrote:
2 > Hi,
3 > I'm wondering if anyone has a good way to convert a large hierarcy
4 > of directories populated with FLAC files to a new set of directories
5 > using mp3 instead? The FLAC directory contains something like 20000
6 > files so I need the converted structure to replicate the original.
7 > Most likely the tool has to be very tolerant of file naming, unicode,
8 > etc., as there are likely to be any number of strange things in there.
9 >
10 > Possibly something in perl or, for the likes of me, even something GUI based.
11
12 I wouldn't trust something GUI-based; it would probably call the mp3
13 encoder with suboptimal default settings. I would write a script
14 myself. For flac decoding use (of course) media-libs/flac; for mp3
15 encoding, media-sound/lame. You can probably chain them in a pipe,
16 using flac -dc infile.flac | mp3lame <lameopts> - outfile.mp3 . Read
17 lame's man page and write a shell (or perhaps python/perl) script.

Replies

Subject Author
Re: [gentoo-user] FLAC to mp3 converters? Neil Bothwick <neil@××××××××××.uk>