raspberrypi / firmware

This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
5.15k stars 1.68k forks source link

USB webcam Raspberry Pi 4 #1282

Open SalvatoreAD opened 4 years ago

SalvatoreAD commented 4 years ago

I have a problem with the USB webcam. I installed cheese. as soon as the application starts, the webcam appears jerky and it blocks mouse and keyboard.

I have installed the latest firmware available via rpi-update.

The problem also presents itself by going to a site via chromium to test the webcam.

Can you help me?

Thanks.

Raspberry Pi 4 - 4gb ram Raspian Buster Usb HD720p webcam (trust)

timg236 commented 4 years ago

USB webcams aren't part of the firmware. Try posting on the Raspberry Pi General forums to see if other users have encountered similar issues

https://www.raspberrypi.org/forums/viewforum.php?f=63&sid=2f85f3a3ecaf1299cd940524a61679e2

SalvatoreAD commented 4 years ago

it could be a firmware problem because a friend of mine has the same problem. as soon as the operating system was installed the webcam worked, after updating the firmware it no longer works

P33M commented 4 years ago

How did you "update the firmware"? Edit: was it via rpi-update or apt update?

SalvatoreAD commented 4 years ago

yes both commands

pi@raspberrypi:~ $ vcgencmd version Sep 24 2019 17:34:30 Copyright (c) 2012 Broadcom version cd3add54955f8fa065b414d8fc07c525e7ddffc8 (clean) (release) (start)

pi@raspberrypi:~ $ cat /boot/.firmware_revision 63c1855a491efa4c42d7889065d17af7dd6c51db

This is kernel

pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

Engineer2Designer commented 4 years ago

is YUYv422 bug. on V4l2 you can try qv4l sudo apt install qv4l2

in MJPG(Motion-JPEG) is OK.

gam3t3chelectronicshobbyhouse commented 4 years ago

Receiving the same issue was able to use the camera prior to my firmware update but now doing the same thing. Attempted the suggestion above but still not resolved. Will play around more with it but if anyone has resolved this that wants to drop a few cents in would be great.

gam3t3chelectronicshobbyhouse commented 4 years ago

today I tried multiple cameras ran it through opencv and web browser (web streaming worked but not ideal) VLC and a few other programs for fun some lag on opencv but not the worst. Web browser was fine running a webcam server so with multiple cameras and brands being used and software / options done. Wiped the pi and started fresh a few times testing before upgrades and after still no go.

ilyabelkin commented 4 years ago

This may be related to a USB controller firmware issue; please see: https://www.raspberrypi.org/forums/viewtopic.php?p=1490914

Try running the setpci command and if it works, keep the new firmware and add to rc.local. The board temperature is lower and USB devices like Webcams are happier.

#install PCI utilities
sudo apt-get install pciutils
#run on every boot
sudo nano /etc/rc.local
#add the command before exit 0
sudo setpci -s 01:00.0 0xD4.B=0x41
#reboot
sudo reboot
gam3t3chelectronicshobbyhouse commented 4 years ago

This may be related to a USB controller firmware issue; please see: https://www.raspberrypi.org/forums/viewtopic.php?p=1490914

Try running the setpci command and if it works, keep the new firmware and add to rc.local. The board temperature is lower and USB devices like Webcams are happier.

#install PCI utilities
sudo apt-get install pciutils
#run on every boot
sudo nano /etc/rc.local
#add the command before exit 0
sudo setpci -s 01:00.0 0xD4.B=0x41
#reboot
sudo reboot

Funny story I had tried that....So Just now I tried it again.....seems I forgot to to put it before the exit 0 which I thought I had and low and behold this time it all settled down. All is good now thank you ilyabelkin