mirror of https://bitbucket.org/ausocean/av.git
revid: add old webcam starting code and renamed func to LinuxWebcam considering this will only work on linux
This commit is contained in:
parent
5b73c2c2ba
commit
fd3c4010e4
|
@ -498,7 +498,7 @@ func (r *Revid) startRaspivid() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Revid) startWebcam() error {
|
func (r *Revid) LinuxWebcam() error {
|
||||||
r.config.Logger.Log(smartlogger.Info, pkg+"starting webcam")
|
r.config.Logger.Log(smartlogger.Info, pkg+"starting webcam")
|
||||||
r.cmd = exec.Command("ffmpeg", []string{
|
r.cmd = exec.Command("ffmpeg", []string{
|
||||||
"-i", "/dev/video0",
|
"-i", "/dev/video0",
|
||||||
|
|
Loading…
Reference in New Issue