On Tue, Mar 20, 2012 at 10:10 PM, Steve Bertrand
<steve.bertr...@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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to