Changing raspivid command

This commit is contained in:
Saxon1 2018-05-03 13:34:20 +09:30
parent a67a7cea7d
commit ea0ee8fc08
1 changed files with 5 additions and 5 deletions

View File

@ -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,
)
}