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