title: How to measure intra GStreamer/gst-launch latency
body: <p>im currently building a GStreamer pipleine on my Raspberry PI as follows:</p>
  
  <p>v4lsrc - h264enc - mpegtsmux - udpsink</p>
  
  <p>im try to figure out how to measure the time in milliseconds for one or several elements, eg. the time consumed by h264enc and mpegtsmux.</p>
  
  <p>Of course I found the following entry which solves this problem by using a gstreamer plugin:</p>
  
  <p><a href="https://stackoverflow.com/questions/23869562/how-can-i-quantitatively-measure-gstreamer-h264-latency-between-source-and-displ">How can I quantitatively measure gstreamer H264 latency between source and display?</a></p>
  
  <p>But i'm not really sure how to compile such a plugin. Especially on the Raspberry Pi! Ive read that every GStreamer Element needs to calculate its latency anyway. Would be super cool if anybody could help me with that!
  Cheers,
  Markus</p>