diff --git a/revid/revid.go b/revid/revid.go index 75a3f23f..cc5e147b 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -210,6 +210,7 @@ func (r *Revid) reset(c config.Config) error { st = mts.EncodeMJPEG encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second)) r.cfg.CBR = true + r.cfg.Logger.Log(logger.Info, "codec set to mjpeg", "CBR", r.cfg.CBR) default: panic("unknown input codec for raspivid input") } @@ -221,6 +222,7 @@ func (r *Revid) reset(c config.Config) error { st = mts.EncodeMJPEG encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second)) r.cfg.CBR = true + r.cfg.Logger.Log(logger.Info, "codec set to mjpeg", "CBR", r.cfg.CBR) default: panic("unknown input codec for v4l or input file input") } @@ -234,6 +236,7 @@ func (r *Revid) reset(c config.Config) error { st = mts.EncodeMJPEG encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second)) r.cfg.CBR = true + r.cfg.Logger.Log(logger.Info, "codec set to mjpeg", "CBR", r.cfg.CBR) default: panic("unknown input codec for RTSP input") }