Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AForge.Net VideoCaptureDevice.VideoCapabilities doesn't work. #409

Open
GoogleCodeExporter opened this issue Apr 17, 2016 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Windows 2008/2012 Server with a USB Camera.
2.Visual Studio 2010, using AForge.Video,using Aforge.Video.DirectShow.
3.Code below:

private vode Form_Load(object sender, EventArgs e)
{
 try
 {
 videoDevices= new FilterInfoCollection(FilterCategory.VideoInputDevice);
 foreach(FilterInfo device in videoDevices)
 {
 repositoryItemComboBox.Items.Add(device.Name);
 }
 CameraConn();
 ......
 }
}

private void CameraConn()
{
 if(videoDvices == null) return;
 VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices[SelectedIndex].MonikerString);
videoCapabilities = videoSource.VideoCapabilities;
 ...... 
}
4.videoCapabilities = videoSource.VideoCapabilities;
the videoCapabilities is empty!!!

What is the expected output? What do you see instead?
the videoCapabilities SHOULD BE AN ARRAY.

What version of the product are you using?
AForge.NET Version is 2.2.5.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 30 Jun 2015 at 2:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant