Skip to content
Bytevive

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

A laptop showing a video player failing to open an MKV file beside an external SSD and headphones

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.

  1. EBML + TracksCodecs & settings
  2. Cluster 1..NSelf-contained video & audio blocks
  3. CuesSeek table written at finish
First byteCrash or cut-off downloadLast byte

Crash or cut-off download: everything after about 76% of the file is missing, which takes out Cluster 1..N, Cues.

Not to scale. Closing the file after the last whole Cluster and setting an open-ended segment size lets strict players open what survived.

Step 1: rule out player and codec mismatches

What happensWhat it meansWhat to do
QuickTime or Windows Photos refuses it, VLC plays it fineContainer or codec compatibility, not corruptionPlay in VLC, or remux to MP4 if streams are H.264/AAC
Plays in VLC, but shows 0:00 duration or cannot seekMissing Cues index or unfinished segment lengthFix container in Bytevive, MKVToolNix, or FFmpeg -c copy
Stops early at the same second every timeFile was truncated mid-cluster, or hit a bad sectorTrim 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 trackCheck 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:

  1. Drop a copy of the MKV onto AVI, MKV & WMV Repair. Checking and previewing require no account.
  2. 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.
  3. 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.mkv

With 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.mkv

If 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?
Usually because of container or codec support, not corruption. macOS QuickTime Player does not open Matroska (.mkv) containers natively, and Windows apps can fail on HEVC, AV1, DTS, or subtitle tracks inside an MKV. If VLC plays the file from start to finish, the file is healthy.
Why can an interrupted MKV still play when an interrupted MP4 cannot?
Matroska writes its track headers at the start and groups media into self-contained Clusters as recording progresses. Even if the recorder crashes before writing the final duration and Cues seek index, every completed Cluster is still decodable once the broken last Cluster is trimmed.
How do I fix an MKV that plays but has no timeline or refuses to seek?
A cut-off MKV often lacks its Cues element (seek index) or final segment size. Closing the cut-off container in Bytevive's AVI, MKV & WMV Repair, remuxing with MKVToolNix (mkvmerge), or running ffmpeg -i broken.mkv -c copy fixed.mkv restores clean seeking without re-encoding.
Can Bytevive repair a corrupted MKV without uploading it?
Yes, for MKV files up to 512 MB. Bytevive's AVI, MKV & WMV Repair walks the Matroska clusters in your browser, keeps every whole cluster, and marks the segment cleanly so players accept it. Checking needs no account; saving requires a free account. Files over 512 MB should be remuxed locally with MKVToolNix or FFmpeg.
What if an MKV freezes or shows garbled blocks in the middle of playback?
A freeze or smear in the middle means damaged bytes inside a Cluster rather than a simple cut-off ending. Try remuxing with mkvmerge or ffmpeg -fflags +discardcorrupt first; if the bad packet still crashes playback, re-encode with HandBrake or FFmpeg so the decoder skips past the broken frames.

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.

  1. IETF RFC 9559: Matroska Media Container Format Specification
  2. Matroska.org: Technical File Structure Overview
  3. MKVToolNix: mkvmerge documentation
  4. VideoLAN: VLC media player
  5. FFmpeg Formats Documentation (Matroska muxer)
  6. FFmpeg: ffprobe documentation
  7. MediaArea: MediaInfo

AVI or MKV stops early? Fix the structure in your browser.

Check and preview free for AVI, MKV, WebM, FLV, TS, and WMV files up to 512 MB; free account to save. Nothing is re-encoded or uploaded.

Repair a video file, free

Other free tools: video, PDF, photo, Office, ZIP, and audio repair.