| Previous | Next |
| NS_E_BAD_MARKIN | NS_E_NOMATCHING_MEDIASOURCE |
NS_E_BAD_MARKOUT
Where the Encoder produces this result
0xC00D1B59 (NS_E_BAD_MARKOUT) identifies validation of IWMEncSource.MarkOut against MarkIn and the end of the source. This is an Encoder validation error; a later “cannot start encoding” dialog can hide the original HRESULT.
Windows Media Encoder builds a timeline for every selected source before samples enter the codec. Mark-in, mark-out, repeat and time-compression settings are therefore validated against the source duration and against each other before encoding begins.
What has already succeeded
A file that opens and reports a duration can still fail here because timeline validation happens after source discovery but before the first encoded sample. For example, a replacement input is shorter than the file used when the .wme session was authored. Reproduce the condition at the Encoder object that returned the HRESULT rather than treating it as a general codec or operating-system failure.
A controlled diagnostic sequence
- Record
0xC00D1B59, the Encoder version and the exact API call or property access that returned it. - Export the current
.wmeor.prxconfiguration, then capture raw MarkIn and MarkOut values, detected duration and whether the source duration changed after relinking. - Verify the source timeline and clipping precondition without changing the source, profile and output sink at the same time.
- Run one controlled comparison that changes only the identified precondition: choose a MarkOut later than MarkIn and no later than the actual source duration.
Nearby HRESULTs that mean something else
| Result | Why it differs |
|---|---|
NS_E_BAD_MARKIN | validation of IWMEncSource.MarkIn before the source timeline is committed |
NS_E_SOURCE_CANNOT_LOOP | Repeat is enabled for a source type that cannot be replayed |
NS_E_MARKIN_UNSUPPORTED | MarkIn or MarkOut clipping is requested for a source type that does not support seeking to marks |
Corrective action at the right layer
To correct this, choose a MarkOut later than MarkIn and no later than the actual source duration. A retry is useful only after the recorded bad markout precondition changes.
Do not re-encode or trim the only copy of the input while diagnosing the timeline; preserve the original duration and timestamps so the invalid interval can be reproduced.
Technical references
Looking for a different code? Search another status or error code.
