-
Notifications
You must be signed in to change notification settings - Fork 662
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
Unable to open video device #2810
Comments
If this helps this was the steps I used to install MotionEye pi Imager enable ssh raspi-config sudo su wget https://github.com/Motion-Project/motion/releases/download/release-4.5.1/pi_buster_motion_4.5.1-1_armhf.deb |
i got the same issue on fresh install |
Yep I was able to replicate the issued on a Pi Zero W as well |
so i don't know if this is the same issue for you guys, but I could see in the logs /var/motioneye/ that I was getting an error that sounded like the camera was already in use. |
I have a similar issue with pi camera 3 noIR, grey preview screen, what I find very confusing on this OS image is that it does not seem to have the most elementary command line commands such as APT or even "shutdown" was not recognized... Is this intentional or did I do something wrong during the install/configuration? The camera is detected and does take manual snapshots but I can't see the images nor the video streaming (timeout on port 8082 I think it was). |
How did you stop the service? I tried using systemctl to get a log but the command was not recognized, same as for APT or even "shutdown", and because there is no apt or apt-get, I couldn't install any of the missing software either. |
Pi zero W thank you for the detailed instructions. I do however face an error: I also notice you install python2 but later install python-pip which I interpret (right or wrong I don't know as I am a beginner with Pi & Linux) as python1. I replaced that with python3-pip and it went ahead with the installation. My doubt at this stage is that the app is probably invoking python and not python3 in some areas, so would everything still work? Everything does fire up with some differences in the interface: no update/reboot/shutdown buttons), however I have the same issue as with the installation image: failed to open device, grey screen. After all was completed, I still have the same issue: the preview window is grey with message cannot open the device, and a still shot capture that exact grey screen. |
This also seems to happen on the current dev branch (python3), when I reboot my Pi with motion enabled it can't open one camera for some reason, as soon as I disable it and reboot it suddenly works again. |
I got as far as attempting to install pip because python2 wasn't installed, and install python2 failed due to missing dependencies and then there was this recommendation: Try 'apt --fix-broken install' with no packages (or specify a solution). but I then got the following error when applying that recommendation: |
well after retrying, it eventually worked, but I now hit a wall with motioneye where I get compilation errors on pillow and the following command does not work: pi@raspberrypi:~ $ sudo apt-get install python-pil -y I installed pillow but the same error persists. Any ideas? |
OK apologies, I had myself confused. I've deleted old posts, this is what I did:
Good luck |
@Solarbytes If you are referring to MotionEyeOS, that is indeed intentional. The image is meant to be a lightweight and compact setup just for running MotionEye on a limited resource device such as the earlier Raspberry Pis or Pi Zeroes, nothing more. For a setup where you want to install other stuff, too, you need to use a Linux distro and install ME separately, such as with the instructions provided by @xXAzazelXx above. |
alas, still no success. I did not run into compilation issues but nevertheless installed the additional packages, rebooted and added 3 different setups of camera/codec and I still get the grey screen with message "unable to open video device". If I take a snapshot, I still get that same grey screen on the output. I did disable motion. at this stage, I'm just thinking that the pi camera 3 is not compatible with old software. |
@xXAzazelXx I just remebered that before I could get the Pi camera 3 to work in a GUI terminal window, I had to specify a tuning file located under /usr/share/libcamera/ipa/rpi/vc4. Could it be that the same issue is preventing the camera from working in the motioneye GUI? Also, even if disabling Motion fixes the issue on a Pi camera 2, doesn't that defeat the purpose of having Motioneye? am I correct in assuming that this would prevent the motion detection to work to trigger recordings? |
Regarding tuning files, I'm not sure I never had to do that. Re Motion, my understanding is that Motioneye runs on its own utilizing Motion's files. If Motion is running by itself and using the camera, Motioneye cant get access. |
Hi, no solutions found after this? |
This is no generic error/bug, but it highly depends on your SBC, camera type/device and OS setup. If your case does not match OP exactly: RPi OS Buster on RPi with RPi camera module v2, please open a new issue. @Slipery I guess also you updated your system in the meantime, using Bullseye or Bookworm, with KMS video stack enabled by default? In this case, one either needs to disable KMS or use libcamerify to work around the fact that motion does not support it. Here is an example systemd unit which does this: #2900 (comment), i.e. the apt install libcamera-tools |
Hi, thanks a lot, its installing, but yes im installing new cams with , with bullseye, rpi zero w and pi camera IR. It gives me a grey screen after install, but i get i to work just after stop motion service at systemctl... |
Ah yes, the PR open for this: #2980 |
Oh thanks, i have strungling with this last days, not found the right info.. but i think at same time motion detection stop work :( motion detection should work right? |
Yes, it should. However, this is an entirely different topic then. |
Raspberry PI 4
Debian Buster Raspbian 10
motionEye Version | 0.42.1
Motion Version | 4.5.1
Camera RASPBERRY PI NOIR CAMERA BOARD V2
Video device is set to
Camera Device /dev/video0
Camera Type V4L2 Camera
I have read elsewhere that I should use Local NMAL camera
but when I try that I get the following error "An error occurred. Refreshing is recommended"
I have been having problems with motion detection so I decided to take a manual snap shot and below is what is seen. However the
image appears reasonable on the ME application
Any help would be appreciated thanking you.
Cheers Mal
The text was updated successfully, but these errors were encountered: