openframeworks / openframeworks/openFrameworks

Implement detection of supported resolutions and fps in ofDirectShowGrabber::listDevices()

Open
#6,113 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Hi,
There is no detection for the supported ofVideoFormats in windows.
This is not a bug, it is not implemented at all.
Here's the current related code in ofDirectShowGrabber::listDevices():

        std::vector <std::string> devList = VI.getDeviceList(); 
        
        for(int i = 0; i < devList.size(); i++){
            ofVideoDevice vd; 
            vd.deviceName = devList[i]; 
            vd.id = i;  
            vd.bAvailable = true; 
            // personnal note : no vd.formats = ???
            devices.push_back(vd); 
        }

Perhaps I may help a little if someone want to work on it: https://forum.openframeworks.cc/t/list-available-webcam-resolutions/28420/6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ofDirectShowGrabber::listDevices(), where VI.getDeviceList() creates each ofVideoDevice and currently leaves vd.formats unset. Read the linked forum discussion for context on enumerating webcam capabilities. Done means supported resolutions and frame rates are detected and recorded for each Windows video device.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.