gst stuck when using the linux tee

Nicolas Dufresne nicolas.dufresne at gmail.com
Mon Jul 11 17:30:08 UTC 2016


Le lundi 11 juillet 2016 à 20:31 +0400, Abu Abdullah a écrit :
> Hi,
> 
> I'm trying to forward a camera output (Raspberry PI camera
> 'raspivid')
> to live555 and Gstreamer using the following:
> 
> raspivid -n -t 0 -w 640 -h 480 -b 1200000 -fps 20 -o - | tee
> > (./testRaspi) | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay
> pt=96 config-interval=10 ! udpsink host=192.168.1.15 port=5000
> 
> the above command will copy the output of raspivid and pass it to
> live555/testRaspi. at the same time it will forward it also to
> Gstreamer.
> using the linux comman tee.

Just like using tee element in GStreamer, you need both output of the
tee to implement enough buffering to prevent blocking the other size.
If you need to run one without the other, you probably need leaky
queues. The require adding a queue in GStreamer, and probably modifying
live555 code. Have you considered using gst-rtp-server library instead
of live555 ?

> 
> the problems with this command is:
> - GStreamer client will not start until RTSP\live555 client start
> requesting the stream i.e. only both of them will work at the same
> time but not the GStreamer alone. in addition the stream from gst is
> not smooth, it is like buffering some part of the stream and display
> it very quickly in chunks.
> 
> is it something related to gst. does gst send acknowledgement as a
> response to the src (copy of the camera feed).
> 
> N.B. it works fine without tee i.e.:
> raspivid -n -t 0 -w 640 -h 480 -b 1200000 -fps 20 -o - |
> gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay pt=96
> config-interval=10 ! udpsink host=192.168.1.15 port=5000
> 
> Any support is appreciated
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list