RaspberryPiのカメラモジュールでエラーが発生(mmal: mmal_vc_component_enable: failed to enable component: ENOSPC)

公開日時

カメラモジュールのテスト用に↓を実行したところ

raspistill -o test.jpg

↓のエラーが発生した。

mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

買ってまだ少ししか経ってないのにもう壊れたのか!?と少し焦ったが、mjpg-streamerを自動起動するようにしていたため、カメラモジュールがすでに使用中でエラーが発生していただけだった。

mjpg-streamerを止めて再度raspistillを実行したところ問題なく撮影ができた。

参考


Related #raspberry pi

スルーホール用テストワイヤを購入

ピンヘッダなしのRaspberry Piにはんだ付け無しでGPIOが使えるようになった

MLX90640 Thermal Camera

Alexa非対応テレビをAlexa対応にする

基本的な操作は音声のみで完結できるようになって快適

RaspberryPi4のセットアップ続き

swapを消したりlogをtmpfsにしたり

mjpg-streamerを使ってストリーミング配信

自動起動できるようにした