| Previous | Next |
| NS_E_AUDIO_BITRATE_STEPDOWN | NS_E_INVALID_AUDIO_PEAKRATE_2 |
NS_E_INVALID_AUDIO_PEAKRATE
Where the Encoder produces this result
0xC00D1BBA (NS_E_INVALID_AUDIO_PEAKRATE) identifies audio peak bitrate is outside the codec or mode's valid range. The important diagnostic boundary is the Encoder object that validates this state; a later “cannot start encoding” dialog can hide that more precise origin.
The audio part of an encoder profile combines source format, codec, bitrate mode, average and peak rates, buffer limits and channel layout in a session that returns this result. Multiple audiences impose cross-audience consistency rules in addition to per-field ranges.
What has already succeeded
A codec can be installed and still reject the selected format or bitrate combination; codec presence and profile validity are different tests in a session that returns this result. In a representative invalid audio peakrate case, configuration imports a peak value intended for a different audio codec. 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
| Field | What to preserve |
|---|---|
| Decisive values | codec, VBR mode, average bitrate and requested peak bitrate |
| Producing object | source WAVEFORMATEX, audience index, audio codec and format indexes, VBR mode, average/peak bitrate, buffer size, channel count, language and compatibility target |
| 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 audio peakrate boundary |
How to read the next observation
| Observation | How to interpret it |
|---|---|
| Observation that supports it | The decisive evidence is codec, VBR mode, average bitrate and requested peak bitrate. It confirms audio peak bitrate is outside the codec or mode's valid range in the same object generation. |
| Observation that points to an earlier failure | The recorded values satisfy the invalid audio peakrate 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 (audio peak bitrate is outside the codec or mode's valid range), but a codec, archive or broadcast sink then fails in a subsequent stage. |
| Verification after correction | Apply this isolated change: choose a peak rate accepted by the selected codec and rate-control mode. The original invalid audio peakrate call should then advance past the same checkpoint. |
The operational impact of it is limited to the audio stream and audience settings transition that owns audio peak bitrate is outside the codec or mode's valid range. In the representative case where configuration imports a peak value intended for a different audio codec, keep the first failing call and its object identity so a later wrapper cannot replace the invalid audio peakrate evidence.
A controlled diagnostic sequence
- Record
0xC00D1BBA, it, the Encoder version and the exact API call or property access that returned it. - Export the current
.wmeor.prxconfiguration, then capture codec, VBR mode, average bitrate and requested peak bitrate. - verify the audio 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: choose a peak rate accepted by the selected codec and rate-control mode.
- After the change, recreate the affected Encoder object rather than assuming the existing graph discarded its earlier invalid audio peakrate state.
Nearby HRESULTs that mean something else
| Result | Why it is a different boundary |
|---|---|
NS_E_AUDIO_BITRATE_STEPDOWN | audio bitrate ordering is inconsistent with ascending total audience bitrate |
NS_E_INVALID_AUDIO_PEAKRATE_2 | audio peak bitrate does not exceed the configured average bitrate when constrained VBR requires it |
NS_E_INVALID_VBR_WITH_UNCOMP | VBR mode is combined with an uncompressed audio or video stream |
Corrective action at the right layer
The focused correction is to choose a peak rate accepted by the selected codec and rate-control mode. A retry is useful only after the recorded invalid audio peakrate precondition changes.
Do not substitute a different codec before saving the exact profile values rejected by validation; otherwise the incompatible combination cannot be identified in a session that returns it.
Technical references
- WAVEFORMATEX structure.
- IWMEncProfile2.VBRMode.
- Adding an audience to an encoder profile.
- Choosing an encoding method.
Looking for a different code? Search another status or error code.