| Previous | Next |
| MF_E_HW_STREAM_NOT_CONNECTED | MF_E_CAPTURE_SINK_OUTPUT_NOT_SET |
MF_E_NO_CAPTURE_DEVICES_AVAILABLE
MF_E_NO_CAPTURE_DEVICES_AVAILABLE is tied to Capture Engine device selection. During IMFCaptureEngine::Initialize, Media Foundation can select default devices when the caller does not supply explicit audio or video sources; this HRESULT reports that no usable capture device is available for that initialization path.
Diagnose device selection before sink setup
- Record whether
pAudioSourceandpVideoSourcewere supplied or leftNULL. - Record the
MF_CAPTURE_ENGINE_USE_AUDIO_DEVICE_ONLYandMF_CAPTURE_ENGINE_USE_VIDEO_DEVICE_ONLYattributes, because they change which device class the engine attempts to use. - Enumerate capture devices separately and keep the device activation identity in the log.
Do not start by changing an encoder or output container. The capture sink is configured after the engine has a source. If initialization cannot obtain a capture device, recording and photo configuration are downstream of the real failure.
Microsoft: IMFCaptureEngine::Initialize · Microsoft: Capture Engine attributes · Microsoft CaptureEngine sample source
Looking for a different code? Search another status or error code.