Flac and/or shell problem

RW rwmaillists at googlemail.com
Mon Feb 21 01:29:50 UTC 2011


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)

I imagine it would be possible to convert to multiple mp3 files and
join those, but I'm curious as to why it fails as a shell script.




--------------------------------------------------------------------

$ ( flac -cd file1.flac ; flac -cd file2.flac ) | lame -h - both.mp3

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh
Coalson flac comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions.  Type
`flac' for details.

file1.flac: done         

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh
Coalson flac comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions.  Type
`flac' for details.

LAME 3.98.4 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), 3DNow! (ASM used), SSE, SSE2
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
Encoding <stdin> to both.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=2


More information about the freebsd-questions mailing list