GlossaryContainer (video container)

Container (video container)

A video container is the wrapper format that holds the video track, audio tracks, subtitles and descriptive data together as one file. Think of it as a box: the codec decides how each stream is compressed, while the container decides how those streams are stored and kept in sync. Common containers include MP4, MOV, MKV and WebM. Changing the container does not change the picture quality.

Why it matters

The container decides whether a file opens at all on a given phone, browser or TV. If a platform cannot read the containers users upload, uploads fail and support tickets pile up. Picking the right delivery container also affects how quickly playback starts and whether DRM works. Delivery format is settled once on FastPix: the On-Demand API encodes each upload and delivers it as HLS, so viewers get one streaming format instead of whatever was uploaded.

How it works

  1. The encoder compresses video and audio separately, each with its own codec.
  2. The muxer (the tool that combines streams) places those streams into one container file.
  3. The container adds an index, timestamps and metadata such as language, duration and rotation.
  4. A player reads the index, pulls out each stream and sends it to the right decoder in sync.

What is the difference between a container and a codec?

A codec compresses the video or audio, while a container stores the compressed streams together in one file. For example, an MP4 file might hold H.264 video and AAC audio. You can swap the container without re-encoding, a process called remuxing, but changing the codec means re-encoding and can change quality and file size.

CodecContainer
JobCompresses mediaHolds and syncs streams
ExamplesH.264, HEVC, AV1, AACMP4, MOV, MKV, WebM
Changing itNeeds re-encodingRemux, no quality loss

Which video container is best for streaming?

For web and app streaming, fragmented MP4 (fMP4) is the most common choice today, with MPEG-TS still used for older HLS players. These are cut into short segments and listed in a manifest. Plain MP4 is best for downloads and sharing, while MKV and MOV are better for editing and archiving than for delivery.

Does changing the container reduce video quality?

No, changing only the container does not reduce quality, because the compressed video and audio are copied as they are. Quality drops only when you re-encode with a codec or a lower bitrate. Some tools re-encode by default when converting, so check that the conversion is set to copy the streams.

Where it's used

Video platforms, creator apps and OTT services read many containers at upload time, from iPhone MOV files to OBS MKV recordings, and repackage them into streaming formats for playback on every device.

Where it usually goes wrong, and how FastPix handles it

Users upload whatever their phone, camera or editor produced, so platforms receive a mix of containers and codecs. Teams that only test with MP4 find broken uploads and players later.

Each upload or import is encoded by FastPix and served as HLS. Your app learns a file is playable from the signed video.media.ready webhook, so it never lists a video that cannot play yet.

By the numbers