mirror of https://bitbucket.org/ausocean/av.git
it's working!
This commit is contained in:
parent
f7b3acb4d6
commit
8fbad24c95
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue