all mjpeg input codecs will have constant bitrate, as variable bitrate is only for h264

This commit is contained in:
Ella Pietraroia 2020-01-03 16:47:38 +10:30
parent 5a2a5496bb
commit b9df8e388a
1 changed files with 1 additions and 0 deletions

View File

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