[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problem converting and writing mp3 to CD



Hi,

i found a script to convert mp3 files and write them to disk:
#!/bin/sh
for I in *.mp3
do
   mpg123 --cdr - "$I" | cdrecord -audio -pad -nofix -
done
cdrecord -fix

This resulted in a corrupt cd.
Converting them first to wav files did succeed however:
#!/bin/bash
# change spaces by underscores
for I in *.mp3;
  do mv "$I" `echo $I | tr ' ' '_'`;
done

# convert from mp3 to wav
for I in *.mp3;
  do mpg123 -w `basename $I .mp3`.wav $I;
done

# write to cd
cdrecord dev=0,0,0 -eject -pad -audio *.wav

# del wav files
rm *.wav

How come the first method doesn't work or was i just 
a one time event?

Thanks





Reply to: