mirror of https://bitbucket.org/ausocean/av.git
constant bitrate
This commit is contained in:
parent
f7b3acb4d6
commit
2eae228d73
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue