Containers and codecs: MP4, WebM, MOV
Why a file extension does not tell you whether a video will play.
A video file has two layers. The container is the box: it holds the video track, the audio track, subtitles and timing information. The codec is how the picture and sound inside the box are compressed. The file extension names the container only.
| Container | Typical video codecs | Typical audio | Plays in browsers |
|---|---|---|---|
| MP4 (.mp4) | H.264, H.265, AV1 | AAC | H.264 everywhere; H.265 and AV1 depend on the device |
| WebM (.webm) | VP8, VP9, AV1 | Opus, Vorbis | Chrome, Firefox, Edge; recent Safari |
| QuickTime (.mov) | H.264, H.265, ProRes | AAC, PCM | Only when the codec inside is one the browser knows |
Why "it will not open" happens
Two MP4 files can behave completely differently. A phone recording in H.265 may play on the phone and fail in an older browser, while an H.264 file of the same name plays anywhere. When this site says your browser cannot play a file, the usual reason is the codec, not the container.
What to pick
- Sending to anyone, any device: MP4 with H.264 video and AAC audio.
- Embedding on a web page: WebM with VP9 or AV1 is smaller at the same quality, with an MP4 fallback.
- Editing: keep the original from the camera. Every re-encode loses a little quality.
The trim tool here records to WebM because that is what browsers can encode without extra software.