最新版Kiauh脚本不再支持MJPG-Streamer的安装,会提示:
Function currently disabled! Sorry!
现在可以使用crowsnest来设置摄像头,安装方法:
cd ~
git clone https://github.com/mainsail-crew/crowsnest.git
cd ~/crowsnestsudo
make install
安装完后,配置crowsnest.conf
[crowsnest]
log_path: ~/printer_data/logs/crowsnest.log
log_level: verbose # Valid Options are quiet/verbose/debug
delete_log: false # Deletes log on every restart, if set to true
[cam 1]
mode: mjpg # mjpg/rtsp
port: 8080 # Port
device: /dev/v4l/by-id/usb-_Webcam_C170-video-index0 # See Log for available …
resolution: 640×480 # widthxheight format
max_fps: 15 # If Hardware Supports this it will be forced, ohterwise ignored/coerced.
custom_flags: # You can run the Stream Services with custom flags.
v4l2ctl: # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of.
大部分内容不需要动,将
device:/dev/video1
修改为:
device: /dev/v4l/by-id/usb-_Webcam_C170-video-index0
其中后面的摄像头设备信息可以从~/printer_data/logs/crowsnest.log中查到,也可以到/dev/v4l/by-id目录中查看。
通过之前正常添加摄像头的方式在Fluidd或Mainsail的设置里添加摄像头就好了。
作者:一淡酷玩 https://www.bilibili.com/read/cv20694536?from=search&spm_id_from=333.337.0.0 出处:bilibili