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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tue, 15 May 2001, vorbis wrote:> 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. >Is it always healthy to lowpass a signal from the radio at 16KHz? Is it the same for AM and FM? I record most of my Ogg files from the radio (usually through an intermediate tapa cassete - how does this effect?). I usually encode without filtering. I only once noticed that for a particular station which was recieved very weakly, there was a parasitic 18Khz noise. Should I get into the habit of filtering? Unrelated question: the above script seems to kill the encoding as the normal means for ending a recording - is this a safe thing? Does it only produce a little bad page/packet at the end that one can live with? -- Beni Cherniavsky <cben@crosswinds.net> (also scben@t2,cben@tx in Technion) 10001110111100111100001001010 m/s --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tue, 15 May 2001, Beni Cherniavsky wrote:> I get a nasty 19kHz feedback spike or something that confuses > vorbis. Now that I'm cutting it out, vorbis doesn't have to > waste bits trying to replicate that nasty high pitch spike.That 19khz tone is the stereo pilot that tells your receiver that a stereo signal is being received. Receivers should not be passing that through the audio but most seem to.> As for AM, I'm not sure, but I'd probably throw out everything above > 10kHz and below 100Hz. If I'm not mistaken it doesn't go above or > below that. Maybe someone knows what AM is optimzed for exactly.There is a 10khz upper limit but I'm not sure of the 100hz limit.> I only use vorbis to record live sources as well because for > some reason, > if the channels are not centered, lame's joint stereo gets > confused and > introduces artifacts without fail (could use true stereo... but hey, > vorbis kicks its ass). Every single time.Yes I've heard this with old 70's recordings as well when the left & right channels are slightly out of phase. Lame appears to be a lot better with this problem these days than it use to be. Lame has had mods in the area where it decides to encode a frame at joint-stereo or plain stereo. Monty will have to test his joint-stereo algorithm with recordings of this nature. Ross. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.