Re: [webrtc-stats] Stat for how much time it takes to encode video

Yes, you can calculate average encode time yourself using 
`totalEncodingTime` and `framesEncoded`. Hang on, should 
`totalEncodingTime` belong to `RTCOutboundRTPStreamStats` (where 
`framesEncoded` lives) and not `RTCMediaStreamTrackStats`? I think so.

Whenever the answer to the question "is there encoding going on at 
this moment?" is yes the `totalEncodingTime` should be increasing with
 time passing. You resume the clock when the pipeline hands over an 
image buffer to the encoder and you pause the clock when the encoder 
hands over the encoded data to the rest of the pipeline.

-- 
GitHub Notification of comment by henbos
Please view or discuss this issue at 
https://github.com/w3c/webrtc-stats/issues/150#issuecomment-278291165 
using your GitHub account

Received on Wednesday, 8 February 2017 10:33:44 UTC