Article 529KM Video from two identical USB cameras

Video from two identical USB cameras

by
Pastychomper
from LinuxQuestions.org on (#529KM)
I have a pair of cheap USB cameras, bought six years apart but they look similar and probably have the same chipset. The brand is Tecknet, native resolution 1280x720, and lsusb reports them as ID 058f:3832 Alcor Micro Corp.

If I plug them both into my Slack box, two /dev/videoX devices appear. Using qv4l2 I can select either device and watch its stream. If I use two instances of qv4l2, then all is well until I try to use both cameras at once.
When one camera is running the other gives me a black screen with no error message and dmesg reports uvcvideo: Failed to submit URB 0 (-28). I have to turn off the first stream and restart the second to use the second camera.

The same thing happens if I drop the resolution on both cameras to 640x480, but if I replace one of them with a third webcam of a different brand I can view both cameras' streams at the same time and there doesn't seem to be any lag or frame dropping, so it doesn't look like a bandwidth problem.

Googling for the error, it looks like a few people have had the same problem when using multiple cameras of the same type, but can use two the same, so maybe I was unlucky in my choice of camera.

Using a USB hub or separate ports on the box doesn't make a difference.

This started as a project on an Android device, where I get the same behaviour (but the error is UVC device error! -354). Oddly the third camera isn't supported on Android, maybe they don't bother with gspca any more.

Two questions then:
Is there anything else I can try to make these cameras play nicely together on the same device?
If not, is there a fairly cheap webcam that is known to work nicely as a pair under Android? Or even under desktop Linux?

More detail in case anyone's interested:
The project is a set of poor-man's near-infrared goggles. The idea is to remove the IR filters from a pair of cameras and mount them on the front of a Google Cardboard-type headset, plugged into a 'phone via a USB hub and OTG connector, and either add or carry a beefy IR torch. So far every part works except the second camera, so plan B is a Cyclops version. If I do use two cameras they'll need similar lenses and fields of view, so mixing brands is probably out. By "fairly cheap" I mean less than 20 GBP apiece, and I'd rather have a bit more resolution than 640x480, which rules out the only "stereo" camera I've seen in that price range.latest?d=yIl2AUoC8zA latest?i=YeWRRtvHvpk:oEds3JWQUhU:F7zBnMy latest?i=YeWRRtvHvpk:oEds3JWQUhU:V_sGLiP latest?d=qj6IDK7rITs latest?i=YeWRRtvHvpk:oEds3JWQUhU:gIN9vFwYeWRRtvHvpk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments