diff --git a/revid/revid.go b/revid/revid.go index c74cfce5..75a3f23f 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -209,6 +209,7 @@ func (r *Revid) reset(c config.Config) error { case codecutil.MJPEG: st = mts.EncodeMJPEG encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second)) + r.cfg.CBR = true default: panic("unknown input codec for raspivid input") } @@ -232,6 +233,7 @@ func (r *Revid) reset(c config.Config) error { case codecutil.MJPEG: st = mts.EncodeMJPEG encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second)) + r.cfg.CBR = true default: panic("unknown input codec for RTSP input") }