<div>Sometimes, a TCP H264 video stream to some IP cameras cannot be stablished.</div><div>This problematic behaviour happens only with 2 out of the 5 cameras we have tried.</div><div>I cannot reproduce the buggy behaviour from other client like VLC (</div>

<div><br></div><div> == Client system information:</div><div>$ cat /etc/issue</div><div>Ubuntu 11.10 \n \l</div><div>$ uname -a</div><div>Linux dubai 3.0.0-16-generic-pae #29-Ubuntu SMP Tue Feb 14 13:56:31 UTC 2012 i686 i686 i386 GNU/Linux</div>

<div>$ gst-launch-0.10 --version</div><div>gst-launch-0.10 version 0.10.35</div><div>GStreamer 0.10.35</div><div><a href="https://launchpad.net/distros/ubuntu/+source/gstreamer0.10">https://launchpad.net/distros/ubuntu/+source/gstreamer0.10</a></div>

<div><br></div><div> == Steps to reproduce bug:</div><div>1) Run these commands:</div><div>$ export GST_DEBUG=&quot;*:2&quot;</div><div>$ while true; do gst-launch rtspsrc location=&quot;rtsp://<a href="http://user:password@192.168.3.206/axis-media/media.amp?resolution=640x480&amp;fps=10&amp;videocodec=h264">user:password@192.168.3.206/axis-media/media.amp?resolution=640x480&amp;fps=10&amp;videocodec=h264</a>&quot; protocols=&quot;tcp&quot; ! decodebin ! ffmpegcolorspace ! xvimagesink; done</div>

<div>2) Ctrl+C each time you get a working video stream, let it loop and try to get a new stream again.</div><div>3) About 10-15% of the times it will fail to show any video. Console will show this output:</div><div>Setting pipeline to PAUSED ...</div>

<div>Pipeline is live and does not need PREROLL ...</div><div>Setting pipeline to PLAYING ...</div><div>0:00:00.399456836 29193  0x9df6050 WARN                     bin gstbin.c:2384:gst_bin_do_latency_func:&lt;pipeline0&gt; failed to query latency</div>

<div>New clock: GstSystemClock</div><div>0:00:00.696638170 29193  0x9f7beb0 WARN                 rtspsrc gstrtspsrc.c:4025:gst_rtspsrc_loop:&lt;rtspsrc0&gt; error: Internal data flow error.</div><div>0:00:00.696708832 29193  0x9f7beb0 WARN                 rtspsrc gstrtspsrc.c:4025:gst_rtspsrc_loop:&lt;rtspsrc0&gt; error: streaming task paused, reason not-linked (-1)</div>

<div>ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Internal data flow error.</div><div>Additional debug info:</div><div>gstrtspsrc.c(4025): gst_rtspsrc_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:</div>

<div>streaming task paused, reason not-linked (-1)</div><div>Execution ended after 122707578 ns</div><div><br></div><div><br></div><div> == Additional information:</div><div>The &quot;failed to query latency&quot; debug message seems to be normal? It happens with all tested cameras. However the &quot;internal data flow error&quot; and &quot;streaming task paused&quot; messages are not normal.</div>

<div><br></div><div>A faster way to make the stream fail, is to stablish not 1, but 2 or more simultaneous streams (and of course, disregarding any 503 errors that may appear due to camera rejecting additional connections, which can be reasonable to expect), like this:</div>

<div>$ while true; do gst-launch rtspsrc location=&quot;rtsp://<a href="http://user:password@192.168.3.206/axis-media/media.amp?resolution=640x480&amp;fps=10&amp;videocodec=h264">user:password@192.168.3.206/axis-media/media.amp?resolution=640x480&amp;fps=10&amp;videocodec=h264</a>&quot; protocols=&quot;tcp&quot; ! decodebin ! ffmpegcolorspace ! xvimagesink  rtspsrc location=&quot;rtsp://<a href="http://user:password@192.168.3.206/axis-media/media.amp?resolution=640x480&amp;fps=10&amp;videocodec=h264">user:password@192.168.3.206/axis-media/media.amp?resolution=640x480&amp;fps=10&amp;videocodec=h264</a>&quot; protocols=&quot;tcp&quot; ! decodebin ! ffmpegcolorspace ! xvimagesink; done</div>

<div><br></div><div><br></div><div><br></div><div>Please let me know if you need more information.</div><div><br></div>-- <br>Saludos,<br>     Bruno González<br><br>_______________________________________________<br>Jabber: stenyak AT <a href="http://gmail.com" target="_blank">gmail.com</a><br>

<a href="http://www.stenyak.com" target="_blank">http://www.stenyak.com</a><br>