it's working!

This commit is contained in:
saxon.milton@gmail.com 2018-03-14 08:28:33 +10:30
parent f7b3acb4d6
commit 8fbad24c95
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ const (
mp2tPacketSize = 188 // MPEG-TS packet size
mp2tMaxPackets = 2016 * clipDuration // # first multiple of 7 and 8 greater than 2000
ringBufferSize = 10000
ringBufferElementSize = 10000
ringBufferElementSize = 100000
maxClipSize = 10000
httpTimeOut = 5 // s
packetsPerFrame = 7
@ -315,7 +315,7 @@ func (r *revidInst) outputClips() {
for r.isRunning {
// Here we slow things down as much as we can to decrease cpu usage
switch {
case r.ringBuffer.GetNoOfElements() < 5000:
case r.ringBuffer.GetNoOfElements() < 200:
delay++
time.Sleep(time.Duration(delay) * time.Millisecond)
case delay > 0: