From b9df8e388a6187ac7d9bc63b5736e140dcea9a10 Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Fri, 3 Jan 2020 16:47:38 +1030 Subject: [PATCH] all mjpeg input codecs will have constant bitrate, as variable bitrate is only for h264 --- revid/revid.go | 1 + 1 file changed, 1 insertion(+) diff --git a/revid/revid.go b/revid/revid.go index 756a51b0..c74cfce5 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -219,6 +219,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 v4l or input file input") }