FileHulk Lab · Fix File Errors

How to Fix Video Files That Won’t Play on Windows

Last tested: May 2026Build 26100.3476by FileHulk Lab
File Type
Video File
Works On
Windows 11
Difficulty
Beginner
Time Needed
2-5 min
Quick answer

Video plays in black screen or shows error? Fix missing codecs and format errors on Windows for free.

FileHulk Lab Verdict
Use this guide if
Your video file will not play on Windows — showing a black screen, codec error, unsupported format message, or crashing your media player — this guide covers all four causes and fixes each one for free in under 5 minutes.
Not this guide if
The video plays but has no audio — that is a different issue. Or if the video is stuttering or lagging — that is a performance problem not a format problem and requires different fixes.

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.

Key fact: VLC Media Player (free from videolan.org) includes every major video codec built-in and fixes 90% of video playback problems on Windows without installing separate codecs. If VLC cannot play a video file, the problem is almost certainly the file itself — not the codec.

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
Method 1
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.

1
Download and install VLC Media Player
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.

✓ VLC installed — orange cone icon appears in the Start menu✗ Install blocked by SmartScreen → right-click installer then Properties then Unblock then install again

videolan.org download page showing the Download VLC button for the Windows installer
Download VLC from videolan.org — select the Windows installer and run with default settings

2
Open the video file in VLC
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.

✓ Video plays in VLC — the original player was missing codecs; set VLC as default in step 3✗ VLC also cannot play the video → the file may be corrupted; continue to Method 3

VLC Media Player playing a video file that previously failed to open in Windows Media Player
Right-click the video then Open with then VLC — VLC plays using its built-in codecs

3
Set VLC as your default video player
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.

✓ VLC set as default — all videos of this type now open in VLC automatically✗ VLC not in the app list → click More apps then Look for another app on this PC and browse to VLC

Windows Open with dialog showing VLC media player selected with Always use this app checkbox ticked
Open with then VLC then tick Always use this app — set VLC as default for this video format

💡

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.

Method 2
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.

1
Identify which codec is missing
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.

✓ Codec identified from Properties Details tab or error message✗ No specific codec shown → install HEVC extension first as it covers the most common missing codec

Windows file Properties Details tab showing video codec field identifying HEVC for a video that will not play
Right-click video then Properties then Details — Video codec shows which codec is needed

2
Install the correct codec from Microsoft Store
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
✓ Codec installed — restart the media player and try the video again✗ Microsoft Store blocked → use VLC (Method 1) which includes all codecs without Store access

Microsoft Store showing HEVC Video Extensions page with Get button to install the codec
Search Microsoft Store for the codec matching your video format and click Get to install

3
Restart the media player and test the video
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.

✓ Video plays correctly after codec installation✗ Video still will not play → restart Windows completely and try again

Windows Movies and TV app playing an HEVC video correctly after installing the HEVC Video Extensions codec
After codec installation restart the media player — the video now plays correctly

🔬

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.

Method 3
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.

1
Check the video file size against the expected size
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.

✓ File size looks correct — corruption is internal; continue to step 2✗ File is much smaller than expected → download was incomplete; delete and re-download

Windows file Properties showing a video file with very small size indicating an incomplete download
Check video file size in Properties — a very small size means the download was cut short

2
Use VLC to rebuild the video index
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.

✓ VLC repairs the index and video plays — convert to clean MP4 via Media then Convert/Save✗ VLC does not offer repair dialog → try the FFmpeg command in step 3

VLC media player showing the file is broken repair dialog asking to rebuild the video index
VLC detects a broken index and offers Repair — click it to reconstruct and play the video

3
Fix MP4 moov atom errors using FFmpeg
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.

✓ fixed.mp4 created and plays correctly from start to finish✗ FFmpeg reports Invalid data found → video data itself is damaged; re-download from source

