From 04b7a7905584221b64a443922afb979a6f859130 Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Tue, 7 Jan 2020 10:45:45 +1030 Subject: [PATCH] revid/revid.go adding CBR=true for MJPEG encoded video for RaspiVid and RSTP --- revid/revid.go | 2 ++ 1 file changed, 2 insertions(+) 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") }