motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.89k stars 903 forks source link

Error opening camera = Unable to open video device #3018

Open cohen-sydney opened 11 months ago

cohen-sydney commented 11 months ago

I am getting this error on the connection of the camera. the camera does work I have proved it on the same hardware with libcamera I get a video feed.

Preliminary Docs

I confirm that I have read the CONTRIBUTING guide before opening this issue.

I confirm that I have read the FAQ before opening this issue.

motionEyeOS Version

I am running motionEyeOS version: motionEyeOS 20200606 // 0.42.1 // 4.2.2+gitUNKNOWN

Board Model

Rpi Zero w

I am using the following board/model: (insert your board model here, e.g. Raspberry PI 3B+).

Camera

I am using the following type of camera: V4L2

My camera model is: (insert your camera model, e.g. Logitech C290).

RPI Camera 3 == direct connected to the board via a ribbon

Network Connection

My motionEyeOS unit is connected to the network via: (choose your network connection, e.g. WiFi, Ethernet).

Wifi

Peripherals

I am using the following peripherals that I consider relevant to this issue:

None

Log Files

I consider the following log files relevant to this issue:

motioneye-5.log

boot.log

thanks for any help.

cohen-sydney commented 11 months ago

I ran this command vcgencmd get_camera

supported=1 detected=0

I have used the same hardware, but vanilla Rpi OS and logged into the desktop and ran

libcamera-hello -t 0 --qt-preview --shutter 3000

I got an image on screen.

Question = why does Motioneyeos not detect the camera??

starbasessd commented 11 months ago

Camera V3 is not supported directly in motionEyeOS ( even dev20201026 ) because it was released after the last image was published, and the new devs have not moved forward with a new image. Some people with 'advanced skills' in RaspberryPiOS have had some success in replacing the driver files and kernel and getting it to work. Your best bet if you want to use it with motionEye would be to install RPiOS Buster and then following the instructions here

cohen-sydney commented 11 months ago

thanks. appreciate the quick reply.

starbasessd commented 11 months ago

Be sure to NOT use the latest RPiOS (Bookworm) as it does NOT support Python2 or the needed APIs that motionEye uses...

cohen-sydney commented 11 months ago

Would Bullseye also work?? as that is simple to install from he RPI imager

starbasessd commented 11 months ago

Not if you want to use a Camera V3. USB, Yes. Buster has all the APIs and Python2.7 available.

bibiqt40 commented 11 months ago

Hey @cohen-sydney ,

Did you have any luck with this one? I'm in a similar boat, I got a Raspberry Pi Zero 2 with the v3 Wide Camera plugged in with the adaptor cable.

When I get MotionEyeOS running on the board, the camera always says "Unable to open video device. Were you able to get your set up running?

EDIT: Have since loaded motioneye as a service running Raspbian Buster - I'm unable to create a camera as a MMAL camera. raspistill fails to create the camera object so starting there.

cruz-ctrl0915 commented 9 months ago

I'm in the exact same boat as you @bibiqt40. Any luck so far?