Command Prompt showing FFmpeg command to fix a corrupted MP4 file by copying streams to a new container
FFmpeg -i corrupted.mp4 -c copy fixed.mp4 — rewrites the container and fixes moov atom errors

💡

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.

Method 4
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.

1
Download and open HandBrake
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.

✓ HandBrake loads the video and shows source format details✗ HandBrake cannot open the file → use Method 3 first to repair it then re-try

HandBrake video converter showing a video file loaded with source details including codec and resolution
Open HandBrake from handbrake.fr then click Open Source to load the incompatible video

2
Select a compatible output preset and start encoding
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.

✓ HandBrake converts the video — new MP4 plays in any application✗ HandBrake encode fails partway → source file has corruption; use Method 3 first

HandBrake showing Fast 1080p30 preset selected and Start Encode button to convert video to MP4
Select Fast 1080p30 preset then Start Encode — output is H.264 MP4 compatible everywhere

3
Enable GPU encoding for faster conversion of large files
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.

✓ GPU encoding enabled — large video conversions now complete 5-10x faster✗ No GPU option available → CPU encoding still works but is slower for large files

HandBrake Preferences Video tab showing hardware GPU encoding options NVIDIA NVENC Intel QSV AMD VCE
HandBrake Preferences then Video — enable GPU encoding for 5-10x faster video conversion

Which Fix to Use — Summary
Best approach by situation
Any video playback failure — Method 1 first (VLC fixes 90% of cases in 2 minutes)
Specific codec error in Windows apps — Method 2 (install HEVC or AV1 from Microsoft Store)
Video plays briefly then stops — Method 3 (VLC index repair or FFmpeg moov atom fix)
App cannot open format at all — Method 4 (HandBrake converts to universal MP4)
Limitations to know
VLC cannot fix genuinely corrupted video data — only index and container issues
HEVC codec from Microsoft Store costs $0.99 on some Windows builds — VLC is always free
HandBrake conversion takes time — 4K files can take 15-60 minutes without GPU encoding
Converting video reduces quality slightly — always keep the original file as a backup
Troubleshooting Common Issues
⚠️

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.

✓ FileHulk Lab Recommendation

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?+
VLC includes its own built-in codec library and does not rely on the Windows codec system. Windows Media Player uses the Windows codec system which requires separate installations for formats like HEVC, AV1, and MKV. Install HEVC Video Extensions or AV1 Video Extension from Microsoft Store to add these codecs. Alternatively set VLC as your default video player.
Why does my iPhone video show a codec error on Windows?+
iPhone videos recorded in default settings use the HEVC codec which Windows cannot play without an additional installation. Install HEVC Video Extensions from Microsoft Store (free or $0.99 depending on your Windows version). Alternatively install VLC which plays iPhone HEVC videos without any codec installation. To prevent future HEVC videos from iPhone go to Settings then Camera then Formats then Most Compatible.
My video plays for a few seconds then stops — what is wrong?+
This is usually a corrupted or missing moov atom in MP4 files — the index telling the player where each video frame is located. If recording was interrupted the moov atom may not have been written. Use FFmpeg to fix it: run ffmpeg -i corrupted.mp4 -c copy fixed.mp4 in Command Prompt. If the video still stops at the same point, that section of video data is corrupted and cannot be recovered.
What is the best free video player for Windows?+
VLC Media Player (videolan.org) is the best free video player for Windows. It plays every major video format without separate codec installations, handles corrupted files better than most players, supports all subtitle formats, and is completely free and open-source with no ads or paid upgrades. For users who prefer a simpler interface, MPC-HC is another excellent free option with built-in codecs.
Is it safe to install VLC from videolan.org?+
Yes. VLC is free open-source software published by the VideoLAN organisation and has been available since 2001. FileHulk Lab scanned the VLC installer on VirusTotal — 0 of 72 engines detected anything. Always download from videolan.org directly and never from third-party sites that may bundle unwanted software with the installer.

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 →
Scroll to Top