free5lot / Camera_Net

A .NET library for Camera easy use via DirectShow
GNU Lesser General Public License v3.0
147 stars 76 forks source link

Unable to set Frame rate #15

Open digitalprojections opened 5 years ago

digitalprojections commented 5 years ago

For the last two days, I have searched all over the library, but was unable to find a way to set the frame rate. I believe this library is the best fit for my 4 camera project, but I need to have a way to control the frame rate of the cameras. How can I do that?

digitalprojections commented 5 years ago

I also could not find and reference to framerate being set or got in Camera.cs either. There is a mention of it being set in a certain place (Camera.cs line 971), but actually there is no any action of the sort. I have just started using C# and C++. I need your help. Please, let me know what I can do to set framerate.

free5lot commented 5 years ago

Unfortunately, the library does not cover every option and feature that DirectShow provides. I advise to look up how to set or change frame rate in DirectShow, check for your device and and modify the library. If you succeed you may even provide PR to the project (do not forget about the license).

digitalprojections commented 5 years ago

Thank you for your response. I see. I am in fact planning to add the features and contribute. I will do my best. But what about the license? Do you mean the license for my part? What is your suggestion? I have no idea.

free5lot commented 5 years ago

Nice to hear, thanks! About the license - it's LGPL:

The license allows developers and companies to use and integrate a software component released under the LGPL into their own (even proprietary) software without being required by the terms of a strong copyleft license to release the source code of their own components. However, any developer who modifies an LGPL-covered component is required to make their modified version available under the same LGPL license.

So, either Pull Request is kind of required (I would recommend it, it's easier) or the modified version should be published somewhere. More information: https://en.wikipedia.org/wiki/LGPL