Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2011 01:29:42 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Flac and/or shell problem
Message-ID:  <20110221012942.7774d06d@gumby.homeunix.com>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110221012942.7774d06d>