<p dir="ltr">On 31-Dec-2014 5:18 pm, "frank82" <<a href="mailto:francescomarino84627@gmail.com">francescomarino84627@gmail.com</a>> wrote:<br>
> I have a pipeline that captures the video from a webcam encode it and send<br>
> the video through udp protocol. On the client side I get the video from the<br>
> udp port and show it on a window. I'm able to see the video but delayed of<br>
> about 500 ms. I computed this time in a very rough way: I put the camera in<br>
> front of the screen of my computer with a digital clock running and then I<br>
> capture the screen with the digital clock so I can make the difference<br>
> between what the clock shows on my desktop and on the video window.   I<br>
> would like to know how to compute exactly the latency on video streaming<br>
> (using for example some gstreamer calls), someone can give me an hint?<br>
> Thank you for the support.<br>
></p>
<p dir="ltr">If you add a "clockoverlay" element in the pipeline after the "v4l2src" you have in your pipeline, you will get a millisecond-granularity timer synced to the pipeline clock overlayed on the video and you'll be able to use the same technique you already are to get a more accurate latency measure.</p>
<p dir="ltr">Cheers,<br>
Nirbheek</p>