Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening camera = Unable to open video device #3018

Open
cohen-sydney opened this issue Dec 14, 2023 · 8 comments
Open

Error opening camera = Unable to open video device #3018

cohen-sydney opened this issue Dec 14, 2023 · 8 comments

Comments

@cohen-sydney
Copy link

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:

  • (e.g. USB WiFi adapter)
  • (e.g. External Hard Disk)

None

Log Files

I consider the following log files relevant to this issue:

motioneye-5.log

boot.log

  • (attach e.g. motioneye.log)
  • (attach e.g. boot.log)

thanks for any help.

@cohen-sydney
Copy link
Author

cohen-sydney commented Dec 14, 2023

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
Copy link

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
Copy link
Author

thanks. appreciate the quick reply.

@starbasessd
Copy link

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

@cohen-sydney
Copy link
Author

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

@starbasessd
Copy link

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

@bibiqt40
Copy link

bibiqt40 commented Jan 1, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants