Merged in jpeg-rate (pull request #456)

revid: add rate using timelapse interval for JPEG

Approved-by: Saxon Milton
This commit is contained in:
Trek Hopton 2021-02-22 04:59:04 +00:00
commit 2e16ca3b59
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ func (r *Revid) reset(c config.Config) error {
r.cfg.CBR = true r.cfg.CBR = true
case codecutil.JPEG: case codecutil.JPEG:
st = mts.EncodeJPEG st = mts.EncodeJPEG
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second)) encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second), mts.Rate(1/r.cfg.TimelapseInterval.Seconds()))
r.cfg.CBR = true r.cfg.CBR = true
case codecutil.PCM, codecutil.ADPCM: case codecutil.PCM, codecutil.ADPCM:
return nil, fmt.Errorf("invalid input codec: %v for input: %v", r.cfg.InputCodec, r.cfg.Input) return nil, fmt.Errorf("invalid input codec: %v for input: %v", r.cfg.InputCodec, r.cfg.Input)