Pi 5 USB camera not working
Because of all the updates I've been doing and just wanting the latest and greatest, I got a Pi 5 8Gig, a new LCD and the latest image (V37). Setup was clean and easy this time, other than having to add a few things in startup for the LCD, and everything is working good, except the camera.
I can add a camera and see the installed ports but they are all greyed out and not selectable. I've tried everything I could find on google and some of those things made the camera go away entirely, but I finally got them back, but the camera port is still not selectable. Anything I missed to get the camera selectable?
I can add a camera and see the installed ports but they are all greyed out and not selectable. I've tried everything I could find on google and some of those things made the camera go away entirely, but I finally got them back, but the camera port is still not selectable. Anything I missed to get the camera selectable?
sudo /usr/local/Repetier-Setup/bin/startAllCams
Start from directory /usr/local/Repetier-Setup/bin
Testing for active webcams in /dev/v4l/by-path/*
Best resolution: 640 x 480 at 25
./watchedCam 8080 /dev/video0 25 640x480
Comments
Please see if
ps aux | grep mjpg
shows something like
root 6493 0.1 0.2 28072 8876 pts/5 Sl Feb26 9:01 /usr/local/bin/mjpg_streamer -i /usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video1 --fps 30 -q 85 -r 640x480 -o /usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www
that indicates it is running. And if so call it again after a few seconds to see if first number (pid, here 6493) changes. If so it means the software crashes or stops for some reasons also camera was detected. Check syslog for possible reasons
tail -200 /var/log/syslog
root 24152 0.0 0.0 2392 1648 ? D 10:36 0:00 /usr/local/bin/mjpg_streamer -i /usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video0 --fps 25 -q 85 -r 640x480 -o /usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www
Ran it again and got this:
root 24406 0.0 0.0 2392 1648 ? D 10:37 0:00 /usr/local/bin/mjpg_streamer -i /usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video0 --fps 25 -q 85 -r 640x480 -o /usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www
Thanks again