tcp ogg broadcasting

Tim Müller tim at centricular.com
Fri Jun 13 08:35:47 PDT 2014


On Fri, 2014-06-13 at 16:59 +0200, Lee Matthews wrote:

Hi Lee,

> If I wish to rebroadcast an ogg stream over tcp from one client to many
> clients, could I do something like the following :
> 
> 
> camera_transmitter :
> 
> gst-launch v4l2src ! theoraenc ! oggmux ! tcpserversink host=0.0.0.0
> 
> 
> broadcast_pc :
> 
> gst-launch tcpclientsrc host=camera_transmitter ! tcpserversink host=0.0.0.0
> 
> 
> viewer_pc :
> 
> gst-launch tcpclientsrc host=broadcast_pc ! oggdemux ! theoradec ! autovideosink
> 
> 
> Could a system such as the above function ?

Almost. I think you will need an 'oggparse' element between the src and
sink on your broadcast_pc. oggparse will parse out the initial headers
and make them available to tcpserversink, which needs to send them to
each client that connects later after streaming has started.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list