revid/revid.go Added MOGFilter as Filter option

This commit is contained in:
Scott 2019-12-20 12:10:49 +10:30
parent c4d809be27
commit cbe36f03b0
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
switch r.cfg.FilterMethod {
case config.FilterNoOp:
r.filter = filter.NewNoOp(r.encoders)
case config.FilterMOG:
r.filter = filter.NewMOGFilter(r.encoders, 25, 20, 500, 3, true)
default:
r.filter = filter.NewNoOp(r.encoders)
}