how to display video on server side

Nicolas Dufresne nicolas.dufresne at collabora.com
Sun May 10 06:28:58 PDT 2015


Hello,

it would be nice to create a new thread instead of replying to an
existing thread next time.

Le vendredi 08 mai 2015 à 22:50 -0700, gagankumarnigam a écrit :
> Sir,
>  i am new to gstreamer coding. What you had done in your server
> -client code
> is actually my requirement.
> I want to know that how to display video after capturing from webcam 
> and
> simultaneously streaming it to other system
> (how to display on server side parallely displaying it on client 
> side).

This can be achieved using a tee element. Here's an example pipeline:

gst-launch-1.0 \
  v4l2src ! tee name=t \
    t. ! queue ! videoconvert ! autovideosink \
    t. ! queue ! x264enc tune=zerolatency ! rtph264pay ! udpsink port=1234 host=127.0.0.1

Note that in some case, it might not be wanted to synchronised
transmission and preview. If this is your case, you can add sync=0 to
autovideosink (or the sink of your choice). Note this is just an
example (specially the network part ;-P).

cheers,
Nicolas




More information about the gstreamer-devel mailing list