mirror of https://bitbucket.org/ausocean/av.git
revid: add rate using timelapse interval for JPEG
This commit is contained in:
parent
df614092d2
commit
9589719fb6
|
@ -97,7 +97,7 @@ func (r *Revid) reset(c config.Config) error {
|
|||
r.cfg.CBR = true
|
||||
case codecutil.JPEG:
|
||||
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
|
||||
case codecutil.PCM, codecutil.ADPCM:
|
||||
return nil, fmt.Errorf("invalid input codec: %v for input: %v", r.cfg.InputCodec, r.cfg.Input)
|
||||
|
|
Loading…
Reference in New Issue