2016-12-10 54 views
2

我按照this網站上的教程,運行我的RaspberryPi NoIR-Cam。啓動它後,我正在檢索以下錯誤:運行RPi-Cam-Web-Interface

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 

就像他們在本教程中提到的。你有什麼想法我在這裏做錯了嗎?

回答

1

說明:這是一個權限問題,RPi接口嘗試同時使用pi攝像頭作爲其他內容,並且其他內容具有root權限。

我之前已經使用此接口將PiCamera數據傳輸到網絡服務器,並使用three.js來渲染它並使其與vr兼容。這個RPi網頁界面對我來說非常令人沮喪。但是,我之前遇到過這個問題。首先,檢查你的相機連接到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,並檢查相機是否啓動(您會知道,因爲綠色啓動消息將在啓動選項旁邊)。如果它沒有啓動,請啓動它。如果你得到相同的錯誤信息,我不知道該告訴你什麼。

1

有了這個確切的錯誤這樣: 跑須藤raspi-config並重新啓用相機 - 問題就走了

+0

完美,工作就像一個魅力。 –