<div dir="ltr">Hey Nicolas,<div><br></div><div>Thanks for your advice, but I have a couple of follow-up questions based on my observations.</div><div>1) You were right, it was text-overlay = true (on a near-4K stream) that was causing the near 5 s lag. However, even on this pipeline:</div><div>gst-launch-1.0 rtspsrc location= rtsp://<a href="http://10.20.12.191:8554/test">10.20.12.191:8554/test</a> name=r latency=0 ! rtph264depay ! avdec_h264 ! fpsdisplaysink name=fpssink text-overlay=true video-sink=xvimagesink sync=0 -v   => I get results like this: /GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 334, dropped: 0, current: 18.77, average: 19.07<br></div><div><span style="line-height:1.5">Note that I am attempting to stream 30 fps video from source. If I average a frame rate of 19 fps, where are the other frames? For sure they don't show up under dropped, and I have latency = 0 (no jitterbuffer).</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">However, with the above pipeline but text-overlay= false, I get near-realtime stream with results like this:</span></div><div><div>/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 1234, dropped: 0, current: 30.68, average: 29.76</div></div><div><br></div><div><span style="line-height:1.5">However, with sync=1, I *seem* to get a near realtime stream without any dropped frames, but here is the log from the shell:</span></div><div><div>/GstPipeline:pipeline0/GstFPSDisplaySink:fpssink: last-message = rendered: 5, dropped: 5021, fps: 0.00, drop rate: 30.89</div><div style="line-height:1.5">This log seems to update once every half-second, with about increase of 15 in the 'dropped' parameter.</div></div><div style="line-height:1.5"><br></div><div style="line-height:1.5">I know I am probably beating around the bush, but what's going on here? Which of these reflects the 'true' FPS?  Is there anything else I can do about measuring the actual FPS? You mentioned something about a weird timestamp, what can I do about it?</div><div style="line-height:1.5"><br></div><div style="line-height:1.5">Thanks,</div><div style="line-height:1.5">-Aswin</div><div><span style="line-height:1.5"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 16 Jun 2016 at 18:32 Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"><br>
Le 16 juin 2016 5:36 PM, "Aswin Pranav" <<a href="mailto:aswin2pranav@gmail.com" target="_blank">aswin2pranav@gmail.com</a>> a écrit :<br>
><br>
> Thanks for the input guys, but now my problem is:<br>
> When my receiver pipeline is simply " gst-launch-1.0 rtspsrc location= rtsp://<a href="http://10.20.13.24:8554/test" target="_blank">10.20.13.24:8554/test</a> name=r latency=0 ! rtph264depay ! avdec_h264 ! xvimagesink sync=0" it *appears* that my video is almost-realtime (150 ms latency between server and client using a stopwatch) and is rendering smoothly at 30 fps (this value was set at the server source). But then when I modify my pipeline to this: "gst-launch-1.0 rtspsrc location= rtsp://<a href="http://10.20.13.24:8554/test" target="_blank">10.20.13.24:8554/test</a> name=r latency=0 ! rtph264depay ! avdec_h264 ! fpsdisplaysink name=fpssink video-sink=xvimagesink sync=0 -v" I get considerable latency between server and client (almost 5 seconds), the video visibly stutters, and the frame rate comes up to an average of 18 ms with 0 dropped frames.<br>
><br>
> When I set sync=1, all hell breaks loose and I get a drop rate of 30 fps (on avg)! I get maximum frame rendered per second . What is going on?! Does fpsdisplaysink influence the speed of my receiver pipeline in some manner? What can I do about it? Is there a lower overhead way of checking fps?</p>
<p dir="ltr">By setting rtspsrc latency to 0 you prevent the jitterbuffer from doing its job, so you most likely have weird timestamp.. So forget about sync=1 unless you increase the latency. Now, you should set the sync= on fpsdidplaysink, it will take care of the internal a sink. Overlay are expensive, for high resolution it could be too slow.</p>
<p dir="ltr">><br>
> Thanks.<br>
><br>
><br>
> On Wed, 15 Jun 2016 at 19:37 Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>> wrote:<br>
>><br>
>><br>
>> Le 2016-06-15 16:03, "Sankar,Aswin Pranav" <<a href="mailto:apsankar@ufl.edu" target="_blank">apsankar@ufl.edu</a>> a écrit :<br>
>> ><br>
>> > Hi all,<br>
>> ><br>
>> ><br>
>> > Here's my gstreamer receiver pipeline: gst-launch-1.0 rtspsrc location= rtsp://<a href="http://10.20.13.24:8554/test" target="_blank">10.20.13.24:8554/test</a> name=r latency=0 ! rtph264depay ! avdec_h264 ! fpsdisplaysink name=fpssink text-overlay=false video-sink=xvimagesink signal-fps-measurements=true<br>
>> ><br>
>> ><br>
>> > When I launch this pipeline, I receive the rtp stream, but it appears in a normal window, i.e, like an xvimagesink. I cannot see any frame rate counter or indicator. What do I need to change?<br>
>><br>
>> You have disabled the overlay, so the information will be posted as application message. Implement a bus handler to receive those. With gst-launch you can add the -m parameter to trace messages.<br>
>><br>
>> ><br>
>> ><br>
>> > Thanks,<br>
>> ><br>
>> > -Aswin<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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
</p>
_______________________________________________<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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>