mirror of https://bitbucket.org/ausocean/av.git
all mjpeg input codecs will have constant bitrate, as variable bitrate is only for h264
This commit is contained in:
parent
5a2a5496bb
commit
b9df8e388a
|
@ -219,6 +219,7 @@ func (r *Revid) reset(c config.Config) error {
|
||||||
case codecutil.MJPEG:
|
case codecutil.MJPEG:
|
||||||
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
|
||||||
default:
|
default:
|
||||||
panic("unknown input codec for v4l or input file input")
|
panic("unknown input codec for v4l or input file input")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue