I am writing a GStreamer application (GStreamer uses DirectShow under the hood on Windows) that captures a computer’s microphone and videocamera. It works fine, but requires me to specify the device names manually. I would like to have my program detect these automatically. Does anyone know how to do that?
I am writing a GStreamer application (GStreamer uses DirectShow under the hood on Windows)
Share
It would surprise me if GStreamer doesn’t have capabilities to enumerate devices, but DirectShow definitely has.
See the article on using the system device enumerator and use it with the correct filter categories – in your case
CLSID_AudioInputDeviceCategoryandCLSID_VideoInputDeviceCategory.