I know there are issues with available bandwidth on a single USB root hub - but I've worked out so far that if the driver requests that the stream is sent compressed in mjpeg directly from the camera, there is enough bandwidth on the usb. I have managed this way to get working simultaneously 4 usb webcams on this computer (without additional USB pci cards) at 640x480, 10fps using ffmpeg.
The problem is that I can't manage to do the same with VLC. I am using the following command:
Code: Select all
vlc --no-audio v4l2:///dev/video0:width=640:height=480:fps=5:chroma=mjpeg
Does anybody know a bit more about this? Is VLC really forcing the camera to send the stream in mjpeg, instead of raw? And if yes, why is there still a problem? By the way, if I try to save the with "access=file" in an avi, with no other options, it does save with mjpeg encoding - so it would appear that it is obeying the directive after all.
Could someone who has managed to get more than one webcam going please help out with some tips.
Thanks.