title: How to calculate effective time offset in RTP
body: <p>I have to calculate time offset between packets in RTP streams. With video stream encoded with Theora codec i have timestamp field like</p>
  
  <pre><code> 2856000
   2940000
   3024000
   ...
  </code></pre>
  
  <p>So I assume that transmission offset is 84000. With audio speex codec i have timestamp field like </p>
  
  <pre><code> 38080
   38400
   38720
   ...
  </code></pre>
  
  <p>So I assume that transmission offset is 320. Why values so different? Are they microseconds, milliseconds, or what? Can i generalize a formula to calculate delay between packets in microseconds that works with any codec? Thank you.</p>