0
  1. 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
  1. Also, when I unplug the USB cam from RPi4, it doesn't delete the 'video0' from /dev/video*

  2. 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?

12
  • have you tried using sudo - perhaps it's a simple permission issue. Also, add the result of lsusb to your question, perhaps the USB device isn't fully supported
    – Bravo
    Nov 15, 2021 at 3:54
  • yes, tried with 'sudo' too but same error. Updated question with lsusb result.
    – Emlinux
    Nov 15, 2021 at 5:06
  • so, it isn't even recognised as an USB device
    – Bravo
    Nov 15, 2021 at 6:25
  • yes, seems. but then its strange that its well detected at windows pc 'camera' app but not on RPi4.
    – Emlinux
    Nov 15, 2021 at 6:34
  • @Bravo Not sure, but does it make any sense...(when i plug-in usb to RPi4) raspberrypi kernel: [ 761.729856] usb 1-1-port1: attempt power cycle
    – Emlinux
    Nov 15, 2021 at 6:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.