mirror of https://bitbucket.org/ausocean/av.git
revid/revid.go adding info messages
This commit is contained in:
parent
04b7a79055
commit
492e5025de
|
@ -210,6 +210,7 @@ func (r *Revid) reset(c config.Config) error {
|
||||||
st = mts.EncodeMJPEG
|
st = mts.EncodeMJPEG
|
||||||
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
|
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
|
||||||
r.cfg.CBR = true
|
r.cfg.CBR = true
|
||||||
|
r.cfg.Logger.Log(logger.Info, "codec set to mjpeg", "CBR", r.cfg.CBR)
|
||||||
default:
|
default:
|
||||||
panic("unknown input codec for raspivid input")
|
panic("unknown input codec for raspivid input")
|
||||||
}
|
}
|
||||||
|
@ -221,6 +222,7 @@ func (r *Revid) reset(c config.Config) error {
|
||||||
st = mts.EncodeMJPEG
|
st = mts.EncodeMJPEG
|
||||||
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
|
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
|
||||||
r.cfg.CBR = true
|
r.cfg.CBR = true
|
||||||
|
r.cfg.Logger.Log(logger.Info, "codec set to mjpeg", "CBR", r.cfg.CBR)
|
||||||
default:
|
default:
|
||||||
panic("unknown input codec for v4l or input file input")
|
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
|
st = mts.EncodeMJPEG
|
||||||
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
|
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
|
||||||
r.cfg.CBR = true
|
r.cfg.CBR = true
|
||||||
|
r.cfg.Logger.Log(logger.Info, "codec set to mjpeg", "CBR", r.cfg.CBR)
|
||||||
default:
|
default:
|
||||||
panic("unknown input codec for RTSP input")
|
panic("unknown input codec for RTSP input")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue