| Previous | Next |
| VFW_E_OUT_OF_VIDEO_MEMORY | VFW_E_DDRAW_CAPS_NOT_SUITABLE |
VFW_E_VP_NEGOTIATION_FAILED
Exact result and bit fields
VFW_E_VP_NEGOTIATION_FAILED has the unsigned HRESULT value 2147746418 (0x80040272) and the signed 32-bit representation -2147220878. AllStat describes it as “The VideoPort connection negotiation process has failed”. In the operation that produces this result, the Overlay Mixer and video-port path cannot agree on the hardware transport, surface or format needed for a VideoPort connection.
The high bit is set, so this value is a failure HRESULT. Its facility field is 4 (FACILITY_ITF) and its low code is 626 (0x0272). These fields classify this result, but they do not identify which filter, thread, device, file or graph generation returned it.
Contract boundary
This result is tied to a legacy rendering or graphics-capability boundary. The result should be diagnosed from the selected renderer, adapter, driver, surface contract and graph topology rather than from the file extension alone.
The practical owner to locate for it is the renderer, graphics driver, display connection and negotiated surfaces. When handling this result, capture the native result before a wrapper replaces it with a generic exception, and keep the graph generation or object identity with the record.
Evidence worth preserving
Log the interface and method, filter CLSID and friendly name, process and thread, graph state, connected pin names, media-type summary, renderer or device identity where relevant, and the first preceding HRESULT. Record lengths and hashes instead of raw content when the incident includes display identifiers, protected-content state, driver details and media paths.
- Evidence 1 for it: IVPConfig or related capability exchange.
- Evidence 2 for it: source format, destination surface and connection index.
- Evidence 3 for it: graphics driver version and negotiation step that failed.
Conditions that can produce it
- Cause 1 for it: capture or decoder hardware advertises incompatible video-port capabilities.
- Cause 2 for it: the display driver rejects the requested connection parameters.
- Cause 3 for it: format or surface changes occur during negotiation.
Step-by-step diagnosis
- Capture it at the first native return, not only at the top-level playback failure.
- identify the exact graph stage described here: the Overlay Mixer and video-port path cannot agree on the hardware transport, surface or format needed for a VideoPort connection.
- compare the live object state, topology and input with the documented interface preconditions.
- Before changing filters, drivers, registry data or media for it, collect the code-specific evidence below.
- Test one evidence-backed the correction on the smallest reproducible graph.
- Verify that the corrected run no longer returns it and does not merely replace it with a nearby HRESULT.
Retry and recovery
Retry rule for it: Retry after a real capability or topology change; repeated negotiation with the same hardware tuple is deterministic. A safe it retry must use a changed capability, state, object generation or input. While recovering from it, preserve cancellation and avoid replaying side effects when the original operation may have partially completed.
Correction strategy
- Action 1 for it: select a compatible transport or renderer.
- Action 2 for it: rebuild the graph after stabilizing the video format.
- Action 3 for it: avoid forcing VideoPort use when a memory-based path is available.
Example incident
An analog capture device exposes a video port that the current display driver cannot bind to the Overlay Mixer; choosing a memory-delivery capture path avoids it. This example keeps the diagnosis at the specific the boundary instead of treating every DirectShow failure as a codec reinstall problem.
Implementation notes
Code that handles it should preserve the original HRESULT, the failed stage and an opaque correlation identifier. After it, do not infer success from partial graph construction, and do not continue using interfaces retained from a graph or device generation that has already changed.
Operational remediation for it should favor supported component installation, device configuration and documented DirectShow calls. Manual registry or driver changes are appropriate only when the collected evidence for it points to that layer and a rollback is available.
How it differs from nearby results
VFW_E_NO_VP_HARDWARE means no usable VideoPort hardware exists, whereas it means hardware was found but the connection contract failed. Keep those cases separate in telemetry, UI messages and retry policy because their next actions are different.
Official Microsoft references
- Microsoft: DirectShow error and success codes
- Microsoft: video rendering in DirectShow
- Microsoft: DirectShow filters and pins
Looking for a different code? Search another status or error code.