From owner-freebsd-multimedia Wed Mar 27 18:40:28 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 3479637B41D for ; Wed, 27 Mar 2002 18:40:19 -0800 (PST) Received: from localhost.lakwod3.co.home.com ([12.253.150.137]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20020328024018.VCLL2626.rwcrmhc51.attbi.com@localhost.lakwod3.co.home.com>; Thu, 28 Mar 2002 02:40:18 +0000 In-reply-to: <3C9897B6.5440650A@fadesa.es>; from freebsd@fadesa.es on Wed, Mar 20, 2002 at 02:07:50PM +0000 Content-transfer-encoding: 8bit References: <20020315074048.A12682@hostwiththemost> <3C921767.F8DE91F5@fadesa.es> <20020317125611.A74777@hostwiththemost> <3C9897B6.5440650A@fadesa.es> To: =?iso-8859-1?Q?Jos=E9_M=2E_Fandi=F1o?= Cc: freebsd-multimedia@freebsd.org Content-type: text/plain; charset=iso-8859-1 Subject: Re: Some audio capture questions From: Sean LeBlanc X-mda: Mail::Internet Mail::Sendmail Sendmail +mmhack 1.1 on Linux User-agent: Mutt/1.2.5i Mime-version: 1.0 Content-disposition: inline Date: Wed, 27 Mar 2002 19:43:59 -0700 Message-id: <20020327194359.A33743@hostwiththemost> Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 03-20 14:07, José M. Fandiño wrote: > Sean LeBlanc wrote: > > > > Hi, I saw some questions about audio recording earlier. I have some > > > > questions of my own. I am basement DJ, and I'd like to capture my sessions > > > > to something like MP3 or Ogg via my soundcard. I currently have a Aureal > > > > Vortex 8830 (that's what dmesg says, anyway). Will this hardware work? > > > > Also, do any tools exist to do on-the-fly capture and encoding to MP3 or > > > > Ogg? > > > > > > sox + lame > > > > Do you have any examples of how to use these two to capture from audio card > > to Ogg/MP3? > > yes, I'm using an AC97 soundcard. First check the record input and level > (just use aumix, umix, kmix for this) and then I use this command line: > > sox -V -t ossdsp -c 2 -r 44100 -t wav - | lame -abr 192 -b 160 -m s -q 2 - sample.mp3 > (of course, you must select your quality preferences for mp3 encoding.) > > and for funny real-time effects you can use: > > sox -V -t ossdsp -c 2 -r 44100 -t ossdsp -c 2 -r 44100 echos 0.8 0.7 40.0 0.25 63.0 0.3 > > in the soxexam(1) manpage there are more curious examples ;) Okay, I've been struggling with just the sox end for a bit now. I've tried encoding to WAV, I've tried compiling in Ogg support, and encoding to that, I've tried playing around with the options a bit, but I still get what sounds like what can best be described as a quick fast-forward every few seconds, or that the record I'm playing is skipping (it's not). Here is the commandline that I've tried most recently: bash-2.05$ sox -V -t ossdsp -c 2 -r 44100 /dev/audio -t ogg sample.ogg sox: Input file /dev/audio: using sample rate 44100 size bytes, encoding unsigned, 2 channels sox: Input file /dev/audio: comment "/dev/audio" Channels: 2 Rate: 44100 sox: Output file sample.ogg: using sample rate 44100 size bytes, encoding unsigned, 2 channels sox: Output file: comment "/dev/audio" I've tried leaving out the "-r 44100" bit, I've tried /dev/dsp instead of /dev/audio, all with similar results when I play the resulting file. Could it be my sound card? I think my CPU/RAM should be enough (PIII 700MHz w/ 128M of RAM). Could my soundcard be the problem? TIA, -- Sean LeBlanc:seanleblanc@attbi.com Yahoo:seanleblancathome ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome Good communications is as stimulating as black coffee and just as hard to sleep after. -Anne Morrow Lindbergh, "Gift From The Sea" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message