Add fallback for getting device path. #31
No reviewers
Labels
No labels
Bug
Duplicate
Enhancement
Help Wanted
Invalid
Question
Wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-obsproject/libdshowcapture!31
Loading…
Reference in a new issue
No description provided.
Delete branch "dcnieho/devicePath_fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
For various software devices i have, the devicePath remains empty upon
DShow::Device::EnumVideoDevices(). I have implemented a fallback method for getting the devicepath.Motivation and Context
I'd like to have device paths for as many devices, software or hardware, as possible.
How Has This Been Tested?
I have run enumDevices, called from my own application, and devicePaths for software devices are now created.
DShow::Device.SetVideoConfig() also works fine for a software device with this now non-empty path.
Types of changes
Unclear to me, seems to be a new feature.
Checklist:
Are there specific devices where you ran into issues that we could verify with?
I have observed this with two devices, both https://obsproject.com/forum/resources/obs-virtualcam.949/, and the directshow adapter for Basler machine vision cameras (part of their Pylon runtime)--the latter you can't test without having a Basler camera i think. These are both software devices i guess.
Ping on this one. Its also how ffmpeg's dshow gets their device paths
And sorry to canabalize this PR, but i can't post issues to this repo. Is it being considered to re-apply
github.com/obsproject/libdshowcapture@8f2ef910ba? I would love to have this functionality. Anything i can do to help?View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.