openframeworks / openframeworks/openFrameworks
Implement detection of supported resolutions and fps in ofDirectShowGrabber::listDevices()
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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