AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Maximum number of VideoSource support in aforge player

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Maximum number of VideoSource support in aforge player

Postby DSZ » Thu Sep 05, 2019 5:49 am

I have to play 6 webcam in a single windows form simultaneously . but only 4 among them is working. Is there any limit for videosource to play?

Code: Select all
videoSource1 = new VideoCaptureDevice(videoDevices1);
            videoSourcePlayer1.VideoSource = videoSource1;
            videoSourcePlayer1.Start();
           
            videoSource2 = new VideoCaptureDevice(videoDevices2);
            videoSourcePlayer2.VideoSource = videoSource2;
            videoSourcePlayer2.Start();

            videoSource3 = new VideoCaptureDevice(videoDevices3);
            videoSourcePlayer3.VideoSource = videoSource3;
            videoSourcePlayer3.Start();

            videoSource4 = new VideoCaptureDevice(videoDevices4);
            videoSourcePlayer4.VideoSource = videoSource4;
            videoSourcePlayer4.Start();

            videoSource5 = new VideoCaptureDevice(videoDevices5);
            videoSourcePlayer5.VideoSource = videoSource5;
            videoSourcePlayer5.Start();

            videoSource6 = new VideoCaptureDevice(videoDevices6);
            videoSourcePlayer6.VideoSource = videoSource6;
            videoSourcePlayer6.Start();
         
DSZ
 
Posts: 17
Joined: Mon Feb 25, 2019 7:06 am

Re: Maximum number of VideoSource support in aforge player

Postby andrew.kirillov » Thu Sep 05, 2019 7:14 am

There is no limit. If you have USB cameras, then you may have issues with that. But if you have IP cameras or others, you can have 10 if you like.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3446
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Maximum number of VideoSource support in aforge player

Postby DSZ » Mon Sep 09, 2019 10:48 am

I'm using usb cameras. When setting low resolution from available videocapabilities resolution, some cameras working properly. What are the other methods I can try like setting bandwidth and reduce frame rate etc ?
when setting DesiredFrameRate - shows it is deprecated
DSZ
 
Posts: 17
Joined: Mon Feb 25, 2019 7:06 am

Re: Maximum number of VideoSource support in aforge player

Postby andrew.kirillov » Tue Sep 10, 2019 8:41 pm

DSZ wrote:when setting DesiredFrameRate - shows it is deprecated

DisiredFrameRate was deprecated for a reason. The problem is that you can not just set the frame rate you want. Many USB camera drivers don't allow it all. Some provide support for it, but very limited. For example, some drivers say that for 640x480 resolution default FPS is 30, MIN is 15, MAX is 30. So you may get impression you can set anything between 15 to 30. No! They may accept either 15 or 30, and nothing in between. This confusion is partly caused by DirectShow API, which is generic to cover many different cameras. That API does not allow you to list supported frame rates. Only default, min and max. And all drivers somehow need to fit into that model.

DSZ wrote:What are the other methods I can try

Get proper cameras. Not Logitech or that sort of stuff. But something, which is aimed for proper imaging and computer vision tasks. Those will have their own APIs though.

Just to try, play with CVSandbox for a bit. It does allow you to specify FPS (although driver may not accept - see above). See how many cameras you can get of it.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3446
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to AForge.NET Framework

cron