How to distinguish between video sources using DirectShow in Python?

Viewed 16

I am using a extension I found here: https://github.com/yushulx/python-capture-device-list to generate a list of video sources connected to my computer. I noticed it uses the friendly name to identify the different video sources. Unfortunately, I am going to have many video capture cards with the same friendly name: "USB VIDEO".

I tried regedit to change the friendly name of one of the devices, and in Device Manager, it shows the updated friendly name, but when using that extension it still shows the original friendly name. This must mean that it doesn't use the registry entry to get the friendly name.

The only other identifier I can think to use is the Device Path. This would work, but I cant think of any way to order these in any user friendly way, as this identifier appears to be port dependent, and I will need this to work on multiple machines without changes to the code. I would appreciate any suggestions of alternative solutions. Or, is this the best option?

0 Answers
Related