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()