From ea0ee8fc08eed4783fbc36ff3edba798b9fdb985 Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Thu, 3 May 2018 13:34:20 +0930 Subject: [PATCH] Changing raspivid command --- revid/Revid.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/revid/Revid.go b/revid/Revid.go index 51ae3546..6313ba76 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -256,7 +256,7 @@ func (r *revid) Start() { if r.setupOutput != nil { err := r.setupOutput() if err != nil { - r.Log(Error, "Output setup didn't work!") + r.Log(Error, err.Error()) return } } @@ -516,9 +516,9 @@ func (r *revid) setupOutputForLibRtmp() error { err = r.rtmpInst.StartSession() } if err != nil { - return errors.New("Could not establish rtmp connection, check rtmp url!") + return err } - return nil + return err } // setupOutputForFile sets up an output file to output data to @@ -547,7 +547,7 @@ func (r *revid) setupInputForRaspivid() error { "-fps", r.config.FrameRate, "-ih", "-g", r.config.IntraRefreshPeriod, - "-ro", r.config.Rotate, + // "-ro", r.config.Rotate, ) case QuantizationOff: r.cmd = exec.Command("raspivid", @@ -561,7 +561,7 @@ func (r *revid) setupInputForRaspivid() error { "-fps", r.config.FrameRate, "-ih", "-g", r.config.IntraRefreshPeriod, - "-ro", r.config.Rotate, + // "-ro", r.config.Rotate, ) }