Cause #1: Video file has a weird or corrupted width value
I know this error is infuriating. You're trying to watch a video, and Windows Media Player just says nope. The most common reason? The video file itself stores a width value that's either zero, crazy high, or just plain wrong. This happens a lot with downloaded videos that got cut off mid-download or were encoded by a cheap tool.
Here's the fix that works 9 out of 10 times in my experience: use a free tool like HandBrake or FFmpeg to re-encode the video. You don't need to be a tech wizard for this.
Fix with HandBrake (easiest)
- Download HandBrake from the official site (it's free, don't pay for it).
- Open HandBrake and click "Source Selection" — pick your broken video file.
- Under "Summary", set "Format" to MP4 (works everywhere).
- Under "Video", set "Video Codec" to H.264 (it's the safest choice).
- Click "Dimensions" and check the width and height. If they look off (like 0 or 9999), set them manually. For example, set Width to 640 and Height to 480 for a standard video.
- Hit "Start Encode" at the top. Wait for it to finish.
- Open the new file in Windows Media Player — it should play fine now.
Fix with FFmpeg (if you like command line)
If you want a quick fix and already have FFmpeg installed, run this in a Command Prompt window:
ffmpeg -i broken_video.mp4 -c:v libx264 -vf "scale=640:480" fixed_video.mp4
Replace broken_video.mp4 with your actual file name, and 640:480 with any decent resolution like 1280:720. This forces the video to a valid width.
Cause #2: Missing or broken video codecs
Windows Media Player is picky. If it can't find the right codec to decode the video, it throws this error instead of telling you "hey, I need a codec." This tripped me up the first time too. I spent hours checking the video file before realizing the player was the problem.
The real fix here is to install a codec pack. I recommend the K-Lite Codec Pack (Basic version is enough). It adds support for almost every video format out there.
Steps to install K-Lite Codec Pack
- Go to the official K-Lite website and download the Basic version (it's free and no bloatware).
- Run the installer. Click "Next" through all the default settings — don't change anything unless you know what you're doing.
- When it asks about "Preferred Video Decoder", pick LAV Video Decoder (it's the default and works best).
- Finish the installation and restart your computer.
- Try playing the video again. If it still shows the error, try Cause #1 or #3.
One thing to note: if you already have another codec pack installed, remove it first. Two codec packs fighting each other can cause even weirder errors.
Cause #3: Windows Media Player settings got corrupted
Sometimes the player's own settings file gets messed up. This happens after a bad update or if you mess around with the registry. The fix is simple: reset the player's settings.
Reset Windows Media Player settings
- Close Windows Media Player completely.
- Press Windows Key + R to open the Run dialog.
- Type
regeditand hit Enter. (Yes, the registry editor — don't worry, we're just deleting one key.) - Go to this path:
HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer - Right-click the MediaPlayer key and choose "Delete". Confirm yes.
- Close regedit.
- Open Windows Media Player again. It will create a fresh settings file, and you'll see the initial setup wizard. Just click through it.
If you're not comfortable with the registry, there's a safer way — just uninstall the player and reinstall it. On Windows 10 and 11, go to Settings > Apps > Optional Features > Windows Media Player, remove it, then add it back.
Quick-reference summary table
| Cause | Symptom | Fix |
|---|---|---|
| Video has bad width | Error only on one file | Re-encode with HandBrake or FFmpeg |
| Missing codecs | Error on many files | Install K-Lite Codec Pack (Basic) |
| Corrupted player settings | Error started after update | Reset registry key or reinstall player |
Hope this helps you get back to watching your video. If none of these work, the video file is probably toast — but that's rare. Try downloading it again from the source.