mirror of https://bitbucket.org/ausocean/av.git
revid: not wrapping webcam args in string to pass to func
This commit is contained in:
parent
fee960ab99
commit
a0d7681d5f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue