adding staright to file testing in, need to remove

This commit is contained in:
Ella Pietraroia 2020-01-16 15:57:57 +10:30
parent b0dd41dcf0
commit 61bb0b68f6
1 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"io" "io"
"os"
"os/exec" "os/exec"
"strconv" "strconv"
"strings" "strings"
@ -344,6 +345,15 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
r.encoders = multiWriter(encoders...) 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) l := len(r.cfg.Filters)
r.filters = []filter.Filter{filter.NewNoOp(r.encoders)} r.filters = []filter.Filter{filter.NewNoOp(r.encoders)}
if l != 0 { if l != 0 {