我按照this网站上的教程来运行我的RaspberryPi NoIR-Cam。在启动它之后,我检索到以下错误:
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1: /var/www/html/macros/error_hard.sh: Permission denied
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)这看起来像是权限问题,但我执行了
chmod u+x *.sh就像他们在教程中提到的那样。你知道我做错了什么吗?
发布于 2016-12-14 08:48:10
说明:这是一个权限问题,RPi接口试图与其他设备同时使用pi摄像头,并且其他设备具有根权限。
我以前使用过这个接口将PiCamera数据流式传输到and服务器,并使用three.js渲染它并使其与vr兼容。这个RPi web界面让我很沮丧。但是,我以前也遇到过这个问题。首先,检查你的相机与圆周率的连接。为此,在终端中键入raspistill -t 0。如果出现预览窗口,这不是问题所在,如果没有出现预览窗口,请摆弄连接,然后重试。接下来,如果不起作用,运行./RPi_Cam_Web_Interface_Installer.sh。这应该会显示一个原始的GUI。使用箭头键选择数字4或启动相机。一旦启动,它应该会在旁边显示“已启动”。你可能会在底部得到一条错误消息,上面写着mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) sh: 1: /var/www/html/macros/error_hard.sh: Permission denied mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) (或者和你得到的相同的错误)。要解决此问题,请关闭终端,打开一个新终端,然后再次运行,然后选择configure、enable autostart ./RPi_Web_Interface_Installer.sh camera。然后重新启动。当pi启动时,立即打开终端cd RPi_Web_Interface和./RPi_Web_Interface_Installer.sh并检查相机是否已启动(您将知道,因为绿色的启动消息将位于启动选项旁边)。如果没有启动,就启动它。如果你得到同样的错误信息,我不知道该怎么告诉你。
发布于 2017-03-02 08:43:59
我有这个确切的错误:运行sudo raspi-config并重新启用摄像头-problem就消失了
https://stackoverflow.com/questions/41078652
复制相似问题