[gst-devel] video over network examples

Zaheer Merali zaheermerali at gmail.com
Wed May 9 20:08:56 CEST 2007


On 5/9/07, Chris Bare <chris at bareflix.com> wrote:
> > > server
> > > gst-launch-0.10 -v -m -t v4lsrc device=/dev/video0 !  "video/x-raw-yuv,width=320,height=240,framerate=300/16" ! theoraenc quality=5 ! tcpserversink
> > >
> >
> > Add a gdppay between theoraenc and tcpserversink.
> >
> > > client
> > > gst-launch-0.10 -v -m -t tcpclientsrc !  xvimagesink
> >
> > You need to change this to: tcpclientsrc ! gdpdepay ! theoradec ! xvimagesink
> >
> > The gdppay and gdpdepay elements serialise and deserialise the buffers
> > (including caps, timestamps etc.) and events. This allows the client
> > side to know exactly what is being received.
> >
>
> Thanks, that made it work. Is there a way to reduce the latency? With theora
> in there, there's about a 7 second delay when both clients are on the same
> machine. Without theora, it works and there is minimal delay. If I just
> send theora to xvimagesink there is also minimal delay, so it's the
> combination of tcp and theora that introduces the delay.
> --

This is probably due to queues in tcpserversink. Use gst-inspect-0.10
tcpserversink to figure out the properties you can tune on the
tcpserversink.

Zaheer




More information about the gstreamer-devel mailing list