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

'Failed to add a video capture filter.': Value does not fall within the expected range #49

Open
simonallen5 opened this issue Apr 20, 2018 · 6 comments

Comments

@simonallen5
Copy link

As a new c# programmer I am trying to integrate the webcamera control into an existing program. I have )I think) installed all the required bits - and the demo program runs fine on my pc. However I am getting the 'Failed to add a video capture' error when implemented within my own program, with the 'Inner Exception' ArgumentException: Value does not fall within the expected range.

Any help much appreciated!

@jacobbo
Copy link
Owner

jacobbo commented Apr 20, 2018

Hello, here are the sources of demo app:
https://github.com/jacobbo/WebEye/tree/master/WebCameraControl/WPF/WebCameraDemo

@simonallen5
Copy link
Author

Thanks. The demo app works OK though. Are there elements amongst this that I need to copy / install into my other program?

@jacobbo
Copy link
Owner

jacobbo commented Apr 20, 2018

No, the demo app installs all dependencies automatically, you just need to build it. You can use the demo app solution as a starting point for your app.

@simonallen5
Copy link
Author

That's what I thought! I had copied the code elements from the Demo App into my app - it compiles OK but I get the above error on clicking the Start button. I'll try it the other way round - import my code into the Demo App, which is working, and see what happens

@jacobbo
Copy link
Owner

jacobbo commented Apr 20, 2018

If you start a new solution, then you have to add a Nuget package by running the following command in the Nuget console: Install-Package WebEye.Controls.Wpf.WebCameraControl

@simonallen5
Copy link
Author

Yes - did that. I was able to see the dll and put the control into the Toolbox, from where I added it to my form

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

No branches or pull requests

2 participants