Codec vs Container: Why Your MP4 Won’t Play

Video Nov 1, 2026 5 min read

“It’s an MP4, why won’t it play?” is one of the most common and most confusing video problems, and it has a single explanation: the file extension tells you about the box, not about what is inside the box.

The Box and the Contents

A video file has two separate layers, and almost nobody is told about the second one.

The container is the box. MP4, MOV, MKV, AVI, WebM are containers. The container’s job is organisational: it holds a video track, one or more audio tracks, possibly subtitles, chapter markers and metadata, and records how they line up in time so that sound stays with picture.

The codec is how the picture itself is compressed. H.264, H.265 (also called HEVC), AV1 and VP9 are video codecs. AAC, MP3 and Opus are audio codecs. The codec is the actual algorithm that turned hours of raw frames into a file of manageable size, and it is what a player must understand in order to show you anything.

So two files both named .mp4 can be entirely different inside. One contains H.264 video and AAC audio and plays on a fifteen-year-old laptop. The other contains AV1 video and Opus audio and shows a black screen on a device that cannot decode it. Same extension, same icon, different outcome.

Why That Explains the Failure

When a video does not play, the usual cause is that the player supports the container and not the codec inside it. The player opens the box successfully, finds the tracks, reads the timing — and then has no idea how to turn the compressed video data into pictures.

The symptoms are distinctive once you know what they mean:

The Combination That Works Everywhere

If a file has to play for someone whose device you cannot control — a client, an audience, an upload — use:

MP4 container + H.264 video + AAC audio.

This combination is decoded by essentially every browser, phone, television, editing program and platform made in the last fifteen years, with hardware acceleration almost everywhere. It is not the most efficient option available, and that does not matter — compatibility is the thing you are buying.

The Other Codecs, and What They Cost

And on the audio side: AAC is the safe default, Opus is better per kilobyte but newer, MP3 is universally supported and dated.

Remux vs Re-encode: the Useful Part

This distinction can turn a long job into an instant one, and it follows directly from the box-and-contents idea.

Remuxing means moving the existing tracks into a different container without touching the compressed data. The video is not re-compressed — it is lifted out of one box and placed in another. It takes seconds even for a large file, and it is completely lossless.

Re-encoding means decoding the video back to pictures and compressing it again with a different codec. It takes minutes or hours, and it always loses some quality, because you are compressing data that was already compressed once.

Now the practical point: “convert MOV to MP4” is very often just a remux. A MOV from an iPhone or a camera frequently contains H.264 video and AAC audio — exactly what an MP4 would contain. The two containers are closely related and both accept those tracks. Nothing needs re-compressing; the tracks simply move house.

So if a conversion of that kind is grinding away for twenty minutes and the result looks slightly worse than the original, the wrong operation was performed. The same logic applies to MKV to MP4, which is usually a remux, and to extracting an audio track, which should never require re-encoding.

Re-encoding is genuinely necessary only when the codec itself must change — HEVC to H.264 for compatibility, or anything to AV1 for size — or when you are changing resolution, trimming with frame accuracy, or burning in subtitles.

Finding Out What Is Inside

Before converting anything, look at what you actually have. Any tool that reports video file information will list the container alongside the video codec, the audio codec, resolution, frame rate and bitrate.

That single check answers the question that matters: do I need to re-encode this, or can I just change the box? Most of the time the honest answer is the second one, and it is a great deal faster.

Quick Reference

Solve your file problem: Video Converter Try it free — Video Converter →