[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-multimedia
Subject:    Re: Sound help for compleat novice
From:       Arne "Wörner" <arne_woerner () yahoo ! com>
Date:       2004-05-24 19:22:04
Message-ID: 20040524192204.9892.qmail () web41204 ! mail ! yahoo ! com
[Download RAW message or body]

> 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/ 
_______________________________________________
freebsd-multimedia@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic