From owner-freebsd-questions Mon May 1 9:32:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from charon.khoral.com (charon.khoral.com [209.75.155.97]) by hub.freebsd.org (Postfix) with SMTP id 7DB4037B80C for ; Mon, 1 May 2000 09:32:46 -0700 (PDT) (envelope-from steve@khoral.com) Received: from zen.alb.khoral.com by charon.khoral.com via smtpd (for hub.FreeBSD.ORG [204.216.27.18]) with SMTP; 1 May 2000 16:32:46 UT Received: from benson (benson.alb.khoral.com [10.1.2.11]) by zen.alb.khoral.com (8.9.3/8.9.3) with ESMTP id KAA09940; Mon, 1 May 2000 10:32:40 -0600 (MDT) From: Steve Jorgensen Date: Mon, 1 May 2000 10:32:33 -0600 (MDT) Message-Id: <200005011632.KAA16124@benson> To: Walter Brameld Cc: Tobias Roth , freebsd-questions@FreeBSD.ORG Subject: Re: MP3 to WAV MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="DFAC5B7653C826E54F75476BC93D7C2B"; Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --DFAC5B7653C826E54F75476BC93D7C2B Content-Type: text/plain; name="Message Text" Content-Transfer-Encoding: 7bit > On Sun, 30 Apr 2000, in a never-ending search for enlightenment, Tobias Roth wrote: > > > Does anyone know of a utility for converting mp3 files to wav files? I > > > checked through the ports and did not find one. > > > > mpg123 can do that, or at least it should be able to convert the mp3 to > > some uncompressed format which you should then convert to wave with sox. > > > > cheers, Tobe > Maybe I'm punting in the wrong direction. What I'd like to do is > convert mp3 files to a format that can be burned on a cd for playing on > standard audio cd players. Will this work with wav files, or should I > be shooting for something else? > Thanks again. cdrecord will convert wave files to CD-R audio tracks, as will all Windows cd burning software I've seen.. I've attached an sh script I use when I want to convert some of my mp3's to make a compilation CD-R for my car CD player. It requires mpg123 and sox to do the conversion. Hope it helps. Steve ----------------------------------------------------------- Steven Jorgensen steve@khoral.com steve@spukhaus.com ------------------------------+---------------------------- Khoral Research Inc. | PHONE: (505) 837-6500 6200 Uptown Blvd, Suite 200 | FAX: (505) 881-3842 Albuquerque, NM 87110 | URL: http://www.khoral.com/ ----------------------------------------------------------- --DFAC5B7653C826E54F75476BC93D7C2B Content-Type: text/plain; name="mp32wav" Content-Transfer-Encoding: 7bit #!/bin/sh while [ x"$1" != x ]; do if [ -r "$1" ]; then t=`echo "$1" | sed -e 's/\(.*\)\.mp3/\1/'` mpg123 -s "$1" | sox -t raw -s -r 44100 -w -c 2 - "$t.wav" else echo "$1 does not exist, or is unreadable, skipping.." fi shift done --DFAC5B7653C826E54F75476BC93D7C2B-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message