Date: Tue, 20 Mar 2012 22:30:45 -0500 From: Antonio Olivares <olivares14031@gmail.com> To: Steve Bertrand <steve.bertrand@gmail.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Convert mp3 to audio CD Message-ID: <CAJ5UdcMf%2B0cpqszS7mVOKsqbUtQSzZmKXu=gDHaaDAnOrPzG1A@mail.gmail.com> In-Reply-To: <4F694698.5080009@gmail.com> References: <4F694698.5080009@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 20, 2012 at 10:10 PM, Steve Bertrand <steve.bertrand@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcMf%2B0cpqszS7mVOKsqbUtQSzZmKXu=gDHaaDAnOrPzG1A>