Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Windows Media Player Cannot Play File? Fixes That Work

· 5 min read · Home Tech

In this article
  1. Why Windows Media Player Refuses Some Files
  2. Check the File Itself First
  3. Install the Missing Codec
  4. Use the Built-in Troubleshooter
  5. Convert the File to a Supported Format
  6. Update Windows and the Player
  7. When to Switch to a Different Player
  8. Frequently Asked Questions

Windows Media Player cannot play a file because the file format is unsupported, the codec is missing, or the file itself is corrupted. Most playback failures fall into one of these three categories, and each has a straightforward fix you can apply in a few minutes.

Why Windows Media Player Refuses Some Files

Windows Media Player (WMP) is designed around a specific set of container formats and codecs. A container is the file wrapper (like .avi or .mp4), and a codec is the compression algorithm used for the video or audio inside it. WMP natively supports common formats such as .wmv, .avi, .mp3, and .wav, but it does not include built-in support for many modern formats like .mkv, .flac, or HEVC (H.265) video. When you double-click a file and see an error like "Windows Media Player cannot play the file. The player might not support the file type or the codec used to compress the file," it means the player either doesn't recognize the container or lacks the codec to decode the stream.

Check the File Itself First

Before installing anything, verify the file isn't the problem. A partially downloaded or corrupted file will often fail to play even if the format is supported. Try these quick checks:

  • Open the file in a different media player (like VLC or the Movies & TV app) to see if it plays there.
  • Check the file size – if it's suspiciously small (a few kilobytes for a video), it's likely incomplete.
  • Try playing a known-good file of the same type to confirm the player itself works.
  • If the file came from a download, re-download it or check the source for a checksum.

If the file plays fine in another player, the issue is definitely with WMP's codec support, not the file.

Install the Missing Codec

If the file is intact but WMP still refuses, the next step is to add the codec it needs. Microsoft used to offer a separate "Media Feature Pack" for Windows N editions, but for most users, the simplest solution is to install a codec pack. A codec pack bundles dozens of common codecs into one installer. The K-Lite Codec Pack is a widely used, free option that integrates with WMP. After installing, restart WMP and try the file again. Note that codec packs sometimes conflict with other software, so install only one pack and keep it updated.

Use the Built-in Troubleshooter

Windows includes a dedicated troubleshooter for media playback. In Windows 10 and 11, you can run it from Settings:

  1. Open Settings > System > Troubleshoot > Other troubleshooters.
  2. Find Windows Media Player and click Run.
  3. Follow the prompts; it will check for missing codecs, corrupt settings, and playback issues.

This tool often resolves simple configuration problems, but it won't fix a fundamentally unsupported format.

Convert the File to a Supported Format

If you don't want to install codecs, converting the file to a format WMP natively supports is a reliable alternative. Free tools like HandBrake or VLC can transcode video to .mp4 (H.264) or .wmv, and audio to .mp3 or .wma. The process is simple:

  1. Open the file in VLC or HandBrake.
  2. Choose an output format (e.g., MP4 for video, MP3 for audio).
  3. Select a destination folder and start the conversion.

Conversion takes time depending on file length and your CPU, but the resulting file will play in WMP and most other players.

Update Windows and the Player

Older versions of WMP may lack support for newer codecs that Microsoft has added through Windows updates. Ensure your system is fully updated:

  • Go to Settings > Update & Security > Windows Update and click Check for updates.
  • Install any pending updates, then restart your PC.
  • Check if WMP itself has an update under Microsoft Store (though WMP is a desktop app, some components are updated via Store).

In some cases, the issue is that WMP is disabled as an optional feature. You can re-enable it via Control Panel > Programs > Turn Windows features on or off, and checking Media Features.

When to Switch to a Different Player

If you regularly encounter files WMP can't handle, consider using a more versatile player. VLC Media Player is a free, open-source option that plays virtually any format without extra codecs. The Movies & TV app included with Windows 10/11 also supports more formats than WMP, including HEVC (with a paid extension from the Store). Switching players isn't a failure – it's often the most practical long-term solution, especially if you deal with .mkv files or high-efficiency video codecs.

Frequently Asked Questions

Why does WMP say "codec missing" even after I installed a codec pack?

Codec packs sometimes don't register correctly with WMP, or the file uses a codec variant not included in the pack. Try reinstalling the pack with the "Lite" profile, or check the pack's documentation for the specific codec. Also, ensure you're running the 64-bit version of WMP if your Windows is 64-bit – some codec packs install only 32-bit versions.

Can I play .mkv files in Windows Media Player?

Not by default. .mkv is a Matroska container that WMP doesn't natively support. Installing a codec pack like K-Lite adds .mkv support, but you may also need to install a splitter (the pack includes one). Alternatively, convert the file to .mp4 or use a player like VLC.

Does WMP support 4K or HDR video?

WMP can play 4K video if the codec is supported (e.g., H.264), but it does not support HDR metadata well. For HDR content, use the Movies & TV app with the HEVC extension, or a dedicated player like VLC. WMP also lacks hardware acceleration for some modern codecs, which can cause stuttering on high-resolution files.

Why does WMP play audio but no video?

This usually means the audio codec is supported but the video codec is missing. Check the file's properties (right-click > Properties > Details) to see the video codec. Install the appropriate codec or convert the file. It could also be a graphics driver issue – update your GPU drivers.

Is it safe to download codec packs?

Codec packs from reputable sources like the official K-Lite site are safe, but be cautious of bundled adware. Always download from the official website and uncheck any optional offers during installation. Some codec packs are outdated and can cause system instability, so stick to well-maintained ones.

Can I make WMP the default player again after switching?

Yes. Go to Settings > Apps > Default apps, scroll to the media player section, and choose Windows Media Player for each file type you want it to handle. You can also right-click a file, select Open with > Choose another app, and set WMP as the default.