mirror of https://bitbucket.org/ausocean/av.git
Changing bitrate/ringbuffer size to debug
This commit is contained in:
parent
6ccdcef83f
commit
463e983b21
|
@ -431,8 +431,8 @@ func (r *revid) outputClips() {
|
||||||
deltaTime := now.Sub(prevTime)
|
deltaTime := now.Sub(prevTime)
|
||||||
if deltaTime > time.Duration(bitrateTime)*time.Second {
|
if deltaTime > time.Duration(bitrateTime)*time.Second {
|
||||||
r.currentBitrate = int64(float64(bytes*8) / float64(deltaTime/1e9))
|
r.currentBitrate = int64(float64(bytes*8) / float64(deltaTime/1e9))
|
||||||
r.Log(Info, fmt.Sprintf("Bitrate: %v bits/s\n", r.currentBitrate))
|
r.Log(Debug, 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("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
|
||||||
prevTime = now
|
prevTime = now
|
||||||
bytes = 0
|
bytes = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue