What Is MP4? The Container Behind Every Video You Share

Every video you’ve ever sent, received, or recorded on a phone almost certainly ends in .mp4. Yet most people’s mental model of what MP4 is is wrong in a way that causes real confusion — like “I converted it to MP4 and it still won’t play.”

This guide explains what’s actually inside the file, and how that knowledge answers most video problems you’ll hit.

MP4 is a box, not a compressor

The single most important idea:

MP4 is a container. The compression is done by a codec living inside it.

A useful analogy: an MP4 file is like a box for shipping. The box tells you where the contents are, how they’re laid out, and where the label goes. It says nothing about what’s in the box — that’s the codec’s job.

So when a file is “an MP4,” all that’s guaranteed is the packaging. Inside, the box holds:

TrackTypical contentsNotes
Video streamH.264 (AVC), HEVC (H.265), sometimes AV1This is what determines file size and compatibility
Audio streamAAC, sometimes Opus/AC-3Usually a small fraction of the file
MetadataDuration, dimensions, timestamps, chaptersTiny but essential — players read it first

The file size, the visual quality, and whether it plays on a given device are all decided by the codec streams, not by the MP4-ness of the file.

Two files, same extension, different destinies

Concrete example of why this matters:

Same .mp4 extension. Completely different compatibility. When someone says “MP4 doesn’t play on my TV,” they’re almost always holding File B — the container is fine; the codec inside it is the problem.

The family tree: MP4, MOV, MKV, WebM

ContainerBorn fromCommon video codecs insideWhere it’s king
MP4ISO Base Media Format (grew from QuickTime)H.264, HEVC, AV1Phones, social apps, everywhere
MOVApple QuickTimeH.264, HEVC, ProResApple ecosystem, cameras, editing
MKVOpen-source (Matroska)Anything — truly anythingDesktop media libraries, pirates, archivists
WebMGoogle, for the webVP8, VP9, AV1 onlyBrowsers, open web video

Two details worth knowing:

Why every platform standardized on MP4

MP4 won because it hits every requirement at once:

That’s also why Kompress outputs MP4: an MP4 containing H.264 is the single most compatible video file that can exist — and when your device supports HEVC, an MP4 containing HEVC is the same compatibility with ~40% smaller files (codec trade-offs here).

“Converting to MP4” — what people usually mean, and what they should do

The phrase hides two very different operations:

1. Repackaging (remuxing). Streams are copied from one container into MP4 untouched. Instant, zero quality loss, no re-compression. This is the right fix for:

2. Re-encoding. The video stream is actually decompressed and recompressed — this is where files get smaller, and where quality decisions happen. This is what a video compressor like Kompress does: it decodes your original (whatever the container), re-encodes the stream with a lower bitrate/resolution, and writes the result into a fresh MP4.

If your goal is smaller files, repackaging does nothing — a byte-copied stream weighs the same in any box. If your goal is plays somewhere new, re-encoding is usually overkill; remux is the tool. Know which problem you have.

Inside the box: what compression actually touches

When Kompress (or any encoder) writes a new MP4, the tracks get unequal treatment:

The MP4 facts that answer real questions

Kompress writes standard MP4 output on both iOS and Android, with hardware H.264 or HEVC inside — first run free, compressed entirely on your device. Same video, smaller file, in the box everything already opens.

Frequently asked questions

Is MP4 a codec or a format?

MP4 (MPEG-4 Part 14) is a container format — a wrapper that holds an encoded video stream (like H.264), an audio stream (like AAC), and metadata (subtitles, timestamps). The compression itself is done by the codec inside the container.

Why do some MP4 files play and others don't?

Because the extension only tells you the container. An MP4 containing H.264 plays almost anywhere; an MP4 containing HEVC may fail on old devices and browsers that lack an HEVC decoder. The problem is the codec, not the MP4.

Is MP4 lossy?

MP4 files are almost always lossy because the codecs stored inside them (H.264, HEVC) use lossy compression. The MP4 container itself doesn't compress anything — it just packages the already-compressed streams.

What is the difference between MP4, MOV, MKV, and WebM?

They're all containers. MOV is Apple's close cousin of MP4 (MP4 grew out of it); MKV is an open container that can hold almost anything; WebM is a web-native container restricted to VP8/VP9/AV1 video. All four hold the same kinds of streams — compatibility differs by platform.

Should I convert MOV to MP4?

If the MOV already contains H.264 or HEVC video, converting to MP4 usually only repackages the streams without re-encoding — instant, lossless, and improves compatibility. Only re-encode if you also want the file smaller.

Keep reading