Open staticanime opened 2 years ago
Took a screen capture of what I'm talking about: https://www.youtube.com/watch?v=zQQ-1460x_M
Yeah the select timeout is the issue if the stream goes down. I'm not sure about the stutter/freeze.
Are you sure the camera is getting enough power etc (e.g unpowered USB hubs). It's possible it's a system setup / hardware issue.
It's currently running directly off the Pi's USB ports, I have the webcam and my 3d printer board plugged in. Don't suppose you know of any way for me to check/confirm power draw to be the issue without buying a (powered) USB hub?
Found a way to check, seems to be requesting the std 500mA from the USB port, which the Pi should be well fit to handle?
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
cannot read device status, Resource temporarily unavailable (11)
Bus 001 Device 005: ID 1d50:614e OpenMoko, Inc. stm32f103xe
MaxPower 100mA
Bus 001 Device 004: ID 046d:085c Logitech, Inc. C922 Pro Stream Webcam
MaxPower 500mA
can't get debug descriptor: Resource temporarily unavailable
Bus 001 Device 006: ID 0424:7800 Microchip Technology, Inc. (formerly SMSC)
MaxPower 2mA
can't get debug descriptor: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Bus 001 Device 003: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
MaxPower 2mA
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
can't get debug descriptor: Resource temporarily unavailable
MaxPower 2mA
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MaxPower 0mA
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable```
Yeah it should be fine as long as the PSU powering the pi is good enough.
Best bet is to verify some other app can capture video correctly for the same amount of time. Because it's likely this is not an mjpg-streamer issue.
@staticanime
Solution: https://github.com/jacksonliam/mjpg-streamer/issues/182#issuecomment-2336583229
Note: This happens both on x86 and Raspberry Pi 3B+, so it is likely to be a kernel-related issue. The above solution works fine on x86. Maybe it also works for Raspberry.
Hi all
I'm having a bit of a strange issue with mjpg-streamer in conjunction with my Logitech C922 USB webcam on a Raspberry Pi 3B+ running Ubuntu 21.10. The "stream" from the webcam will randomly stutter/freeze from a few seconds up to minutes, and will occasionally result in no output at all
Been banging my head against the wall on this one, not sure why it's not working. I'm using the Pi to run Klipper/Mainsail for my 3d printer, and I've installed mjpg-streamer through KIAUH: https://github.com/th33xitus/kiauh
In my webcam.txt file I've specified
camera="usb"
camera_usb_options="-r 1280x720 -f 30 -d /dev/v4l/by-id/usb-046d_C922_Pro_Stream_Webcam_95DE60EF-video-index0"
In the logs, this is what I see
I think the select() timeout is whats tripping me up, but I don't know where to go from here with further diagnostics