Re: [newbie] Re: mp3s to wav/cd burning

2005-03-20 Thread JoeHill
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 1 -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 :-)

-- 
JoeHill / RLU #282046 / www.freeyourmachine.org
19:12:09 up 27 days, 21:17, 8 users, load average: 0.06, 0.07, 0.02
+++
We cannot expect people to have respect for law and order until we teach
respect to those we have entrusted to enforce those laws. -- Hunter S. Thompson


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



Re: [newbie] Re: mp3s to wav/cd burning

2005-03-20 Thread Mikkel L. Ellertson
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 1 -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



Re: [newbie] Re: mp3s to wav/cd burning

2005-03-20 Thread JoeHill
On Sun, 20 Mar 2005 18:48:59 -0600
Mikkel L. Ellertson disseminated the following:

  # 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?

Oh, probably. You would know better than I. I copied these bits of code from the
Deadman.org site IIRC. Personally, I like my MP3 files to be renamed anyhow, for
future CLI functions. Filenames with spaces are a pain in the arse.

-- 
JoeHill / RLU #282046 / www.freeyourmachine.org
20:36:09 up 27 days, 22:41, 7 users, load average: 0.15, 0.13, 0.26
+++
We have become a Nazi monster in the eyes of the whole world - bullies and
bastards who would rather kill than live peacefully. We are whores for power and
oil with hate and fear in our hearts. -- Hunter S. Thompson 


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



[newbie] Re: mp3s to wav/cd burning

2005-03-19 Thread Björn Lundin
[EMAIL PROTECTED] wrote:

 Hi,
 
 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 1 -s $BASENAME.mp3 | sox -t raw -r 44100 -s -w -c2 -
$BASENAME.wav

# And the use is:
#
# mp32wav file.mp3



-- 
/Björn
---
http://lundin.homelinux.net
Registered Linux User No. 267342 http://counter.li.org



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