From 8fbad24c95faacccb353a93cb33d0794621c71fe Mon Sep 17 00:00:00 2001 From: "saxon.milton@gmail.com" Date: Wed, 14 Mar 2018 08:28:33 +1030 Subject: [PATCH] it's working! --- revid/RevidInstance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revid/RevidInstance.go b/revid/RevidInstance.go index 727ddfca..a6bf9fb6 100644 --- a/revid/RevidInstance.go +++ b/revid/RevidInstance.go @@ -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: