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 { for r.isRunning {
// Here we slow things down as much as we can to decrease cpu usage // Here we slow things down as much as we can to decrease cpu usage
switch { switch {
case r.ringBuffer.GetNoOfElements() < 5000: case r.ringBuffer.GetNoOfElements() < 2:
delay++ delay++
time.Sleep(time.Duration(delay) * time.Millisecond) time.Sleep(time.Duration(delay) * time.Millisecond)
case delay > 0: case delay > 0:
@ -461,8 +461,8 @@ func (r *revidInst) setupInputForRaspivid() error {
"-o", "-", "-o", "-",
"-n", "-n",
"-t", r.config.Timeout, "-t", r.config.Timeout,
"-b", r.config.Bitrate, "-b", 10000,
"-qp", r.config.Quantization, //"-qp", r.config.Quantization,
"-w", r.config.Width, "-w", r.config.Width,
"-h", r.config.Height, "-h", r.config.Height,
"-fps", r.config.FrameRate, "-fps", r.config.FrameRate,