Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 19:43:59 -0700
From:      Sean LeBlanc <seanleblanc@attbi.com>
To:        =?iso-8859-1?Q?Jos=E9_M=2E_Fandi=F1o?= <freebsd@fadesa.es>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: Some audio capture questions
Message-ID:  <20020327194359.A33743@hostwiththemost>
In-Reply-To: <3C9897B6.5440650A@fadesa.es>; from freebsd@fadesa.es on Wed, Mar 20, 2002 at 02:07:50PM %2B0000
References:  <20020315074048.A12682@hostwiththemost> <3C921767.F8DE91F5@fadesa.es> <20020317125611.A74777@hostwiththemost> <3C9897B6.5440650A@fadesa.es>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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