| Previous | Next |
| NS_E_DEVICECONTROL_UNSTABLE | NS_E_AUDIENCE__LANGUAGE_CONTENTTYPE_MISMATCH |
NS_E_INVALID_PIXEL_ASPECT_RATIO
The failing boundary in the Encoder object model
The useful reading of NS_E_INVALID_PIXEL_ASPECT_RATIO (0xC00D1BE2) is not merely the standard message shown above. It locates pixel-aspect-ratio numerator or denominator falls outside the Encoder's accepted range inside video stream and audience settings.
The video profile selects a codec and rate-control mode, then supplies bitrate, peak rate, frame rate, frame size, key-frame spacing, quality, buffer and optional interlace or pixel-aspect settings in a session that returns this result. The codec validates both values and combinations.
Evidence that separates this code from a wrapper error
A source preview does not prove that the output profile is accepted; output dimensions and rate-control settings are validated by the selected encoder codec in a session that returns this result. For example, a large reduced-unfriendly ratio is written without normalization. Preserve the result distinction before a UI layer converts the result into a broad start, capture or profile failure.
| Field | What to preserve |
|---|---|
| Decisive values | PixelAspectRatioX/Y values, source dimensions and non-square-pixel mode |
| Producing object | audience index, codec FOURCC/index, VBR mode, width and height, frame rate, average and peak bitrate, buffer values, key-frame interval, quality values, interlace mode and pixel aspect ratio |
| Session correlation | the same source-group generation, audience index, object identity and callback sequence that produced this result |
| Lower-level evidence | the first COM, driver, file-system or codec HRESULT observed before the Encoder mapped the condition to this result |
| Controlled comparison | a known-good session that changes only the setting named in the invalid pixel aspect ratio boundary |
Interpret the next measurement
| Observation | How to interpret it |
|---|---|
| Observation that supports it | The decisive evidence is PixelAspectRatioX/Y values, source dimensions and non-square-pixel mode. It confirms pixel-aspect-ratio numerator or denominator falls outside the Encoder's accepted range in the same object generation. |
| Observation that points to an earlier failure | The recorded values satisfy the invalid pixel aspect ratio rule, but a source, driver, COM activation or file operation returns a different HRESULT first. |
| Observation that points to a later failure | The Encoder passes this boundary (pixel-aspect-ratio numerator or denominator falls outside the Encoder's accepted range), but a codec, archive or broadcast sink then fails in a subsequent stage. |
| Verification after correction | Apply this isolated change: set each ratio component within 1 through 255 and preserve the intended display aspect. The original invalid pixel aspect ratio call should then advance past the same checkpoint. |
The operational impact of it is limited to the video stream and audience settings transition that owns pixel-aspect-ratio numerator or denominator falls outside the Encoder's accepted range. In the representative case where a large reduced-unfriendly ratio is written without normalization, keep the first failing call and its object identity so a later wrapper cannot replace the invalid pixel aspect ratio evidence.
Test the condition without rewriting the session
- Record
0xC00D1BE2, it, the Encoder version and the exact API call or property access that returned it. - Export the current
.wmeor.prxconfiguration, then capture PixelAspectRatioX/Y values, source dimensions and non-square-pixel mode. - verify the video stream and audience settings precondition without changing the source, profile and output sink at the same time.
- Run one controlled comparison in which only this condition changes: set each ratio component within 1 through 255 and preserve the intended display aspect.
- After the change, recreate the affected Encoder object rather than assuming the existing graph discarded its earlier invalid pixel aspect ratio state.
Interpret neighboring results carefully
| Result | Why it is a different boundary |
|---|---|
NS_E_INVALID_INTERLACEMODE | selected codec does not support the requested interlace-preservation mode |
NS_E_INVALID_VIDEO_WIDTH_FOR_INTERLACED_ENCODING | interlace-preserving output width is not a multiple of four |
NS_E_SAME_AS_INPUT_COMBINATION | audiences mix same-as-input sizing with explicit width and height in one profile |
Resolution and verification
The direct repair for this occurrence is to set each ratio component within 1 through 255 and preserve the intended display aspect. Recreate the affected source group, profile or output object, repeat the same operation, and confirm that the first failing HRESULT no longer comes from the invalid pixel aspect ratio checkpoint.
Do not rely on the UI label alone; record the numeric profile fields and codec identity before changing presets in a session that returns it.
References for the boundary
- Selecting a video codec for an audience.
- IWMEncProfile2.VBRMode.
- IWMEncVideoSource2.Width and live capture sizing.
- Non-square pixel mode in an encoder profile.
Looking for a different code? Search another status or error code.
