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 "( udpsrc port=5000 caps=\"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\" ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay name=pay0 pt=96 sync=false )"</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"><<a href="mailto:gibrovacco@gmail.com">gibrovacco@gmail.com</a>></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 <<a href="mailto:morrishford@gmail.com">morrishford@gmail.com</a>> wrote:<br>
> I am working on receiving an udpsrc stream and publishing it as an rtsp<br>
> stream. This gst-launch string works just fine to receive the stream:<br>
> gst-launch-0.10 -v udpsrc port=5000 caps="application/x-rtp,<br>
> media=\(string\)video, clock-rate=\(int\)90000,<br>
> encoding-name=\(string\)H264, payload=\(int\)96, ssrc=\(guint\)2396357661,<br>
> clock-base=\(guint\)2297066863, seqnum-base=\(guint\)49439" ! rtph264depay !<br>
> decodebin ! ffmpegcolorspace ! videoscale ! xvimagesink sync=false<br>
> but when I try to take that pipeline and put it into a test-launch, I get<br>
> complaints about not being able to set the caps on udpsrc to<br>
> application/x-rtp.<br>
> Like this:<br>
> ./test-launch "( udpsrc port=5000 caps="application/x-rtp,<br>
> media=\(string\)video, clock-rate=\(int\)90000,<br>
<br>
</div>It's just about bash syntax. The way you're using the " make bash<br>
thinking you'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 " with '<br>
or the innermost ones with \"<br>
<br>
Regards<br>
<div class="im"><br>
> encoding-name=\(string\)H264, payload=\(int\)96, ssrc=\(guint\)2396357661,<br>
> clock-base=\(guint\)2297066863, seqnum-base=\(guint\)49439" ! rtph264depay !<br>
> decodebin ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay name-pay0<br>
> pt=96 )"<br>
> ** (lt-test-launch:20772): CRITICAL **: could not parse launch syntax ((<br>
> udpsrc port=5000 caps=application/x-rtp,): could not set property "caps" in<br>
> element "udpsrc0" to "application/x-rtp,"<br>
> ** (lt-test-launch:20772): CRITICAL **: could not create element<br>
> I could not find any examples of udpsrc in a test-launch line or udpsrc in a<br>
> gst-rtsp-server 'c' program so I am not at all sure if what I am trying to<br>
> do is valid.<br>
> Morris<br>
</div>> _______________________________________________<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>
><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>
</blockquote></div><br></div>