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

API for device enumeration and their supported video formats #27

Open
pzoltowski opened this issue Jul 24, 2024 · 1 comment
Open

API for device enumeration and their supported video formats #27

pzoltowski opened this issue Jul 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@pzoltowski
Copy link

🚀 Feature

Provide API for enumerating camera devices and video formats the support

Motivation & Examples

I'm working on musical app idea that needs to process video stream with lowest latency possible. In native iOS I usually want 640x480 at 120fps with highest Fov. Would great to have option to iterate all devices and their respective formats. Also utility method to choose configuration the closest to requested:

  • camera position (front, back, external, unknown) and
  • width, height or image aspect ratio and
  • fps and
  • fov

with maybe some optional flag what we want to prioritise such as PRIORITY_HIGHEST_FRAMERATE, PRIORITY_HIGHEST_RESOLUTION

Data models could be even basic for now, similar to those at OpenFrameworks:
https://openframeworks.cc///documentation/video/ofVideoDevice/
https://openframeworks.cc///documentation/video/ofVideoFormat/

@pzoltowski pzoltowski added the enhancement New feature or request label Jul 24, 2024
@leapally
Copy link
Contributor

We'll look into that, thanks!

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

No branches or pull requests

2 participants