[vorbis] Re: live streaming (from microphone to HTTP)

Jeremy C. Reed reed at reedmedia.net
Tue Mar 20 16:41:07 PST 2001



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 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