NS_E_STREAM_END (0XC00D0034) – No More Data in Stream: Fixes That Work
This Windows Media Player error means the stream ended early. Usually a corrupt file, a network timeout, or a codec issue. Fixing it takes 5 minutes.
Corrupt or Truncated Media File (Most Common Cause)
I've seen this error more times than I can count. Nine times out of ten, it's because the media file itself is busted. Had a client last month who downloaded a video from a shared drive and got this error halfway through. The file was only partially downloaded — the server dropped the connection mid-transfer.
Windows Media Player chokes when it reaches the end of the data before the file says it should end. The error 0XC00D0034 literally means "stream ended, nothing left to read."
Fix it:
- Check the file size. Right-click the file, go to Properties. If it's suspiciously small, re-download it.
- Try a different player. VLC Media Player often handles truncated files better than WMP. If VLC plays it, the file's corrupt but playable.
- Repair with a tool like Video Repair Tool by Stellar or Gihosoft Free Video Repair. Both have free trials. I've used the Stellar one on a dozen broken MP4 files — it works if the file has a valid header.
- If it's a WMV file, open it in Windows Movie Maker or a video editor. The timeline will show the truncated part. Trim the last 2 seconds and re-save it.
If the file plays fine in VLC but not WMP, it's likely a codec issue (covered next). But if VLC also fails, the file is toast.
Missing or Corrupted Codec (Second Most Common)
Windows Media Player is picky about codecs. It ships with basic ones for WMV, WMA, and MP3. But if your file uses an H.264 or AAC codec (common in modern MP4s), WMP can't decode it. The stream starts, but when it hits the codec boundary, it errors out with NS_E_STREAM_END.
I've had this happen with a client's training videos encoded with a newer H.265 codec. WMP would show the first frame, then bomb out.
Fix it:
- Install the K-Lite Codec Pack Basic — it's free, no bloatware. The Basic version adds H.264, H.265, AAC, and FLAC support. After install, restart WMP and try the file.
- Alternatively, run the Windows Media Player Troubleshooter. Open Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Media Player. Run it. It sometimes detects and fixes missing codecs.
- If the video still fails, check the file codec with a tool like MediaInfo (free). It tells you exactly what codecs are used. If it's something exotic like VP9, WMP won't play it — use VLC instead.
Network Streaming Timeout (Third Common Cause)
When you're streaming from a network drive, a NAS, or a Windows Media Center server, the stream can drop if the network hiccups. I saw this at a small law office where a partner tried to play a video from a shared folder over Wi-Fi. The connection stuttered, and the error popped up 30 seconds in.
Windows Media Player has a built-in buffer timeout. If the data stops flowing for more than a few seconds, it assumes the stream has ended and throws 0XC00D0034.
Fix it:
- Copy the file to your local hard drive first. This eliminates network issues. If it plays locally, the network is the problem.
- Increase the network timeout. Open regedit, go to
HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\Network. Create a new DWORD (32-bit) namedBufferTimeand set value to5000(milliseconds, so 5 seconds). Exit regedit and restart WMP. - Switch to a wired connection if possible. Wi-Fi is unreliable for streaming large files. Or use a proper streaming protocol like DLNA instead of direct file shares.
Quick-Reference Summary Table
| Cause | Symptom | Best Fix |
|---|---|---|
| Corrupt or truncated file | Error on same file every time, plays in VLC | Re-download or repair with Stellar Video Repair |
| Missing codec | Error with specific format (MP4, MKV), plays fine elsewhere | Install K-Lite Codec Pack Basic |
| Network streaming timeout | Error after a delay on network shares | Copy file locally, increase BufferTime registry key |
One final tip: if you're using Windows Media Player on Windows 10 or 11, it's worth checking Windows Update. Microsoft has pushed several WMP fixes in cumulative updates. If nothing above works, open Settings > Update & Security > Check for updates. I've seen that resolve oddball WMP errors more than once.
Was this solution helpful?