Audio conversion

Geoff Shang Geoff at quitelikely.com
Tue Sep 4 09:09:18 UTC 2007


Jan and Bertil Smark Nilsson wrote:

> Does anybody know a good conversion program to convert from flac to mp3? 
> Preferably console based.

Unfortunately the LAME encoder doesn't read FLAC files natively, though 
there's probably a good argument for such support.  But you could do the 
following:

flac -dc <flacfile> |lame <lameopts> - <mp3file>

This assumes you have lame and flac installed.

The -d for flac tells flac to decode, and the -c tells it to write to 
standard output.

Lame can be run with no options, and will default to 128kbps stereo or 
equivalent.  If you care about quality, you'll probably want to at least up 
the bitrate (e.g. lame -b 192).

Hope this helps,
Geoff.




More information about the Blinux-list mailing list