Site icon EfmSoft

What does HRESULT 0xC00D1B6B (NS_E_VIDSOURCESIZE) mean?

 
Previous Next
NS_E_VIDSOURCECOMPRESSION NS_E_ICMQUERYFORMAT

NS_E_VIDSOURCESIZE

Where the Encoder produces this result

0xC00D1B6B (NS_E_VIDSOURCESIZE) identifies negotiation of live capture width and height with the source device. The important diagnostic boundary is the Encoder object that validates this state; a later “cannot start encoding” dialog can hide that more precise origin.

A live video source passes through device opening, capture-format negotiation, optional clipping and preview-window setup before an encoder codec accepts the frames in a session that returns this result. Width, height, pixel format and driver state belong to this boundary at the vidsourcesize checkpoint.

What has already succeeded

Seeing a device in enumeration or obtaining a preview frame does not establish that the requested capture format can be delivered continuously to the encoder in a session that returns this result. In a representative vidsourcesize case, the profile asks a capture card for a nonstandard dimension it cannot produce. The result observation should be tested at the producing object instead of being treated as a general codec or operating-system failure.

State snapshot to capture

FieldWhat to preserve
Decisive valuesrequested Width/Height after clipping, native size list, stride/alignment and driver result
Producing objectdevice moniker, driver version, requested and native width/height, frame rate, BITMAPINFOHEADER compression and bit depth, preview state, source-plug-in result and first driver error
Session correlationthe same source-group generation, audience index, object identity and callback sequence that produced this result
Lower-level evidencethe first COM, driver, file-system or codec HRESULT observed before the Encoder mapped the condition to this result
Controlled comparisona known-good session that changes only the setting named in the vidsourcesize boundary

How to read the next observation

ObservationHow to interpret it
Observation that supports itThe decisive evidence is requested Width/Height after clipping, native size list, stride/alignment and driver result. It confirms negotiation of live capture width and height with the source device in the same object generation.
Observation that points to an earlier failureThe recorded values satisfy the vidsourcesize rule, but a source, driver, COM activation or file operation returns a different HRESULT first.
Observation that points to a later failureThe Encoder passes this boundary (negotiation of live capture width and height with the source device), but a codec, archive or broadcast sink then fails in a subsequent stage.
Verification after correctionApply this isolated change: use a size advertised by the device or capture natively and resize downstream. The original vidsourcesize call should then advance past the same checkpoint.

The operational impact of it is limited to the video capture and compressor negotiation transition that owns negotiation of live capture width and height with the source device. In the representative case where the profile asks a capture card for a nonstandard dimension it cannot produce, keep the first failing call and its object identity so a later wrapper cannot replace the vidsourcesize evidence.

A controlled diagnostic sequence

  1. Record 0xC00D1B6B, it, the Encoder version and the exact API call or property access that returned it.
  2. Export the current .wme or .prx configuration, then capture requested Width/Height after clipping, native size list, stride/alignment and driver result.
  3. verify the video capture and compressor negotiation precondition without changing the source, profile and output sink at the same time.
  4. Run one controlled comparison in which only this condition changes: use a size advertised by the device or capture natively and resize downstream.
  5. After the change, recreate the affected Encoder object rather than assuming the existing graph discarded its earlier vidsourcesize state.

Nearby HRESULTs that mean something else

ResultWhy it is a different boundary
NS_E_VIDSOURCECOMPRESSIONagreement on output compression or color depth from the video source
NS_E_ICMQUERYFORMATquerying a Video for Windows compressor for an acceptable output format
NS_E_VIDCAPSTARTFAILEDtransition of the configured video capture graph into streaming state

Corrective action at the right layer

The focused correction is to use a size advertised by the device or capture natively and resize downstream. A retry is useful only after the recorded vidsourcesize precondition changes.

Do not keep retrying an unstable capture driver in the same process after preserving the first error; close the graph and test one known-native format in a fresh process in a session that returns it.

Technical references


Looking for a different code? Search another status or error code.

Exit mobile version