revid/revid.go adding info messages

This commit is contained in:
Ella Pietraroia 2020-01-07 11:10:04 +10:30
parent 04b7a79055
commit 492e5025de
1 changed files with 3 additions and 0 deletions

View File

@ -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")
}