| Previous | Next |
| MF_E_MP3_NOTSUPPORTED | MF_E_INVALID_FORMAT |
MF_E_NO_DURATION
MF_E_NO_DURATION means the Media Foundation source cannot supply a duration for the current media. A duration is a source/container property; it is not something an audio or video renderer can infer reliably from one sample.
Check whether the source is finite and fully characterized
Record the source type, byte-stream length, seek capability, and whether the input is still downloading or is genuinely live. For MP3 data, parsers may derive timing from frame information and optional metadata, while a truncated stream or unknown final length can prevent a stable whole-file duration from being available.
Do not replace the missing duration with the current playback position or a guessed bitrate calculation and then use it for seeking. Variable bitrate, incomplete input, and changing sources can make such values wrong. Applications should handle unknown duration explicitly when the source supports it, or finish buffering/indexing the finite content before requesting file-style timeline operations.
Microsoft: MP3 File Source · Microsoft: IMFByteStream::GetLength · FFmpeg: MP3 duration and seek implementation
Looking for a different code? Search another status or error code.