From dc33aa37bca55e82250012783658c7c9dbb6937f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 6 Jan 2022 22:35:12 +0100 Subject: [PATCH] add v4l2loopback to comments. --- internal/config/capture.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/config/capture.go b/internal/config/capture.go index b7825054..ce01c7de 100644 --- a/internal/config/capture.go +++ b/internal/config/capture.go @@ -122,6 +122,9 @@ func (Capture) Init(cmd *cobra.Command) error { return err } + // sudo apt install v4l2loopback-dkms v4l2loopback-utils + // sudo apt-get install linux-headers-`uname -r` linux-modules-extra-`uname -r` + // sudo modprobe v4l2loopback exclusive_caps=1 cmd.PersistentFlags().String("capture.webcam.device", "/dev/video0", "v4l2sink device used for webcam") if err := viper.BindPFlag("capture.webcam.device", cmd.PersistentFlags().Lookup("capture.webcam.device")); err != nil { return err