From cbe36f03b0ca2fc697524ff48afdff4768544c91 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 20 Dec 2019 12:10:49 +1030 Subject: [PATCH] revid/revid.go Added MOGFilter as Filter option --- revid/revid.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/revid/revid.go b/revid/revid.go index cb098bc0..61e3be3e 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -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) }