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 {