From owner-freebsd-questions@FreeBSD.ORG Wed Mar 21 03:30:46 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 DAB08106566B for ; Wed, 21 Mar 2012 03:30:46 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A311C8FC08 for ; Wed, 21 Mar 2012 03:30:46 +0000 (UTC) Received: by iahk25 with SMTP id k25so1188118iah.13 for ; Tue, 20 Mar 2012 20:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7ssQdFFt7MI5oRzZNc+5Umd1IijAy2nG8J2pRqGqHec=; b=jpTOXCU/8JMABShRoZkRzqYeI2BaQvZ3xBdv3b7gUfWIRvM+YTH17ZbX4xZ+A7UJvD ulMNKI8QQDt2m6D/RLzWNBXMagPZvHOp8Gu7oiMeLkH1nsGXPFWBSXS4Ocv/K0EVBUx6 tyf2EaiJabXkx5FRqX/+aZrTn5loZe9ZG+wZpCNb1YUb8xAn/LKfdzk9ouTZCVxEEExD L6faMnKYqCqGFQy5g6GadMUZej85DUv/Pr9q+fBT+X8wkqKzaNmIcE0f1qJBCSmg6gGD dZ4kP1ehDduZlDJnkSkwjzjjMm9S0aVnQ1klPa8Xeyq6TxveWSUYUR3L+MikPaI+hBRa soow== MIME-Version: 1.0 Received: by 10.50.46.167 with SMTP id w7mr1578764igm.73.1332300645986; Tue, 20 Mar 2012 20:30:45 -0700 (PDT) Received: by 10.50.214.3 with HTTP; Tue, 20 Mar 2012 20:30:45 -0700 (PDT) In-Reply-To: <4F694698.5080009@gmail.com> References: <4F694698.5080009@gmail.com> Date: Tue, 20 Mar 2012 22:30:45 -0500 Message-ID: From: Antonio Olivares To: Steve Bertrand Content-Type: text/plain; charset=ISO-8859-1 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2012 03:30:46 -0000 On Tue, Mar 20, 2012 at 10:10 PM, 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? > > Steve Take a look here: http://www.linuxquestions.org/questions/linux-software-2/using-mpg123-to-convert-mp3-to-wav-files-332570/ or here http://www.capuchado.com/articles/ShellMC.html One that requires mpg123: ============================= #!/bin/sh # # mp3_to_wav # # Use to convert mp3's to wav files echo "current directory =" `pwd` echo "Please enter working directory ->\c" read BASE if cd $BASE ; then { for i in *.mp3; do out=$(ls $i | sed -e 's/.mp3//g') echo "$i -> $out.wav" mpg321 -w "$out.wav" "$i" >/dev/null 2>&1 done } else { echo "ERROR!!" exit 1 } fi ============================= or one that uses mplayer: ============================= #!/bin/sh # # mp3_to_wav # echo "current directory =" `pwd` echo "Please enter working directory ->\c" read BASE if cd $BASE ; then { ########################## # # mp3towav # # you can comment mplayer line and use faad? at your own discretion for i in *.mp3; do out=$(ls $i | sed -e 's/.mp3//g') echo "In = $i" echo "Out = $out.wav" # faad -o "$out.wav" "$i" mplayer -vc null -vo null -ao pcm:fast "$i" -ao pcm:file="${out}.wav" #another option done } else { echo "ERROR!!" exit 1 } fi ============================= Then with the corresponding wav files burn to cd with cdrecord $ cdrecord -v -dao dev=X,Y, Z driveropts=burnproof -speed=? -eject -pad *.wav and you may burn to cd. Try that out, or you can have graphical tools to do it, like k3b, select the files and burn to cd. Regards, Antonio