Streaming of my IP cam stuck at 0:00:00.0 on some circumstances

Gavin Ni gisngy at gmail.com
Tue Jul 6 21:29:09 UTC 2021


I have an IP camera which uses TCP to send H264 streams. I want to
re-broadcast it using gstreamer(rtspclientsink) + simplertspserver but it
is half-failed.

The command I use:

gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse !
rtspclientsink location=rtsp://localhost:8554/stream

This command runs successfully but the time indicator is stuck at
"0:00:00.0 / 99:99:99" and I can get only one frame in VLC client (the
frame is updated when stop and restart play in VLC).

So I try to run some other different sinks and here's what I found:

   - These work:

gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse
! avdec_h264 ! autovideosinkgst-launch-1.0 tcpclientsrc port=5000
host=192.168.41.116 ! h264parse ! avdec_h264 !
fakevideosinkgst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116
! h264parse ! avdec_h264 ! fpsdisplaysink text-overlay=false


   - These do not work (shows only first frame or clock stuck):

gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse
! rtspclientsink location=rtsp://localhost:8554/streamgst-launch-1.0
tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 !
clockoverlay ! autovideosinkgst-launch-1.0 tcpclientsrc port=5000
host=192.168.41.116 ! h264parse ! avdec_h264 ! filesinkgst-launch-1.0
tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 !
fakesinkgst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 !
h264parse ! avdec_h264 ! fpsdisplaysink text-overlay=true

I'm new to GStreamer and really confused what's happening in this case
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210706/bc85d5b8/attachment.htm>


More information about the gstreamer-devel mailing list