I tried various combinations - this one runs but does not change latency (w/o ffmpegcolorspace ! videoscale):<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 ! x264enc ! rtph264pay name=pay0 pt=96 sync=false )"<br>
<br></div><div>This one won't run (w/o the whole decode/encode sequence):</div><div><br></div><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 ! rtph264pay name=pay0 pt=96 sync=false )"</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"><<a href="mailto:lists@svrinformatica.it">lists@svrinformatica.it</a>></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">> Thanks a lot for your help. That was the key to getting it to run. I<br>
> now have a working rtsp-server pipe thus:<br>
><br>
><br>
> ./test-launch "( udpsrc port=5000 caps=\"application/x-rtp, media=<br>
> \(string\)video, clock-rate=\(int\)90000, encoding-name=\(string<br>
> \)H264, payload=\(int\)96, ssrc=\(guint\)2396357661, clock-base=<br>
> \(guint\)2297066863, seqnum-base=\(guint\)49439\" ! rtph264depay !<br>
> ffdec_h264 ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay<br>
> name=pay0 pt=96 sync=false )"<br>
><br>
<br>
</div>try removing the reencoding part "ffdec_h264 ! ffmpegcolorspace !<br>
videoscale ! x264enc !"<br>
<br>
><br>
<div class="im">> Problem now is that there is a 3 - 4 second latency when playing using<br>
> that pipeline and playing the resulting video through vlc or<br>
> quicktime.<br>
<br>
</div>in vlc use --rtsp-caching=100<br>
<div><div></div><div class="h5"><br>
><br>
><br>
> My question: How do I find what is causing the delay and what can I do<br>
> to reduce the delay?<br>
><br>
><br>
> Thanks<br>
> Morris<br>
><br>
> On Mon, Feb 28, 2011 at 2:33 AM, Marco Ballesio <<a href="mailto:gibrovacco@gmail.com">gibrovacco@gmail.com</a>><br>
> wrote:<br>
> Hi,<br>
><br>
> On Mon, Feb 28, 2011 at 3:05 AM, Morris Ford<br>
> <<a href="mailto:morrishford@gmail.com">morrishford@gmail.com</a>> wrote:<br>
> > I am working on receiving an udpsrc stream and publishing it<br>
> as an rtsp<br>
> > stream. This gst-launch string works just fine to receive<br>
> 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=<br>
> \(guint\)2396357661,<br>
> > clock-base=\(guint\)2297066863, seqnum-base=\(guint<br>
> \)49439" ! rtph264depay !<br>
> > decodebin ! ffmpegcolorspace ! videoscale ! xvimagesink<br>
> sync=false<br>
> > but when I try to take that pipeline and put it into a<br>
> 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>
><br>
> It's just about bash syntax. The way you're using the " make<br>
> bash<br>
> thinking you're passing test-launch a first argument like<br>
> 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<br>
> test-launch<br>
> command. I suggest you to try replacing the outmost pair of "<br>
> with '<br>
> or the innermost ones with \"<br>
><br>
> Regards<br>
><br>
> > encoding-name=\(string\)H264, payload=\(int\)96, ssrc=<br>
> \(guint\)2396357661,<br>
> > clock-base=\(guint\)2297066863, seqnum-base=\(guint<br>
> \)49439" ! rtph264depay !<br>
> > decodebin ! ffmpegcolorspace ! videoscale ! x264enc !<br>
> rtph264pay name-pay0<br>
> > pt=96 )"<br>
> > ** (lt-test-launch:20772): CRITICAL **: could not parse<br>
> launch syntax ((<br>
> > udpsrc port=5000 caps=application/x-rtp,): could not set<br>
> property "caps" in<br>
> > element "udpsrc0" to "application/x-rtp,"<br>
> > ** (lt-test-launch:20772): CRITICAL **: could not create<br>
> element<br>
> > I could not find any examples of udpsrc in a test-launch<br>
> line or udpsrc in a<br>
> > gst-rtsp-server 'c' program so I am not at all sure if what<br>
> I am trying to<br>
> > do is valid.<br>
> > Morris<br>
><br>
> > _______________________________________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> ><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>
><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>
<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>