Thanks a lot for your help. That was the key to getting it to run. I now have a working rtsp-server pipe thus:<div><br></div><div>./test-launch &quot;( udpsrc port=5000 caps=\&quot;application/x-rtp, media=\(string\)video, clock-rate=\(int\)90000, encoding-name=\(string\)H264,  payload=\(int\)96, ssrc=\(guint\)2396357661, clock-base=\(guint\)2297066863, seqnum-base=\(guint\)49439\&quot; ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay name=pay0 pt=96 sync=false )&quot;</div>
<div><br></div><div>Problem now is that there is a 3 - 4 second latency when playing using that pipeline and playing the resulting video through vlc or quicktime.</div><div><br></div><div>My question: How do I find what is causing the delay and what can I do to reduce the delay?</div>
<div><br></div><div>Thanks</div><div>Morris<br><br><div class="gmail_quote">On Mon, Feb 28, 2011 at 2:33 AM, Marco Ballesio <span dir="ltr">&lt;<a href="mailto:gibrovacco@gmail.com">gibrovacco@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<div class="im"><br>
On Mon, Feb 28, 2011 at 3:05 AM, Morris Ford &lt;<a href="mailto:morrishford@gmail.com">morrishford@gmail.com</a>&gt; wrote:<br>
&gt; I am working on receiving an udpsrc stream and publishing it as an rtsp<br>
&gt; stream. This gst-launch string works just fine to receive the stream:<br>
&gt; gst-launch-0.10 -v udpsrc port=5000 caps=&quot;application/x-rtp,<br>
&gt; media=\(string\)video, clock-rate=\(int\)90000,<br>
&gt; encoding-name=\(string\)H264,  payload=\(int\)96, ssrc=\(guint\)2396357661,<br>
&gt; clock-base=\(guint\)2297066863, seqnum-base=\(guint\)49439&quot; ! rtph264depay !<br>
&gt; decodebin ! ffmpegcolorspace ! videoscale ! xvimagesink sync=false<br>
&gt; but when I try to take that pipeline and put it into a test-launch, I get<br>
&gt; complaints about not being able to set the caps on udpsrc to<br>
&gt; application/x-rtp.<br>
&gt; Like this:<br>
&gt; ./test-launch &quot;( udpsrc port=5000 caps=&quot;application/x-rtp,<br>
&gt; media=\(string\)video, clock-rate=\(int\)90000,<br>
<br>
</div>It&#39;s just about bash syntax. The way you&#39;re using the &quot; make bash<br>
thinking you&#39;re passing test-launch a first argument like this:<br>
<br>
( udpsrc port=5000 caps=<br>
<br>
concatenated to:<br>
<br>
application/x-rtp,<br>
<br>
and a second argument like:<br>
<br>
media=\(string\)video,<br>
<br>
useless to say this is not what you should pass to the test-launch<br>
command. I suggest you to try replacing the outmost pair of &quot; with &#39;<br>
or the innermost ones with \&quot;<br>
<br>
Regards<br>
<div class="im"><br>
&gt; encoding-name=\(string\)H264,  payload=\(int\)96, ssrc=\(guint\)2396357661,<br>
&gt; clock-base=\(guint\)2297066863, seqnum-base=\(guint\)49439&quot; ! rtph264depay !<br>
&gt; decodebin ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay name-pay0<br>
&gt; pt=96 )&quot;<br>
&gt; ** (lt-test-launch:20772): CRITICAL **: could not parse launch syntax ((<br>
&gt; udpsrc port=5000 caps=application/x-rtp,): could not set property &quot;caps&quot; in<br>
&gt; element &quot;udpsrc0&quot; to &quot;application/x-rtp,&quot;<br>
&gt; ** (lt-test-launch:20772): CRITICAL **: could not create element<br>
&gt; I could not find any examples of udpsrc in a test-launch line or udpsrc in a<br>
&gt; gst-rtsp-server &#39;c&#39; program so I am not at all sure if what I am trying to<br>
&gt; do is valid.<br>
&gt; Morris<br>
</div>&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>