Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 12:22:04 -0700 (PDT)
From:      Arne "Wörner" <arne_woerner@yahoo.com>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: Sound help for compleat novice
Message-ID:  <20040524192204.9892.qmail@web41204.mail.yahoo.com>

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



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