From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 17:14:58 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2C1937B401 for ; Tue, 1 Apr 2003 17:14:58 -0800 (PST) Received: from thalia.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DE2043F75 for ; Tue, 1 Apr 2003 17:14:55 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr364-a25.otenet.gr [195.167.109.57]) by thalia.otenet.gr (8.12.9/8.12.9) with ESMTP id h321EoDJ012453; Wed, 2 Apr 2003 04:14:53 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.8/8.12.8) with ESMTP id h321EmON076087; Wed, 2 Apr 2003 04:14:48 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.8/8.12.8/Submit) id h321EfNS076086; Wed, 2 Apr 2003 04:14:41 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 2 Apr 2003 04:14:41 +0300 From: Giorgos Keramidas To: "D. Theunissen" Message-ID: <20030402011441.GC73767@gothmog.gr> References: <001401c2f886$5acaa010$4500a8c0@saturnus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001401c2f886$5acaa010$4500a8c0@saturnus> cc: freebsd-questions@freebsd.org Subject: Re: Howto grab/encode an audio cd? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 01:14:59 -0000 On 2003-04-01 21:39, "D. Theunissen" wrote: > > I've searched for some docs to grab a cd and convert it to mp3 (like > with cdex for windows) but it seems that there is no such program > written for freebsd (correct me if I'm wrong). The only thing I can > find is to grab it manual, with cdda2wav and lame. There is actually a section in the Handbook about this. You can use the instructions at the following two sections: http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/sound-mp3.html http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html > Has anyone got any id how to automize this? > Is there a program that fixes it for me? Yes, there are ways to automate this. I personally prefer writing my own shell scripts to do it. Something along the lines of: base="cdrom-$(date '+%Y-%m-%d-%H%M')" mkdir "${base}" && cd "${base}" || exit 1 dagrab -v -d /dev/acd0c -f '%02d.wav' -o 4 -m 0640 16 && \ bladeenc -del -br 192 -crc -private *.wav && exit 0 /bin/rm -fr *.wav exit 1 - Giorgos