MP4, MKV, MOV: Containers Are Not Codecs

MP4, MKV, MOV: Containers Are Not Codecs

A friend’s TV refuses an MP4 that plays fine on your laptop. The file isn’t corrupted; the TV just can’t decode the codec inside the box. “MP4” tells you almost nothing about what you are watching.

The box is not the picture

A container stores tracks: video, audio, subtitles, chapter markers, timestamps. A codec decides how each frame gets compressed. The extension names the container, not the codec. .mp4 usually means H.264 video plus AAC audio, but it can legally hold H.265 or AV1. Matroska (.mkv) was built to hold nearly anything, which is why download and rip sites love it.

Container Usually holds Plays where
MP4 H.264, H.265, AV1 + AAC phones, TVs, browsers, platforms — the safest box
MOV H.264 or ProRes + AAC/PCM Apple software and editors; QuickTime is MP4’s ancestor
MKV almost any codec, multiple audio tracks, subtitles desktop players, Android; patchy on Apple TV and phones
WebM VP8/VP9/AV1 + Vorbis/Opus browsers, web video
AVI older codecs such as DivX and Xvid legacy players, old TVs

Renaming movie.mkv to movie.mp4 changes nothing. The bytes are untouched, and a player that rejects the MKV will reject it just as fast under the new name.

Why an MP4 still fails

Container support and codec support are separate questions. A TV may accept the MP4 box but lack an H.265 decoder; a browser may play H.264 in an MP4 but not H.265 in the same box. Audio is its own trap: an AC-3 track in an MP4 is perfectly legal, and most browsers will not decode it. When a file “doesn’t work,” check the codec list before blaming the extension.

What browser conversion actually does

The video converter does not remux streams. It plays the file in a video element, captures the played stream, and re-records it with MediaRecorder to WebM (VP9) or MP4 (H.264); any output the browser cannot encode is hidden. That means a real-time re-encode — a ten-minute video takes ten minutes — and extra tracks such as subtitles or alternate audio are dropped. The source also has to be playable in your browser at all, which an exotic MKV may not be.

For delivery, target H.264 video and AAC audio inside an MP4 and stop shopping by extension. If a file plays everywhere except one device, that device is the clue: find out which codec it accepts, then convert the stream, not the name.