[vorbis] [line-in.to.ogg]
Paul Martin
pm at nowster.zetnet.co.uk
Sat May 10 06:19:50 PDT 2003
On Sat, May 10, 2003 at 07:39:56AM -0400, Greg Wooledge wrote:
> Paul Martin (pm at nowster.zetnet.co.uk) wrote:
>
> > #!/bin/bash
> >
> > output=${1:-/tmp/recording.ogg}
> > duration=${2:-1800}
> >
> > brec -S -s 48000 -b 16 -t $duration -D 1 -r | \
> > nice -n -10 oggenc -Q -q 6 -r -R 48000 -C 2 -o $output -
>
> Just out of curiosity, why did you put "nice" in there? Oggenc will
> use however much CPU it needs to encode the incoming data stream in
> real time, and must not fall behind.
I run this as root (so brec gets realtime priority). The nice makes
sure that nothing else causes oggenc to get starved of CPU. This is
important if you've got a low horsepower PC.
--
Paul Martin <pm at zetnet.net> (work)
<pm at nowster.zetnet.co.uk> (home)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis/attachments/20030510/328e59ef/part-0001.pgp
More information about the Vorbis
mailing list