<div dir="ltr"><p dir="auto">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.</p>
<p dir="auto">The command I use:</p>
<p dir="auto"><code>gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! rtspclientsink location=rtsp://localhost:8554/stream</code></p>
<p dir="auto">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).</p>
<p dir="auto">So I try to run some other different sinks and here's what I found:</p>
<ul dir="auto">
<li>These work:</li>
</ul>
<pre class="gmail-code gmail-highlight gmail-js-syntax-highlight gmail-language-plaintext gmail-white" lang="plaintext"><code><span id="gmail-LC1" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 ! autovideosink</span>
<span id="gmail-LC2" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 ! fakevideosink</span>
<span id="gmail-LC3" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 ! fpsdisplaysink text-overlay=false</span></code></pre>
<ul dir="auto">
<li>These do not work (shows only first frame or clock stuck):</li>
</ul>
<pre class="gmail-code gmail-highlight gmail-js-syntax-highlight gmail-language-plaintext gmail-white" lang="plaintext"><code><span id="gmail-LC1" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! rtspclientsink location=rtsp://localhost:8554/stream</span>
<span id="gmail-LC2" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 ! clockoverlay ! autovideosink</span>
<span id="gmail-LC3" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 ! filesink</span>
<span id="gmail-LC4" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 ! fakesink</span>
<span id="gmail-LC5" class="gmail-line" lang="plaintext">gst-launch-1.0 tcpclientsrc port=5000 host=192.168.41.116 ! h264parse ! avdec_h264 ! fpsdisplaysink text-overlay=true</span>
<span id="gmail-LC6" class="gmail-line" lang="plaintext"> </span></code></pre>
<p dir="auto">I'm new to GStreamer and really confused what's happening in this case</p></div>