Find the answer to your Linux question:
Results 1 to 5 of 5
When i write a cd after converting the mp3 file to a wav file the cd comes out bad. would this e a cd drive problem a cd-r problem or ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314

    when i write a music cd i get nothing but static


    When i write a cd after converting the mp3 file to a wav file the cd comes out bad. would this e a cd drive problem a cd-r problem or a software problem.
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  2. #2
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    What cd recording program are you using? Can you describe what you did in detail?
    The best things in life are free.

  3. #3
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    im using cdrecord i posted something about useing a script


    #!/bin/sh
    if [ $# -eq 0 ]; then
    exec 3<&1
    else
    exec 3<"$1"
    fi
    cmdline="cdrecord -dummy dev=0,0,0 speed=16 -v -audio"
    tempdir="$(mktemp -d /tmp/cdwriteXXXXXX)"
    trap 'rm -rf "$tempdir"' EXIT
    read numfiles <&3
    i=0
    while let i++\<numfiles; do
    cmdline="$cmdline ${tempdir}/track${i}"
    mkfifo "${tempdir}/track${i}"
    done
    i=0
    fifoname=/tmp/cdtrack1
    while let i++\<numfiles; do
    read filename <&3
    mpg123 -qs "$filename" >"${tempdir}/track${i}" 2>>mpg123.log &
    done
    $cmdline
    exec 3<&-

    this is what im using slightly modified but you get the point

    the wav files lay fine but the music cds dont come out right
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  4. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I suspect what the error is. mpg123 produces files in little-endian format, while cdrecord wants big-endian files.
    I'm sorry for making you waste CDs with that script. I only tried dummy writing when I wrote it, since I didn't want to waste a CD myself. Try piping mpg123's output through sox to switch the byte order. Ie., replace the mpg123 line with this:
    Code:
    mpg123 -qs "$filename" | sox -t .raw -r 44100 -swx -c 2 - -t .raw -r 44100 -sw -c 2 - >"$&#123;tempdir&#125;/track$&#123;i&#125;" &

  5. #5
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    Thanx it works
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •