constant bitrate

This commit is contained in:
Unknown 2018-03-14 08:21:33 +10:30
parent f7b3acb4d6
commit 2eae228d73
1 changed files with 3 additions and 3 deletions

View File

@ -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,