From owner-freebsd-multimedia@FreeBSD.ORG Mon May 24 12:22:19 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA6FF16A4CE for ; Mon, 24 May 2004 12:22:19 -0700 (PDT) Received: from web41204.mail.yahoo.com (web41204.mail.yahoo.com [66.218.93.37]) by mx1.FreeBSD.org (Postfix) with SMTP id 96C7343D55 for ; Mon, 24 May 2004 12:22:19 -0700 (PDT) (envelope-from arne_woerner@yahoo.com) Message-ID: <20040524192204.9892.qmail@web41204.mail.yahoo.com> Received: from [83.129.163.209] by web41204.mail.yahoo.com via HTTP; Mon, 24 May 2004 12:22:04 PDT Date: Mon, 24 May 2004 12:22:04 -0700 (PDT) From: Arne "Wörner" To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Sound help for compleat novice X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 19:22:19 -0000 > The sound works just fine when playing CDs or MP3 files, but how does one > record? Not knowing any better, I plugged the audio source into the > mic input, and just did a "cat /dev/audio". > > What I seemed to end up with was a raw .AU file, which few programs can > recognise (I tried SoX and Audacity). If I copy it back to /dev/audio, I > hear the original, but I have a feeling that I'm missing something. > > So, is there a "better" way? I'd be looking to produce MP3 or WAV. > I like esound's esdrec (after a `mixer =rec cd` or so). Then I pipe the output into vorbis-tools's oggenc: rtprio 10 /usr/local/bin/esdrec -r 44100 | rtprio 11 ./rdau | \ rtprio 30 /usr/local/bin/oggenc -R 44100 --resample 16000 \ -M 20 -C 2 -q -1 -Q - > au.ogg & (I developed rdau, which tracks and corrects the bytes per second, because it felt like esdrec produces slightly more or less than 44100 samples per second if you look at it over several hour (e. g. when one records tv movies)). vorbis-tools's ogg format is quite space-efficient (just like mp3), I think. The package "nas" should be able to convert raw audio data to wav audio data. -Arne __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/