From 61bb0b68f6396c9ca1e0fa84db8472582b50ec45 Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Thu, 16 Jan 2020 15:57:57 +1030 Subject: [PATCH] adding staright to file testing in, need to remove --- revid/revid.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/revid/revid.go b/revid/revid.go index 26abdee3..820d10f7 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -32,6 +32,7 @@ import ( "errors" "fmt" "io" + "os" "os/exec" "strconv" "strings" @@ -344,6 +345,15 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io. r.encoders = multiWriter(encoders...) + // !!! Test code + //r.encoders = multiWriter(encoders...) + f, er := os.Create("vid.mjpeg") + if er != nil { + panic("!!! TEST CODE !!!: file didnt work") + } + r.encoders = f + // !!! Test code + l := len(r.cfg.Filters) r.filters = []filter.Filter{filter.NewNoOp(r.encoders)} if l != 0 {