[Live-devel] byte rate

Ross Finlayson finlayson at live555.com
Wed Jun 27 23:30:52 PDT 2012


> 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.

That's because the call to "startPlaying()" merely sets up the objects to handle streaming.  The actual streaming (reception) doesn't happen until later, when you enter the event loop.

If you instead check "videoSink->octetCount()" inside the "afterPlaying()" function - i.e., after the streaming has completed, then you'll see a non-zero count.


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/20120627/d7e09d88/attachment.html>


More information about the live-devel mailing list