FreeBSD 配置 Webcam

安装软件包

pkg_add -r cuse4bsd-kmod
pkg_add -r webcamd

配置 cuse4bsd

echo '''cuse4bsd_load="YES"''' >> /boot/loader.conf

配置 webcamd

echo '''webcamd_enable="YES"''' >> /etc/rc.conf

重启系统或启动相关服务

shutdown -r now

kldload cuse4bsd
/usr/local/etc/rc.d/webcamd start

增加权限
建议将用户加入 operator 分组,不建议设置权限为 0666 或 0644 !

chmod 0640 /dev/video0

Over!

Leave a Reply

Your email address will not be published. Required fields are marked *