Can anyone share some ideas or point me to some documentation on how I can easily begin streaming live audio? My input would be /dev/audio (my microphone or soundcard input). Is there some type of small HTTP server that can use this /dev/audio piped through oggenc (or the ogg vorbis library built into the httpd)? Or do I use a FIFO and any regular httpd? (I am running NetBSD.) Thanks, Jeremy C. Reed http://www.reedmedia.net/ --- >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.
Hallo Jeremy, you could use icecast 2 as server: http://i.cantcode.com/~jack/icecast.html maybe you could use the little example.c program to stream to the server (/dev/audio | oggenc | example). didn't test it. I only have a tcl script, which doesn't work for linux, but runs fine on windows (using this for the http://ogg.radiostudio.org:8007/ostream.ogg test live stream). On Tue, 20 Mar 2001 12:22:50 -0800 (PST), Jeremy C. Reed wrote:>Can anyone share some ideas or point me to some documentation on how I can >easily begin streaming live audio? > >My input would be /dev/audio (my microphone or soundcard >input). > >Is there some type of small HTTP server that can use this /dev/audio piped >through oggenc (or the ogg vorbis library built into the httpd)? > >Or do I use a FIFO and any regular httpd?--- >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.
"Jeremy C. Reed" wrote:> > Can anyone share some ideas or point me to some documentation on how I can > easily begin streaming live audio? > > My input would be /dev/audio (my microphone or soundcard > input). > > Is there some type of small HTTP server that can use this /dev/audio piped > through oggenc (or the ogg vorbis library built into the httpd)? > > Or do I use a FIFO and any regular httpd? > > (I am running NetBSD.)Icecast 2.0 and some sort of streaming soucre client (like the one I've knocked together) - those should do the trick. -- Scott Manley (AKA Szyzyg) Streaming Media Hacker www.myplay.com Listening to..... Floorgasm II - The Hard House Years http://www.myplay.com/mp/playlist/now_playing.jsp?plid=381576&start=1 --- >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.
Jeremy C. Reed
2001-Mar-20 16:41 UTC
[vorbis] Re: live streaming (from microphone to HTTP)
On Tue, 20 Mar 2001, Jeremy C. Reed wrote:> Can anyone share some ideas or point me to some documentation on how I can > easily begin streaming live audio?Well, I am able to do streaming using inetd. inetd runs: #!/bin/sh leep 1 echo streamogg-test echo ^V^M ## that's so it will send a carriage return before linefeed echo ^V^M sleep 1 /usr/pkg/bin/oggenc -q -b 1 -o - /home/reed/audio/sample.wav And then on another machine (over 10MB network) I can play with ogg123. I rarely use Windows, but today I tried FreeAmp on my wife's computer. I have no clue how to get it to stream ogg. Any ideas?> My input would be /dev/audio (my microphone or soundcard > input).Now I am trying to figure out how to convert my microphone input to ogg. I can successfully input data from my microphone with: dd bs=8k count=10 </dev/audio >sample.au I can listen to it with: cat sample.au > /dev/audio I can convert it to a wav file with: sox -t ul sample.au -r 44100 sample.wav But I can't play this file with splay (no messages, no sound). audioplay does play it though. Then I can't figure out how to create a good WAV file. $ oggenc -q -b 1 -o sample.ogg sample.wav Warning: Unrecognised format chunk in WAV header ERROR: Input file "sample.wav" is not a supported format Any ideas on how I can use sox (or another utility) to properly create a usable WAV file? Or maybe a "raw" (44.1 kHz, 16 bit, little-endian audio data with no header information) file? I am reading the sox manual but it doesn't share very many examples. Jeremy C. Reed http://www.reedmedia.net/ --- >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.