Changing bitrate/ringbuffer size to debug

This commit is contained in:
Saxon1 2018-05-06 19:33:51 +09:30
parent 6ccdcef83f
commit 463e983b21
1 changed files with 2 additions and 2 deletions

View File

@ -431,8 +431,8 @@ func (r *revid) outputClips() {
deltaTime := now.Sub(prevTime)
if deltaTime > time.Duration(bitrateTime)*time.Second {
r.currentBitrate = int64(float64(bytes*8) / float64(deltaTime/1e9))
r.Log(Info, fmt.Sprintf("Bitrate: %v bits/s\n", r.currentBitrate))
r.Log(Info, fmt.Sprintf("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
r.Log(Debug, fmt.Sprintf("Bitrate: %v bits/s\n", r.currentBitrate))
r.Log(Debug, fmt.Sprintf("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
prevTime = now
bytes = 0
}