Media · 4 min read

Why a video file will not play, and how to fix it

Almost always the file is fine and your player is missing one piece. Here is how to tell which piece, and the fix that does not cost you quality.

By Hasnain Butt Akhtar, founder and developer ·

A video that will not play is rarely a damaged file. Nearly always it is a file your player does not know how to read, and the fix takes a minute once you know which part is missing.

The one idea that explains most of it

A video file is a box with things inside it, and the box and the contents have separate names.

The box is the container. MP4, MKV, MOV, AVI and WebM are containers. The container holds the video, the audio, the subtitles and the chapter marks, and keeps them lined up with each other. It is the part you see in the file name.

The contents are the codecs. H.264, H.265, AV1 and VP9 are ways of compressing the picture. AAC, MP3, AC3 and Opus are ways of compressing the sound. These are what your player actually has to understand.

Two files can both be called MP4 and contain completely different things. That is why one MP4 plays fine and another does not, and why renaming a file to .mp4 never fixes anything. You have relabelled the box without changing what is inside.

What the symptom tells you

What happensWhat it meansFix
Sound plays, screen is blackThe video codec is not supported, the audio one isInstall the video codec, or use a player that includes it
Picture plays, no soundThe audio codec is not supportedSame, for audio. AC3 and DTS are the usual ones missing.
Nothing plays, error messageNeither is supported, or the container is unfamiliarUse a player with codecs built in
Plays but stutters badlyDecoding in software instead of hardware, usually 4K or H.265Update graphics drivers, or convert to H.264
Green or pink blocks across the pictureA hardware decoding faultTurn off hardware acceleration in the player
Plays on the PC, not on the TVThe TV supports fewer codecs than your computerConvert to H.264 and AAC in an MP4

The fixes, cheapest first

  1. Try a player that brings its own codecs. This solves the great majority of cases instantly and changes nothing about your file. Players like VLC include support for nearly everything, so they do not depend on what Windows has installed. If the file plays there, the file was never the problem.
  2. Add the missing codec to Windows. If you would rather keep using the built in player, Windows can be extended. H.265, also called HEVC, is the one people most often lack, because it carries licensing costs and is not always included by default. The extension is available from the Microsoft Store and takes a moment to install. After that, files that failed everywhere will open normally.
  3. Repackage without re-encoding. This one is worth knowing about because it is nearly instant and loses nothing. If the contents are supported but the container is not, you can move the video and audio into a different box without touching them. Converting an MKV to an MP4 this way takes seconds rather than an hour, and the picture is bit for bit identical. Tools describe it as remuxing, copying streams, or converting without re-encoding.
  4. Re-encode, as a last resort. If the codec genuinely is not supported by the device you need it on, the picture has to be rebuilt in a format it understands. This takes real time and costs some quality, because you are compressing an already compressed video. Do it only when the first three options do not apply, and keep the original.

The combination that plays everywhere

If you are making a file for someone else, or for a television, a phone, a projector or a car, there is one safe answer: an MP4 container, H.264 video and AAC audio.

It is not the most efficient combination available. H.265 and AV1 both produce smaller files at the same quality. But H.264 in an MP4 has been supported by essentially every device made in the last fifteen years, and it will still be playing when the newer formats have moved on. For anything you are handing to another person, that reliability is worth more than the file size.

Keep the efficient formats for your own storage, where you control what plays them.

When it really is the file

Occasionally a video genuinely is damaged, usually from an interrupted download or a recording that stopped badly. The signs are distinctive: it plays perfectly up to a certain point and then stops, or the length shown is wrong, or it works in one player and fails at the same moment in every other.

A partial download is worth simply fetching again. A recording that was cut off mid-write can sometimes be repaired, because the picture data is usually intact and only the index describing it is missing. Several tools can rebuild that index from a working file recorded by the same device, which is the trick worth knowing if a camera or recorder shut down unexpectedly.

One habit saves most of this trouble. When a file matters, check that it opens before you delete the source, close the recorder, or hand the drive back. Almost every unrecoverable video story starts with someone confirming the file exists rather than confirming it plays.

Software mentioned in this guide

Everything above works the same whichever software you choose.

More guides

All guides · Windows catalogue · About the studio