Reputation: 21
I am working on a project in C# using Directshow which mainly focuses on image processing and printing in real time. I have written a code for capturing the images and displaying them in a output window . The code works fine with 4 cameras simultaneously.But the moment I add 5th camera the live feed from the 1st 4 cameras starts to glitch.And when I add 6th Camera the video from all the cameras stops .For my project I need to work with 16 cameras and none of them should have low performance.
I have tried to optimize the graph by making all the graphs at once and then using them for their respective cameras but even then the issue isn't resolved.
I am using this project as reference.
the Live cameras feeds should not glitch since there is more than enough memory and CPU for it to function.
Upvotes: 1
Views: 1159
Reputation: 69642
USB bandwidth is a typical problem with several USB cameras connected simultaneously. That is, it is unlikely to be a CPU or RAM issue.
I doubt you can use 16 at a time (even distributed between USB hosts) and in any event with 16 video inputs you are limited to either low resolution capture or, instead, capture of video encoded on hardware, even with a light encoding like JPEG (a lot or even majority of webcams nowadays offer on-camera M-JPEG encoding).
Upvotes: 3