USB Webcam 4x Logitech HD270 won't work as expected
Hi,
I use a Fujitsu S740 with Celeron 4105 for my Prusa farm.
Before I switched from a Pi4 4GB I could map all cams over the usb-selection on the bottom of the webcam menu.
now.... I can only use the streams.
I use a Fujitsu S740 with Celeron 4105 for my Prusa farm.
Before I switched from a Pi4 4GB I could map all cams over the usb-selection on the bottom of the webcam menu.
now.... I can only use the streams.
root 10179 0.2 0.3 390384 12572 ? Sl 18:34 0:01 /usr/local/bin/mjpg_streamer -i /usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video0 --fps 10 -q 85 -r 1280x960 -o /usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www -b
root 10203 0.0 0.3 309420 12408 ? Sl 18:34 0:00 /usr/local/bin/mjpg_streamer -i /usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video4 --fps 10 -q 85 -r 1280x960 -o /usr/local/lib/mjpg-streamer/output_http.so -p 8081 -w /usr/local/share/mjpg-streamer/www -b
root 10227 0.0 0.3 309420 12572 ? Sl 18:34 0:00 /usr/local/bin/mjpg_streamer -i /usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video2 --fps 10 -q 85 -r 1280x960 -o /usr/local/lib/mjpg-streamer/output_http.so -p 8082 -w /usr/local/share/mjpg-streamer/www -b
root 10251 0.0 0.3 309420 12340 ? Sl 18:34 0:00 /usr/local/bin/mjpg_streamer -i /usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video6 --fps 10 -q 85 -r 1280x960 -o /usr/local/lib/mjpg-streamer/output_http.so -p 8083 -w /usr/local/share/mjpg-streamer/www -b
root 10722 0.0 0.0 6476 2236 pts/0 S+ 18:47 0:00 grep --color=auto mjpg
the only functional stream is on 8080 all other streams are malfunctioning.
Where is my fault?
the only functional stream is on 8080 all other streams are malfunctioning.
Where is my fault?
Comments
Does this mean, I need more power for the USB-Cams?
That means usb bandwidth is exceeded. I wonder why since this webcam supports the better compressed MJPG format. I know yuyv raw format can only handle one webcam due to high bandwidth. Is this a usb 2.0 USB Port?
You might use 640x480 wirg 5hz in server settings and restart webcams. That reduces bandwidth and should work. Once it works you can try increasing resolution of framerate to see when it starts failing. Leave some margin so printer communication does not get out of bandwidth. You canm also try using other usb ports so a different usb driver is used and not all webcams use 1-8 as path.
lsusb -t
shows a tree on how cams are connected over external or internal usb hubs.
in the past I used this setup on the raspberry pi 4 with some faults on printing.
Now I want to switch it like this.
1st usb 3.0 port with usb hub 3.1 and two c270
2nd usb 3.0 port with usb hub 3.1 and two c270
Then on USB2 Port, with USB3 hub the 4 Prusa Printers. This should solve it.
What do you think about?
If you have a lower usb speed closer to cpu the speed is definitvely throttled. So usb2 port means speed is max. 480M even for usb 3 hub. You need usb 3 hub on usb 3 port to allow more throughput.
A bit confused from usb tree. There I see 2 hubs with 4 webcams each. At least I assume uvcvideo means it is a webcam. I also see there are 2 3.x ports with 5000M speed unused and 2 ports with 480M speed are used by webcams.
I haven't tested this, but usb 3 hub on usb 3 port should have no issues with 4 usb 2 webcams. Except it switches downstream to usb 2 to adjust to lowest device speed, but I think it converts the incoming data to output speed.