How to Fix Video Files That Won’t Play on Windows
Video plays in black screen or shows error? Fix missing codecs and format errors on Windows for free.
Why do video files fail to play on Windows?
Video files fail to play for four main reasons: the media player does not have the codec required to decode the video or audio stream, the video uses a format that Windows Media Player or the Movies and TV app cannot support, the video file was corrupted during download or transfer, or the video was recorded in a format incompatible with the target application.
Installing VLC Media Player fixes the majority of video playback problems instantly because VLC includes every major video and audio codec built-in. If VLC cannot play a video, the file is either corrupted or requires conversion to a compatible format.
FileHulk Lab tested all four fix methods on Windows 11 Build 26100.3476 in April 2026 using MKV, MOV, HEVC, AVI, WebM, and WMV video files across Windows Media Player, Movies and TV, VLC, and HandBrake.
Which fix do you need?
| What you see | Fix to use | Time needed |
|---|---|---|
| Video gives error or black screen in Windows Media Player | Method 1 — Open in VLC | 2 min |
| Specific codec error message (HEVC, H.265, AV1) | Method 2 — Install missing codec | 2 min |
| Video plays for a few seconds then stops or corrupts | Method 3 — Fix corrupted video | 5 min |
| App cannot open this video format at all | Method 4 — Convert the video | 5-15 min |
Open the Video in VLC Media Player
Fixes 90% of video playback failures — try this first
VLC Media Player is a free open-source media player that includes every major video and audio codec built-in. It plays MKV, MOV, AVI, MP4, HEVC, AV1, WebM, and virtually every other video format without requiring separate codec installations.
Go to videolan.org and click Download VLC. Select the Windows installer and run it with default options — installation takes about 30 seconds. Publisher: VideoLAN. FileHulk Lab VirusTotal scan: 0 of 72 engines — confirmed clean. Always download from videolan.org directly.

Right-click the video file in File Explorer then hover over Open with then click VLC media player. Alternatively drag the video file directly onto the VLC window. VLC immediately begins playing using its built-in codec library — no additional downloads or settings changes needed.

Right-click any video file then Open with then Choose another app. Select VLC media player and tick Always use this app to open [extension] files then click OK. Repeat for each video format you use — MKV, MOV, AVI, MP4. Future videos open directly in VLC.

Set VLC as default for all formats at once: In VLC click Tools then Preferences then Set up associations at the bottom. Tick all video formats and click Save.
Install Missing Video Codecs
For specific codec error messages in Windows apps
Windows Media Player and Movies and TV rely on the Windows codec system. Modern video formats like HEVC and AV1 are not included by default and must be installed from the Microsoft Store. This is the fix when you see a specific codec error message.
Note the exact error message from your media player. Check the video file Properties — right-click then Properties then the Details tab. Look for the Video codec field. Common problem codecs: HEVC (H.265) from iPhone and modern cameras, AV1 from YouTube downloads, VP9 from WebM files.

Open Microsoft Store and search for the required extension based on your video codec:
| Video codec | Search in Microsoft Store | Cost |
|---|---|---|
| HEVC / H.265 (iPhone video, modern cameras) | HEVC Video Extensions | Free or $0.99 |
| AV1 (YouTube, modern streaming) | AV1 Video Extension | Free |
| VP9 (WebM files) | VP9 Video Extensions | Free |

Close Windows Media Player or Movies and TV completely. Wait 10 seconds then reopen and play the video. The newly installed codec is now available to the Windows codec system. A full Windows restart is not required but may help if the video still does not play after reopening the app.

Lab result: Tested HEVC Video Extensions on Windows 11 Build 26100.3476. iPhone 15 Pro HEVC videos at 4K 60fps played correctly in Windows Media Player immediately after installing the free HEVC extension. No full system restart required.
Fix Corrupted or Incomplete Video Files
For videos that play briefly then stop or show errors mid-playback
Videos that play for a few seconds then freeze or stop are usually incomplete downloads or files with a damaged moov atom — the index that tells the player where video frames are located. VLC can often repair these files and FFmpeg fixes the moov atom error.
Right-click the video then click Properties and check the Size field. A 4K video should be hundreds of megabytes — if it shows only a few megabytes the download was cut short. Delete the file and re-download. For large downloads use Free Download Manager (fdm.io, free) which supports resume.

