[Live-devel] Byte rate of live media server

Ross Finlayson finlayson at live555.com
Wed Jun 6 02:25:31 PDT 2012


>> i was wondering how to
>> find out the bit/byte rate of streaming of live media  server,that i can
>> print on the console???
> 
> 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?

No, because the field ("fOctetCount") is updated only by the "RTPSink" subclass, so it's specific to that class.  If people want to count bytes for some other subclass of "MediaSink", then they'll need to do so themselves (via subclassing).

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120606/87d919fb/attachment.html>


More information about the live-devel mailing list