Problem with webcam connected to raspberry pi 4
Hi I have webcam logitech c270 connected to raspberry pi 4 camera is added from camera menu in mainsail but the camera window is black
13 Replies
Did you also edit your webcam.txt in your config folder with your camera info and restart
webcamd
from the web interface?vicious-gold•2y ago
I am with ratos alpha 4 and can’t find webcam.txt ( I didn’t change it)
Ok, you probably need to create it then. Here is what mine looks like https://github.com/jscancella/myKlipperFiles/blob/main/vcore3-webcam.txt
GitHub
myKlipperFiles/vcore3-webcam.txt at main · jscancella/myKlipperFiles
Contribute to jscancella/myKlipperFiles development by creating an account on GitHub.
national-gold•2y ago
Just to note, if you are on the latest RatOS then it uses crowsnest.conf
[cam 1]
mode: mjpg # mjpg/rtsp
port: 8080 # Port
device: /dev/video2 # See Log for available ...
resolution: 640x480 # widthxheight format
max_fps: 15 # If Hardware Supports this it will be forced, ohterwise ignored/coerced.
#custom_flags: # You can run the Stream Services with custom flags.
#v4l2ctl: # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of.
[cam 2]
mode: mjpg # mjpg/rtsp
port: 8081 # Port
device: /dev/video0 # See Log for available ...
resolution: 640x480 # widthxheight format
max_fps: 30 # If Hardware Supports this it will be forced, ohterwise ignored/coerced.
this is how I have 2 cameras connected and workingfair-rose•2y ago
I'm using RatOS 2.0. Can you please explain what i need to have in the crowsnest.conf and where i need to create the file please
See Maverik's comment above. crowsnest.conf goes next to your printer.cfg (same directory).
GitHub
GitHub - mainsail-crew/crowsnest: This Repo contains an Webcam Serv...
This Repo contains an Webcam Service for multiple Cams and Services. - GitHub - mainsail-crew/crowsnest: This Repo contains an Webcam Service for multiple Cams and Services.
I went ahead and added the config buy my camera also still not showing up. Is there another step besides just creating the config file for crownset?
yes, restart the service from the gui
LOL literraly just did that and it work..im such a fool
glad it worked out for you