revid: not wrapping webcam args in string to pass to func

This commit is contained in:
saxon 2019-01-13 20:52:09 +10:30
parent fee960ab99
commit a0d7681d5f
1 changed files with 1 additions and 5 deletions

View File

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