Search code examples
windowswebcam

How to query a webcam's output formats?


How do I query a webcam's output capabilities (e.g. resolution, fps, codec) under Windows? I am okay doing this either programmatic or using a standalone application.


Solution

  • Using DirectShow API you enumerate capabilities and media types on the camera filter output pin. This covers resolutions and pixel formats (codecs). This normally does not cover frame rates that might be additionally available via IAMVideoControl::GetFrameRateList.

    See also: