[Live-devel] How to calculate all packet loss rate?

Ross Finlayson finlayson at live555.com
Thu Dec 21 07:29:12 PST 2006


>I meet a problem while using Live555,
>that is, How to detect RTP packet loss in the RTSP
>Client and RTSP Server?

You can look at the statistics that are reported in incoming RTCP 
"RR" messages (sent by clients; received by the server), and RTCP 
"SR" messages (sent by the server; received by clients).  To do this:
- At the client end, look at "RTPSource::ReceptionStatsDB" and 
"RTPSource::ReceptionStats"
- At the server end, look at "RTPSink::TransmissionStatsDB" and 
"RTPSink::TransmissionStats".

Look, for example, at how "openRTSP" uses the 
"RTPSource::ReceptionStats(DB)" information (to implement its "-Q" 
option).  You can use "RTPSink::TransmissionStats(DB)" in a similar 
way.
-- 

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


More information about the live-devel mailing list