Understanding video formats, containers, and codecs
5 min read · Updated September 2026
Containers, audio codecs, adaptive streaming, and why modern web videos need lossless multiplexing.
Containers versus codecs
A media file format consists of two elements: the container and the compressed streams inside it. The container (such as MP4 or WebM) acts as an envelope with a table of contents, timing timestamps, and metadata.
Inside the container are video and audio codecs. Common video codecs include H.264 (AVC1), VP9, and AV1. H.264 offers near-universal compatibility across older televisions, phones, and editing software, while VP9 and AV1 provide superior compression efficiency for modern web streaming.
Audio codecs: AAC and Opus
Audio streams are compressed separately from video. The Advanced Audio Coding (AAC) codec is the standard companion to H.264 inside MP4 containers. The open Opus codec is typically paired with VP9 or AV1 inside WebM containers.
Mixing incompatible audio and video codecs inside an inappropriate container can cause files to fail playback on standard mobile media players.
Adaptive streaming and separate video/audio tracks
Modern streaming platforms deliver media using adaptive protocols such as DASH (Dynamic Adaptive Streaming over HTTP) or HLS. For resolutions above 720p (such as 1080p), platforms do not store single pre-merged files. Instead, video-only and audio-only streams are stored as separate fragments.
When preparing a video for local storage, the separate video and audio streams must be fetched and combined through lossless multiplexing (muxing). DownReels uses FFmpeg strictly in an isolated container without network access to perform this lossless merge, ensuring the output contains both clean video and full audio without quality loss or re-encoding.
Resolution, bitrate, and quality expectations
A higher pixel count does not guarantee a better image. Bitrate (the volume of data per second) determines fidelity. A high-bitrate 720p video often looks sharper and exhibits fewer compression artifacts than a heavily compressed 1080p stream.
DownReels defaults to 720p with maximum compatibility, while offering 1080p when reliable compatible streams exist. We never upscale lower-resolution sources.