[ogg-dev] Creating a Streaming Server
Ralph Giles
giles at thaumas.net
Wed Oct 13 20:43:55 PDT 2010
On 13 October 2010 18:40, Tim Gustafson <tjg at tgustafson.com> wrote:
> I have the pixel data for each frame of the libGL
> rendered image available to me, so really I am looking for an example
> that will let me take raw RGB pixel data, convert it to an Ogg stream
> and send it to users over HTTP.
It occurs to me you might be asking a simpler question. If you just
want to encode RGB pixel data, have a look at the png2theora.c example
file in the libtheora source. This will create your ogg stream. Then
you can either send that directly to a client by invoking it from a
cgi wrapper on your webserver, or if you want to share the stream with
multiple clients, use an icecast server and a sending client like
oggfwd (http://v2v.cc/~j/oggfwd/)
(http://svn.xiph.org/trunk/theora/examples/png2theora.c)
http://v2v.cc/~j/oggfwd/)
More information about the ogg-dev
mailing list