mirror of https://bitbucket.org/ausocean/av.git
revid/revid.go adding CBR=true for MJPEG encoded video for RaspiVid and RSTP
This commit is contained in:
parent
b9df8e388a
commit
04b7a79055
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue