From a0d7681d5f7083642451c1ee6896c079d30f280f Mon Sep 17 00:00:00 2001 From: saxon Date: Sun, 13 Jan 2019 20:52:09 +1030 Subject: [PATCH] revid: not wrapping webcam args in string to pass to func --- revid/revid.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index d60d0675..4309e6b4 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -479,11 +479,7 @@ func (r *Revid) startRaspivid() error { func (r *Revid) startWebcam() error { r.config.Logger.Log(logger.Info, pkg+"starting webcam") - r.cmd = exec.Command("ffmpeg", []string{ - "-i", "/dev/video0", - "-r", "25", - "-f", "h264", "-", - }...) + r.cmd = exec.Command("ffmpeg", "-i", "/dev/video0", "-r", "25", "-f", "h264", "-") delay := time.Second / time.Duration(r.config.FrameRate) stdout, err := r.cmd.StdoutPipe()