* Hello Sir i try'ed calculating the bit/byte rate using the method mentioned below´ as
int o1=videoSink->octetCount(); videoSink->startPlaying(*videoSource, afterPlaying, videoSink); ** ** int o2=videoSink->octetCount(); * * * *At both times the value of o1 and o2 are zero.* * * *Kindly help to find bit/byte rate.* * **If you're streaming using an RTPSink object, call its octetCount() method at two known times. Then: double mbits_sent = (o2 - o1) / 1024.0 / 1024.0 / (s2 - s1) where o2 and o1 are the octetCount() values at time_t s2 and s1. Ross, could you please lift this method up a level, to MediaSink? I wanted it when playing around with raw UDP streaming a few weeks ago. It would also avoid the need to dynamic_cast<> the sink object in certain circumstances, such as when accessing MediaSubsession::sink.*
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel