mirror of https://bitbucket.org/ausocean/av.git
adding staright to file testing in, need to remove
This commit is contained in:
parent
b0dd41dcf0
commit
61bb0b68f6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue