From owner-freebsd-questions@FreeBSD.ORG Wed Mar 21 11:16:26 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7D1FE106564A for ; Wed, 21 Mar 2012 11:16:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3E18D8FC0C for ; Wed, 21 Mar 2012 11:16:26 +0000 (UTC) Received: from r56.edvax.de (port-92-195-185-71.dynamic.qsc.de [92.195.185.71]) by mx01.qsc.de (Postfix) with ESMTP id 19D5C3CB7F; Wed, 21 Mar 2012 12:16:24 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q2LBGONE005904; Wed, 21 Mar 2012 12:16:24 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 21 Mar 2012 12:16:24 +0100 From: Polytropon To: Rod Person Message-Id: <20120321121624.d644f31e.freebsd@edvax.de> In-Reply-To: <20120321070740.000059cb@unknown> References: <4F694698.5080009@gmail.com> <20120321070740.000059cb@unknown> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: Convert mp3 to audio CD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2012 11:16:26 -0000 On Wed, 21 Mar 2012 07:07:40 -0400, Rod Person wrote: > On Tue, 20 Mar 2012 23:10:16 -0400 > Steve Bertrand wrote: > > > I know this is a backwards request, as I haven't had to go from mp3 > > to audio CD format in at least 10 years, but I do now. > > > > What is available to do so? > > > > Basically the same as other, but just using lame to convert a directory > full of mp3s > > > #!/bin/sh > > for a in * > do > OUTF=`echo "$a" | sed s/\.mp3/.wav/g` > lame --decode -q 0 "$a" "$OUTF" > done Just note that those *.wav files will have to be in the correct format (44.1 kHz two-channel 16 bit) and maybe require "byte order reversal" as well as stripping the WAV headers to record them as a music CD. It seems that some recording programs already contain this step. Refer to audio CD specifications for why pure WAV files don't make an audio CD. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...