diff --git a/revid/RevidInstance.go b/revid/RevidInstance.go index 727ddfca..c04ba5c4 100644 --- a/revid/RevidInstance.go +++ b/revid/RevidInstance.go @@ -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() < 2: delay++ time.Sleep(time.Duration(delay) * time.Millisecond) case delay > 0: @@ -461,8 +461,8 @@ func (r *revidInst) setupInputForRaspivid() error { "-o", "-", "-n", "-t", r.config.Timeout, - "-b", r.config.Bitrate, - "-qp", r.config.Quantization, + "-b", 10000, + //"-qp", r.config.Quantization, "-w", r.config.Width, "-h", r.config.Height, "-fps", r.config.FrameRate,