This morning I cranked up my test and I was seeing about 10 second latency. After rebooting all the systems involved I am still seeing about 7 - 8 second latency. This is really strange. <div><br></div><div>Any insight?</div>
<div><br></div><div>Morris<br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 8:24 AM, Morris Ford <span dir="ltr"><<a href="mailto:morrishford@gmail.com">morrishford@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I get:<div>(lt-test-launch:21084): GStreamer-CRITICAL **: gst_poll_set_flushing: assertion `set != NULL' failed<br><br></div><div>Morris</div><div><div></div><div class="h5"><div><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 3:11 AM, Marco Ballesio <span dir="ltr"><<a href="mailto:gibrovacco@gmail.com" target="_blank">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><br>
On Mon, Feb 28, 2011 at 6:14 PM, Morris Ford <<a href="mailto:morrishford@gmail.com" target="_blank">morrishford@gmail.com</a>> wrote:<br>
> Thanks a lot for your help. That was the key to getting it to run. I now<br>
> have a working rtsp-server pipe thus:<br>
> ./test-launch "( 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>
> ! ffdec_h264 ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay<br>
> name=pay0 pt=96 sync=false )"<br>
> Problem now is that there is a 3 - 4 second latency when playing using that<br>
> pipeline and playing the resulting video through vlc or quicktime.<br>
> My question: How do I find what is causing the delay and what can I do to<br>
> reduce the delay?<br>
<br>
</div>what if you don't explicitly set clock-base and seqnum-base?<br>
<br>
Regards<br>
<div><div></div><div><br>
> Thanks<br>
> Morris<br>
><br>
> On Mon, Feb 28, 2011 at 2:33 AM, Marco Ballesio <<a href="mailto:gibrovacco@gmail.com" target="_blank">gibrovacco@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> On Mon, Feb 28, 2011 at 3:05 AM, Morris Ford <<a href="mailto:morrishford@gmail.com" target="_blank">morrishford@gmail.com</a>><br>
>> 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,<br>
>> > ssrc=\(guint\)2396357661,<br>
>> > clock-base=\(guint\)2297066863, seqnum-base=\(guint\)49439" !<br>
>> > 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<br>
>> > 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>
>> 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>
>><br>
>> > encoding-name=\(string\)H264, payload=\(int\)96,<br>
>> > ssrc=\(guint\)2396357661,<br>
>> > clock-base=\(guint\)2297066863, seqnum-base=\(guint\)49439" !<br>
>> > rtph264depay !<br>
>> > decodebin ! ffmpegcolorspace ! videoscale ! x264enc ! rtph264pay<br>
>> > 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"<br>
>> > 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<br>
>> > in a<br>
>> > gst-rtsp-server 'c' program so I am not at all sure if what I am trying<br>
>> > to<br>
>> > do is valid.<br>
>> > Morris<br>
>> > _______________________________________________<br>
>> > gstreamer-devel mailing list<br>
>> > <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">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>
</div></div></blockquote></div><br></div>