Skip to content

API for device enumeration and their supported video formats#27

Description

@pzoltowski

馃殌 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/

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions