[vorbis] Realtime resampling/encoding with oggenc

vorbis vorbis at papaya.altamente.com
Tue May 15 05:30:56 PDT 2001



Don't know if anybody is still missing the lame oggenc features for
resampling, lowpass/highpass filters etc, but I wrote a little script that
uses sox to do all the stuff I need to real-time encode oggenc from the
radio, or any input device.

#!/bin/bash
DATE=`date '+%m-%d-%Y-(%H.%M)'`
DESTIN=/video/music/perftoday
export DATE=$DATE'-PerformanceToday.ogg'
 
sox -V -r 44100 -c 2 -t ossdsp -w -s /dev/dsp -t wav - filter \
0-16000 2>/dev/null | oggenc - -o $DESTIN/$DATE -b 128&
sleep 7200
kill -9 $!

What you see here on the first two lines should be only one.  Note the
"\".

As you can guess, I use this to record my favorite classical music program
on NPR.  Anyway, I hope this solves somebody's problem similar to mine.

--James

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list