Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2000 10:32:33 -0600 (MDT)
From:      Steve Jorgensen <steve@khoral.com>
To:        Walter Brameld <brameld@twave.net>
Cc:        Tobias Roth <roth@iamexwi.unibe.ch>, freebsd-questions@FreeBSD.ORG
Subject:   Re: MP3 to WAV
Message-ID:  <200005011632.KAA16124@benson>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005011632.KAA16124>