From owner-freebsd-questions@FreeBSD.ORG Mon Feb 21 01:29:50 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3BCE106566B for ; Mon, 21 Feb 2011 01:29:49 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 85E438FC0A for ; Mon, 21 Feb 2011 01:29:49 +0000 (UTC) Received: by wyb32 with SMTP id 32so1353216wyb.13 for ; Sun, 20 Feb 2011 17:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:x-mailer :mime-version:content-type:content-transfer-encoding; bh=/uIzMVuppw+ghbW42Ra1Ih884YzHvaOG+nZRz2wH4hE=; b=iyut81EXeciqtjOftI9dZUz8XV2o+kXa7tN1PUeddjOmK2vzoiDMduOrOQSNldQ5IX iKvdppgfuSKKlLb94VU+Dm04t5NU5X2m5FTw5n7Tn4g/mNDDEkh/XQ8Hie3AmLAJD28D PIWjBOx5WQQ5tKJq3NlWv4tNPyx3h7KBHQY7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=TbIeoCGQFghvY9ISfHxsTQNIzsZLYSS7G/QwVErpbTq0gT/kk6pA19AYqCgrgh0JCc kpGsvXMy+APFJ+Zv0ZJLiVrvZ7IFn/WjGpCuSRKXaeo5Kr7xjaILCXtosJnbxYz3br8v HgHSMNQHhm22dXf2qsLTkIVTSx/jDR34wvfWo= Received: by 10.227.195.137 with SMTP id ec9mr641371wbb.218.1298251786786; Sun, 20 Feb 2011 17:29:46 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk [87.194.105.247]) by mx.google.com with ESMTPS id f27sm1899020wbf.1.2011.02.20.17.29.45 (version=SSLv3 cipher=OTHER); Sun, 20 Feb 2011 17:29:46 -0800 (PST) Date: Mon, 21 Feb 2011 01:29:42 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20110221012942.7774d06d@gumby.homeunix.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Flac and/or shell problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 01:29:50 -0000 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 to both.mp3 Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=2