Discussion:
How to get timestamp difference between frames in milliseconds or microseconds?
minus
2014-09-01 13:12:45 UTC
Permalink
I'm analyzing RTSP stream data and need to have the time difference in milliseconds between each video frame. Stream server send timestamp values like below:

1271120994
1271124594
1271128194
...
...
...

but it does not look like difference between frames is coming in milliseconds or microseconds: 1271124594 - 1271120994 = 3600

How to calculate timestamp difference in milli or micro seconds?
Ross Finlayson
2014-09-02 07:02:52 UTC
Permalink
You shouldn't be looking at RTP timestamps at all. They are only used internally by the RTP/RTCP protocol, to convert from/to "presentation times". Instead, you should be looking only at "presentation times". (See, for example, the implementation of "DummySink::afterGettingFrame()" in the "testRTSPClient" demo application.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

Loading...