mirror of
https://github.com/motioneye-project/motioneye.git
synced 2026-03-02 22:57:06 -05:00
Add camera does not find the installed and working pi camera #2565
Labels
No labels
Android app
Arch Linux
CI/CD
CSS
FreeBSD
HTML/HTTP
Home Assistant addon
JavaScript
Python
Raspberry Pi
Stale No Activity 60 Days
bug
code format
dependencies
dev branch
docker
documentation
duplicate
enhancement
feature
help wanted
i18n/l10n
invalid
legacy motionEye
meta
motion
motionEyeOS
notourproblem
python update
question
question
security
troubleshooting
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/motioneye#2565
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @newlinac on GitHub (Aug 25, 2024).
I have a Pi3b with a camera installed. I first loaded MotionEye OS and the camera works ok over the web interface. I have then loaded another sd card with the latest Raspian (64bit) and updated it. I installed MotionEye using snap and the web page responds on port 8765, however it says no camera has been selected and can't find one. However rpicam-hello works fine.
Doing lsmod (I am not a unix specialist) there is a bcm2835_v4l2 and other bcm2835* entries, but the web interface shows Local V4L2 Camera - (no cameras)
Can anyone help with this please?
@Martypose commented on GitHub (Aug 26, 2024):
Try these steps to fix the issue with your camera not being detected in MotionEye:
Enable Camera: Make sure the camera is enabled in sudo raspi-config under "Interface Options."
Load Camera Module: Ensure the camera module is loaded by running:
sudo modprobe bcm2835-v4l2
Permissions: Add the motion user to the video group so it has access to the camera:
sudo usermod -aG video motion
Restart MotionEye: Restart the service to apply the changes:
sudo systemctl restart motioneye
@newlinac commented on GitHub (Aug 27, 2024):
Many thanks for your rapid response.
The test fails at the first hurdle - the camera does not appear as an interface. I read somewhere that method is now outdated and the camera is managed by a different system - rpicam, which works fine. I have also read that the new libraries are incompatible with those expected by MotionEye. There is something about it here
https://github.com/raspberrypi/rpicam-apps
Paul
From: Martín @.>
Sent: Monday, August 26, 2024 10:22 PM
To: motioneye-project/motioneye @.>
Cc: newlinac @.>; Author @.>
Subject: Re: [motioneye-project/motioneye] Add camera does not find the installed and working pi camera (Issue #3046)
Try these steps to fix the issue with your camera not being detected in MotionEye:
Enable Camera: Make sure the camera is enabled in sudo raspi-config under "Interface Options."
Load Camera Module: Ensure the camera module is loaded by running:
sudo modprobe bcm2835-v4l2
Permissions: Add the motion user to the video group so it has access to the camera:
sudo usermod -aG video motion
Restart MotionEye: Restart the service to apply the changes:
sudo systemctl restart motioneye
Reply to this email directly, view it on GitHubhttps://github.com/motioneye-project/motioneye/issues/3046#issuecomment-2311120421, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5E54TP2LYNUDKKNT6YIT3ZTOL57AVCNFSM6AAAAABNCWC2YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRGEZDANBSGE.
You are receiving this because you authored the thread.Message ID: @.@.>>
@Martypose commented on GitHub (Aug 27, 2024):
Try running these commands to load the camera module:
sudo apt install -y libcamera-v4l2
echo "bcm2835-v4l2" | sudo tee -a /etc/modules
sudo modprobe bcm2835-v4l2
then restart
I’m not entirely sure what specifically solves the issue, but this and "installing" motion worked for me when I faced a similar problem. Hopefully, it helps in your case too!
Edit: Also check this:
https://github.com/Motion-Project/motion/discussions/1786
@newlinac commented on GitHub (Aug 27, 2024):
Hello Martin please see command responses below, it still does not work - no cameras.
However you mentioned installing motion, how do I do that? Sorry I am not a Unix specialist
Thanks
Paul
From: Martín @.>
Sent: 27 August 2024 14:12
To: motioneye-project/motioneye @.>
Cc: newlinac @.>; Author @.>
Subject: Re: [motioneye-project/motioneye] Add camera does not find the installed and working pi camera (Issue #3046)
Try running these commands to load the camera module:
echo "bcm2835-v4l2" | sudo tee -a /etc/modules
bcm2835-v4l2
sudo modprobe bcm2835-v4l2
no output, gives pi prompt
sudo apt install -y libcamera-v4l2
second time I have done this - it says it is already the newest version (0.3.0+rpt20240616-1)
then restart
I'm not entirely sure what specifically solves the issue, but this and installing motion worked for me when I faced a similar problem. Hopefully, it helps in your case too!
Reply to this email directly, view it on GitHubhttps://github.com/motioneye-project/motioneye/issues/3046#issuecomment-2312524100, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5E54XOPTC5G3ZBGMNLGPLZTR3IJAVCNFSM6AAAAABNCWC2YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSGUZDIMJQGA.
You are receiving this because you authored the thread.Message ID: @.@.>>
@Martypose commented on GitHub (Aug 27, 2024):
Im a noob aswell, just was lucky I guess.
sudo apt-get install motion
sudo usermod -aG video motion
@newlinac commented on GitHub (Aug 28, 2024):
I installed motion as you suggested but still no camera found. Running rpicam-hello works fine.
I installed motioneye from snap, would that make a difference?
From: Martín @.>
Sent: 27 August 2024 20:50
To: motioneye-project/motioneye @.>
Cc: newlinac @.>; Author @.>
Subject: Re: [motioneye-project/motioneye] Add camera does not find the installed and working pi camera (Issue #3046)
Im a noob aswell, just was lucky I guess.
sudo apt-get install motion
sudo usermod -aG video motion
Reply to this email directly, view it on GitHubhttps://github.com/motioneye-project/motioneye/issues/3046#issuecomment-2313383204, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5E54WC5CTUMRX4GVZEL3TZTTKAFAVCNFSM6AAAAABNCWC2YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGM4DGMRQGQ.
You are receiving this because you authored the thread.Message ID: @.@.>>
@newlinac commented on GitHub (Aug 31, 2024):
I tried installing Buster and then MotionEye, but nothing worked.
I upgraded to a Pi4 with bookworm64 and a new Mod 3 camera. Still nothing worked but I found some info in this thread
RPi Camera 3 compatibilityhttps://github.com/motioneye-project/motioneye/issues/2683#top#2683
Author Stepyonhttps://github.com/Stepyon commented on Dec 4, 2023https://github.com/motioneye-project/motioneye/issues/2683#issuecomment-1839689600 that he had found a solution
RaspiOs bookworm 64 bit with raspicam v3 (finally works)
which I am trying to emulate, but I get a syntax error in this command
@.:~ $ sudo sed -i 's//usr/local/bin/meyectl//usr/bin/libcamerify /usr/local/bin/meyectl/' /etc/systemd/system/motioneye.service
sed: -e expression #1, char 8: unknown option to `s'
@.:~ $
I am not a Unix person but I can see that this is trying to make multiple substitutions to a file.
Can you help please?
From: Martín @.>
Sent: 27 August 2024 20:50
To: motioneye-project/motioneye @.>
Cc: newlinac @.>; Author @.>
Subject: Re: [motioneye-project/motioneye] Add camera does not find the installed and working pi camera (Issue #3046)
Im a noob aswell, just was lucky I guess.
sudo apt-get install motion
sudo usermod -aG video motion
Reply to this email directly, view it on GitHubhttps://github.com/motioneye-project/motioneye/issues/3046#issuecomment-2313383204, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5E54WC5CTUMRX4GVZEL3TZTTKAFAVCNFSM6AAAAABNCWC2YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGM4DGMRQGQ.
You are receiving this because you authored the thread.Message ID: @.@.>>
@newlinac commented on GitHub (Sep 2, 2024):
I upgraded to a Pi4 with bookworm64 and a new Mod 3 camera. Still nothing worked but I found some info in this thread below which got the camera to work. However motion detection appears to work but nothing is written to the video store. The log contains a couple of errors.
Has this been seen before?
0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motioneye/motion.conf
[0:motion] [NTC] [ALL] config_camera: Processing camera config file camera-1.conf
[0:motion] [NTC] [ALL] motion_startup: Logging to syslog
[0:motion] [NTC] [ALL] motion_startup: Motion 4.6.0 Started
[0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL)
[0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (WRN)
[0:17:24.922883655] [9262] [1;31mERROR [1;37mIPAModule [1;34mipa_module.cpp:172 [0mSymbol ipaModuleInfo not found
[0:17:24.922970506] [9262] [1;31mERROR [1;37mIPAModule [1;34mipa_module.cpp:292 [0;32mv4l2-compat.so: [0mIPA module has no valid info
[0:17:24.923043949] [9262] [1;32m INFO [1;37mCamera [1;34mcamera_manager.cpp:313 [0mlibcamera v0.3.0+65-6ddd79b5
[0:17:24.970028043] [9263] [1;33m WARN [1;37mRPiSdn [1;34msdn.cpp:40 [0mUsing legacy SDN tuning - please consider moving SDN inside rpi.denoise
RPi Camera 3 compatibility#2683
Author Stepyon commented on Dec 4, 2023
RaspiOs bookworm 64 bit with raspicam v3 (finally works)