【问题标题】:Getting RPi-Cam-Web-Interface running让 RPi-Cam-Web-Interface 运行
【发布时间】:2016-12-10 18:09:29
【问题描述】:

我按照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

就像他们在教程中提到的那样。你知道我在这里做错了什么吗?

【问题讨论】:

    标签: camera raspberry-pi raspbian motion


    【解决方案1】:

    解释:是权限问题,RPi接口试图同时使用pi摄像头和其他东西,而其他东西有root权限。

    我之前使用过这个接口将 PiCamera 数据流式传输到网络服务器,并使用 three.js 进行渲染并使其与 vr 兼容。这个 RPi Web 界面让我非常沮丧。但是,我以前也遇到过这个问题。首先,检查您的相机与 pi 的连接。为此,在终端中输入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)(或您遇到的相同错误)。要解决此问题,请关闭终端,打开一个新终端,然后 cd RPi_Web_Interface 然后再次运行 ./RPi_Web_Interface_Installer.sh 选择配置,启用自动启动和摄像头。然后重新启动。当 pi 启动时,立即打开终端 cd RPi_Web_Interface./RPi_Web_Interface_Installer.sh 并检查相机是否已启动(您会知道,因为绿色的已启动消息将在启动选项旁边)。如果未启动,请启动它。如果您收到相同的错误消息,我不知道该告诉您什么。

    【讨论】:

      【解决方案2】:

      有这个确切的错误,所以: 运行 sudo raspi-config 并重新启用相机 - 问题消失了

      【讨论】:

        猜你喜欢
        • 2018-05-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-10-26
        • 2019-11-30
        相关资源
        最近更新 更多