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:
Sender:
$ 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=127.0.0.1 port=5000 sync=false async=false

Receiver:
$ 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!

Hi,
https://gstreamer.freedesktop.org/documentation/tcp/tcpserversink.html?gi-language=c
https://gstreamer.freedesktop.org/documentation/tcp/tcpserversrc.html?gi-language=c

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.
http://gstreamer-devel.966125.n4.nabble.com/