From 492e5025debb11c23571c9901300fad58c21cb84 Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Tue, 7 Jan 2020 11:10:04 +1030 Subject: [PATCH] revid/revid.go adding info messages --- revid/revid.go | 3 +++ 1 file changed, 3 insertions(+) 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") }