add v4l2loopback to comments.

This commit is contained in:
Miroslav Šedivý 2022-01-06 22:35:12 +01:00
parent 14a2e698ac
commit dc33aa37bc

View File

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