Flac and/or shell problem

Herbert J. Skuhra hskuhra at fastmail.fm
Mon Feb 21 13:26:00 UTC 2011


On Mon, 21 Feb 2011 01:29 +0000, "RW" <rwmaillists at googlemail.com> wrote:
> 
> I found a recipe for converting flac to mp3:
> 
>   flac -cd in.flac  | lame -h - out.mp3
> 
> and I thought I might be able to able to combine multiple flac files
> into a single mp3 file with something like the following: 
> 
> ( flac -cd file1.flac ; flac -cd file2.flac ) | lame -h - both.mp3
> 
> but in practice only the first flac command is executed (see below)

The following command does what you want:

% flac123 --wav=- -q *.flac | lame -h - out.mp3

HTH
Herbert



More information about the freebsd-questions mailing list