From owner-freebsd-questions Sun Aug 30 11:47:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA20494 for freebsd-questions-outgoing; Sun, 30 Aug 1998 11:47:00 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from csmd2.cs.uni-magdeburg.de (prinz-atm.CS.Uni-Magdeburg.De [141.44.30.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA20489 for ; Sun, 30 Aug 1998 11:46:58 -0700 (PDT) (envelope-from jesse@prinz-atm.CS.Uni-Magdeburg.De) Received: from knecht.cs.uni-magdeburg.de (knecht [141.44.21.3]) by csmd2.cs.uni-magdeburg.de (8.8.8/8.8.8) with SMTP id UAA29851 for ; Sun, 30 Aug 1998 20:45:58 +0200 (MET DST) Received: by knecht.cs.uni-magdeburg.de (SMI-8.6/SMI-SVR4) id UAA23062; Sun, 30 Aug 1998 20:45:58 +0200 Message-ID: <19980830204558.A23015@cs.uni-magdeburg.de> Date: Sun, 30 Aug 1998 20:45:58 +0200 From: Roland Jesse To: freebsd-questions@FreeBSD.ORG Subject: Create some MP3s Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, Not so long ago, somebody asked for a way to create MP3s out of the CD-Rom drive. I did not keep the email, therefore this new thread. I just figured out a procedure that works for me. It's a combination of tosha, sox, and 8hz-mp3. I set up three little zsh commands which look as follows: # cd2raw cd2raw () { command tosha -v -t $1 -o $2$1.raw } # raw2wav raw2wav () { command sox -V -t raw -r 44100 -w -s -c 2 $1.raw -t wav $1.wav } # wav2mp3 wav2mp3 () { command 8hz-mp3 $1.wav $1.mp3 } tosha only works with SCSI CD-Rom drives, so this won't work for IDE ones. But maybe this helps someone besides me, too. BTW: On my machine 8hz-mp3 needs only about 24 minutes to encode a 4:40 min song. MPegEnc (or something similar) for Windows takes about twice that much. ;) Have fun. Roland To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message