JoeHill wrote:
On Sat, 19 Mar 2005 13:15:52 +0100
Björn Lundin disseminated the following:


What do people use for making music cds from mp3s?

if you like the cli, make wavs with this script, You do need sox and mpg123.

from there burn the wavs as usual

[EMAIL PROTECTED] mp3_lisa]$ cat /home/bnl/music/tools/mp32wav
#!/bin/bash
# mp32wav
BASENAME=${1%%.mp3}
mpg123 -b 10000 -s $BASENAME.mp3 | sox -t raw -r 44100 -s -w -c2 -
$BASENAME.wav


LAME has always worked very well in this regard for me, I have these in my
.bashrc

# mp3 functions
function mp3ren() { for i in *.mp3; do mv "$i" `echo $i | tr ' '
'_'`;done; }

function mp3dec() { for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav;
done; }

First one removes spaces in the filenames and converts to LC, second converts to
WAV.

Watch the line-wrap and the back-ticks :-)


Wouldn't something like:

function mp3dec() { for i in *.mp3 ;
do lame --decode "$i" "`basename \"$i\"  .mp3`.wav" ;
done; }

handle names with spaces in them?

Mikkel
--

  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to