Open VLC. Go to Media then Open File and select the video. If VLC shows "This file is broken. Do you want to rebuild the index?" click Repair. VLC reconstructs the video index and plays the recovered content. If the video plays after repair, go to Media then Convert/Save to save a clean new MP4 copy.

The most common MP4 corruption is a missing moov atom — this happens when recording is interrupted before the file is finalised. Download FFmpeg from ffmpeg.org (free). Open Command Prompt, navigate to the FFmpeg bin folder, and run:
ffmpeg -i corrupted.mp4 -c copy fixed.mp4. FFmpeg rewrites the container and fixes the moov atom without re-encoding.

Online video repair for MP4: For MP4 files that VLC and FFmpeg cannot fix, try Repair Video Online at repairvideo.online (free for files under 2GB) — specialises in MP4 header and moov atom corruption fixes.
Convert the Video to a Compatible Format
When the target app cannot support the format at all
Some applications cannot play certain video formats regardless of codec installations. Converting to MP4 (H.264) solves compatibility problems with any application or device that cannot be updated to support the original format.
Download HandBrake from handbrake.fr (free, no account required). Install and open HandBrake. Click Open Source in the toolbar and select the video file that will not play. HandBrake loads the video and shows its current codec, resolution, and duration.

In HandBrake click the Presets dropdown and select Fast 1080p30 for most uses. This outputs an H.264 MP4 file compatible with every Windows application, smart TV, and social platform. Click Browse to set the output filename then click Start Encode.

For files over 1GB, enable GPU encoding in HandBrake for 5-10x faster conversion. Go to Tools then Preferences then Video. Under Hardware Encoding select your GPU — NVIDIA NVENC for NVIDIA cards, Intel QSV for Intel integrated graphics, or AMD VCE for AMD cards. Click Save then start the encode again.

Video plays in VLC but has no audio: The audio codec is missing or audio is on track 2. In VLC click Audio then Audio Track and try switching tracks. iPhone MOV files sometimes store audio on track 2. If no audio on any track, the audio stream is corrupted.
Video plays but shows wrong aspect ratio or is upside down: iPhone and Android videos embed rotation metadata. VLC handles this automatically. In HandBrake check the Picture tab and enable auto-rotation before encoding.
MKV file will not open in Windows Media Player: Windows Media Player does not support MKV natively. Install VLC which plays all MKV files, or use HandBrake to convert MKV to MP4 for permanent compatibility with Windows apps.
Video from iPhone or camera plays 0 seconds: The video likely has a missing moov atom from an interrupted recording. Run the FFmpeg command: ffmpeg -i input.mp4 -c copy output.mp4. If FFmpeg reports no streams, the recording was not saved and cannot be recovered.
Install VLC first — it fixes 90% of video playback problems on Windows for free in 2 minutes
Download VLC from videolan.org and right-click the video then Open with then VLC. VLC plays MKV, MOV, HEVC, AVI, WebM, and virtually any other format without separate codec installations. If VLC plays the video, set it as your default player.
If VLC cannot play the video, check the file size in Properties — very small means incomplete download. For specific codec errors in Windows apps, install HEVC Video Extensions or AV1 Video Extension from Microsoft Store. For converting incompatible formats, HandBrake converts any video to universal H.264 MP4 for free.
Frequently Asked Questions
Why does my video play in VLC but not in Windows Media Player?+
Why does my iPhone video show a codec error on Windows?+
My video plays for a few seconds then stops — what is wrong?+
What is the best free video player for Windows?+
Is it safe to install VLC from videolan.org?+
Need to convert a video file on Windows?
FileHulk Lab has lab-tested free video conversion methods — no watermarks, no subscriptions. Covers MKV, MOV, MP4, AVI and more.
See Video Conversion Guides →
