MKV file won't play or stops early? How to fix a corrupted Matroska video
Why an MKV stops early, won't seek, or fails to open, how to separate codec issues from cut-off Matroska clusters, and how to repair it losslessly.
By the Bytevive team8 min read

Matroska (.mkv) is famous for surviving crashes better than MP4, which makes it all the more frustrating when an MKV refuses to open, shows no duration, won’t let you scrub the timeline, or stops dead halfway through.
Before assuming the video is lost, split the problem in two: first check whether your player simply dislikes Matroska or one of the codecs inside it, then repair the container losslessly with Bytevive, MKVToolNix, or FFmpeg.
How an MKV file is laid out
Under RFC 9559 (the Matroska specification) and Matroska’s structure diagram, an MKV starts with an EBML header (bytes 1A 45 DF A3), segment info, and a Tracks block listing every video, audio, and subtitle codec. Then comes a stream of Cluster blocks, each holding a few seconds of media, followed at the end by Cues (the seek index).
Inside a Matroska (.mkv) file
Because Tracks sit at the front and media is grouped into Clusters, a cut-off MKV keeps everything up to the last complete Cluster.
- EBML + TracksCodecs & settings
- Cluster 1..NSelf-contained video & audio blocks
- CuesSeek table written at finish
Crash or cut-off download: everything after about 76% of the file is missing, which takes out Cluster 1..N, Cues.
Step 1: rule out player and codec mismatches
| What happens | What it means | What to do |
|---|---|---|
| QuickTime or Windows Photos refuses it, VLC plays it fine | Container or codec compatibility, not corruption | Play in VLC, or remux to MP4 if streams are H.264/AAC |
| Plays in VLC, but shows 0:00 duration or cannot seek | Missing Cues index or unfinished segment length | Fix container in Bytevive, MKVToolNix, or FFmpeg -c copy |
| Stops early at the same second every time | File was truncated mid-cluster, or hit a bad sector | Trim broken tail or remux to keep every intact cluster |
| Picture works, no sound (or vice versa) | Unsupported audio codec (DTS, TrueHD, AC-3) or damaged audio track | Check streams in MediaInfo or ffprobe; transcode audio only if needed |
Inspect a copy with MediaInfo or ffprobe (ffprobe broken.mkv). If ffprobe prints an EBML header error immediately, the opening bytes were overwritten or the file is not actually an MKV.
Step 2: close a cut-off MKV in your browser (up to 512 MB)
When a recording or download stopped mid-cluster, Bytevive’s AVI, MKV & WMV Repair checks the EBML structure locally in your browser with nothing uploaded:
- Drop a copy of the MKV onto AVI, MKV & WMV Repair. Checking and previewing require no account.
- Bytevive walks the Matroska clusters, keeps every complete cluster, drops the half-written ending, and marks the segment cleanly so players accept it without re-encoding.
- If your browser can decode the video and audio codecs inside, you can watch the preview right on the page; otherwise Bytevive tells you honestly and lets you sign in with a free account to save and verify the copy in VLC.
Step 3: remux with MKVToolNix or FFmpeg (best for large MKVs)
For movies, long screen recordings over 512 MB, or MKVs that need a brand-new Cues seek table, remuxing copies every valid packet into a fresh Matroska container with zero quality loss.
With MKVToolNix (GUI or CLI): mkvmerge is built specifically for Matroska and often recovers cleanly from mid-file cluster glitches that trip generic tools:
mkvmerge -o fixed.mkv broken.mkvWith FFmpeg: copy all streams (video, audio, and subtitles) into a new MKV, or add +discardcorrupt when damaged packets sit mid-file:
# Lossless remux keeping all tracks
ffmpeg -i broken.mkv -map 0 -c copy fixed.mkv
# Skip corrupted packets and rebuild timestamps
ffmpeg -fflags +discardcorrupt+genpts -i broken.mkv -map 0 -c copy fixed.mkvIf your goal is simply to open a healthy H.264/AAC MKV in QuickTime or an editor that prefers MP4, remux to MP4 with fast start instead: ffmpeg -i healthy.mkv -c copy -movflags +faststart healthy.mp4.
What cannot be recovered
- Data after a truncation point. If a 2 GB download stopped at 400 MB, closing the MKV makes the first 400 MB playable, but the remaining 1.6 GB was never written.
- Destroyed EBML and Tracks headers. If the opening kilobytes were zeroed out or overwritten, a container remux cannot guess stream metadata on its own.
- Corrupted frames inside a Cluster. Remuxing skips or preserves damaged packets as they are; no tool can invent pixels that were never saved.
The bottom line
Check an unplayable MKV in VLC first so you don’t waste time repairing a healthy file that QuickTime or Windows Photos simply won’t open. When the file really was cut off or refuses to seek, close the container in AVI, MKV & WMV Repair (up to 512 MB, no upload) or remux with MKVToolNix or FFmpeg -c copy before ever touching re-encoding.
Frequently asked questions
Why does an MKV play in VLC but refuse to open in QuickTime or Windows Photos?
Why can an interrupted MKV still play when an interrupted MP4 cannot?
How do I fix an MKV that plays but has no timeline or refuses to seek?
Can Bytevive repair a corrupted MKV without uploading it?
What if an MKV freezes or shows garbled blocks in the middle of playback?
Sources
Every claim, error message, price, and limit cited above comes from these pages, checked on December 5, 2026. If one has changed, tell us at support@bytevive.com and we’ll update the article.


