I am trying to set up USb camera with RPi4. It is working well with PC windows10 default 'camera' application but failed with RPi4. I use mjpg-streamer to access the streaming.
/usr/local/bin/mjpg_streamer -i "input_uvc.so -f 15 -r 640x480" -o "output_http.so -w /usr/local/share/mjpg-streamer/www"
error:
MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 15
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
Error opening device /dev/video0: video capture not supported.
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
when plug the USB camera to Rpi4, it shows this log. not sure, this is the cause of not working...
raspberrypi kernel: [ 761.729856] usb 1-1-port1: attempt power cycle
lsusb give me this...
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Also, when I unplug the USB cam from RPi4, it doesn't delete the 'video0' from /dev/video*
When i give 'sudo reboot' it shutdown RPi4 instead of rebooting it. For reboot, i need to power OFF and ON manually. Before camera error it was working well, properly rebooting according to the command but suddenly not.
How should I resolve these issues?
sudo
- perhaps it's a simple permission issue. Also, add the result oflsusb
to your question, perhaps the USB device isn't fully supported