From 2eae228d739eec6c71ac204250b980cc1c158a91 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 14 Mar 2018 08:21:33 +1030 Subject: [PATCH] constant bitrate --- revid/RevidInstance.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,