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

Video capturing on Mac devices #45

Open
YohDeadfall opened this issue Apr 10, 2023 · 2 comments · May be fixed by #65
Open

Video capturing on Mac devices #45

YohDeadfall opened this issue Apr 10, 2023 · 2 comments · May be fixed by #65
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@YohDeadfall
Copy link

First of all I would like to thank you for the library. It's really great and has very clean API (: I had an almost complete implementation for capturing V4L2 video, but when I found FlashCap, without any doubt removed the results of several days of my work.

There's only thing missed in my opinion which can be supported too - video capturing on Mac devices. There are examples in the official Apple documentation, but using Objective-C, and bindings can be taken from Xamarin (located in Xamarin.Mac).

If there's nothing other urgent in the project I'm working on, I can contribute it in foreseeable future.

@kekyo
Copy link
Owner

kekyo commented Apr 11, 2023

Thanks for trying FlashCap!

I'm not making progress with FlashCap right now due to the following issues with Mac support:.

  • I don't have a Mac and don't understand the architecture 😄
  • (Probably) Need to write native bindings myself.
    • Why: because I want to eliminate references to anything other than .NET BCL from the package dependencies as much as possible. (You can see this by referring to the current FlashCap package dependency list. This makes it completely stress-free, as I don't have to think about the consistency of the package with the environment in which it is installed.)
    • I have briefly considered supporting Android, but for the same reason I don't want to make references to Xamarin packages. So I think the way to achieve this would be to structure it as a P/Invoke call to the C endpoint of the Android NDK. This is the reason why FlashCap is currently P/Invoking VFW, DS, and V4L2 all by itself.

Therefore, if a port to Mac is realized, I would welcome it, but I hope it will follow this policy as much as possible.
In the extreme, if it's too much trouble to write from scratch, you could import and inline only the necessary definitions from the binding library (though in that case you would have to pay attention to the copyright).

I myself have not set any specific project progress in FlashCap, so feel free to do so at any time!

@kekyo kekyo added the enhancement New feature or request label Apr 11, 2023
@YohDeadfall
Copy link
Author

I see your point, and it is close to what we have too. Originally we used OpenCV which works on any platform, but that was a very heavy dependency, so we switched to our own bindings.

Since Xamarin is open source bindings can be copy pasted, surely only required.

Okay, then I will try to implement it and contribute to the project (:

@YohDeadfall YohDeadfall linked a pull request Jun 21, 2023 that will close this issue
@kekyo kekyo pinned this issue Sep 21, 2023
@kekyo kekyo added the help wanted Extra attention is needed label Sep 21, 2023
@kekyo kekyo unpinned this issue Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants