From owner-freebsd-questions Thu Jul 12 20:42: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from p1.cs.ohiou.edu (p1.cs.ohiou.edu [132.235.1.11]) by hub.freebsd.org (Postfix) with ESMTP id 4EADF37B401 for ; Thu, 12 Jul 2001 20:42:01 -0700 (PDT) (envelope-from frussell@p1.cs.ohiou.edu) Received: from localhost (frussell@localhost) by p1.cs.ohiou.edu (8.9.3/8.9.3) with SMTP id XAA14562 for ; Thu, 12 Jul 2001 23:42:00 -0400 (EDT) Date: Thu, 12 Jul 2001 23:41:59 -0400 (EDT) From: Russell Francis X-Sender: frussell@p1 To: freebsd-questions@freebsd.org Subject: Re: mp3 -> wav woes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 12 Jul 2001, David Scheidt wrote: > On Thu, 12 Jul 2001, Russell Francis wrote: > > :Hello, > : > :I have converted an mp3 file to a wav file using these commands > : > :mpg123 -s track01.mp3 >> track01.raw > :sox -r 44100 -w -s track01.raw track01.wav > : > :The wav file plays fine on XMMS and looks fine otherwise but when > :I try to burn it to cd with > : > :cdrecord -dummy -audio dev=0,2,0 speed=8 track01.wav > : > :cdrecord gives this error > : > :cdrecord: Inappropriate audio coding in 'track01.wav'. > : > :Does anyone know why this is, and/or how to fix it? > : > > You haven't made a .wav file that's 16bit stereo PCM 44100 samples/sec. > Is the source mp3 stereo? If it's not, you'll need to give the --stereo > option to mpg123, or force sox to do (-c 2, I think). mpg123 can write .wav > files directly, mpg123 -w track01.wav track01.mp3. (if it's not a stereo > mp3, you still need mpg123 to force to treat it as one.) Thanks for pointing me in the right direction. mpg123 -r 44100 --stereo -w track01.wav track01.mp3 did the trick. -Russ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message