Analyse video by TCP source input

Hello, I’m trying to change the code of deepstream-test1 to forward camera input of UDP and TCP stream.

I successfully found GStreamr command of UDP,and I try to write the Receiver in deepstream-test1.c:
$ gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! “video/x-raw,format=I420,width=640,height=480,framerate=(fraction)30/1” ! queue2 ! nvvideoconvert ! ‘video/x-raw(memory:NVMM), width=(int)1280, height=(int)480, format=(string)I420’ ! nvv4l2h264enc ! “video/x-h264, stream-format=(string)byte-stream” ! h264parse ! rtph264pay mtu=1400 ! udpsink host= port=5000 sync=false async=false

$ gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! queue ! omxh264dec ! nvoverlaysink
sync=false async=false -e

But I didn’t find the Gstream command of TCP. Could someone give me the code of TCP Sender and TCP Receiver?

Thanks in advance!


It should be tcpserversink and tcpserversrc plugins. We don’t have experiece of using the pair. You may also go to gstreamer forum to get further suggestion.