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

Re: problem converting and writing mp3 to CD



at a wild guess your cd writer is faster than your mp3 conversion.

in any event running 2 CPU heavy events, and one of them time critical (if
the cd writer buffer empties you blow the burn) is not smart.

At 01:05 AM 12/16/02 +0100, Benedict Verheyen wrote:
>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
>
>
>
>
>-- 
>To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>



Reply to: