mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add v4l2loopback to comments.
This commit is contained in:
parent
14a2e698ac
commit
dc33aa37bc
@ -122,6 +122,9 @@ func (Capture) Init(cmd *cobra.Command) error {
|
|||||||
return err
|
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")
|
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 {
|
if err := viper.BindPFlag("capture.webcam.device", cmd.PersistentFlags().Lookup("capture.webcam.device")); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user