Video - Video & Streaming
CDN for Live Courses: Setup & Strategy
Live course streaming in 2026 is a one-to-many video problem with a tight latency budget. Classic HLS with 6-second ...
A codec (short for coder-decoder) is an algorithm, plus the software or hardware that implements it, that compresses raw video or audio into a compact bitstream and decompresses it for playback. That is the whole answer to what is a codec: raw 1080p60 video runs about 1.5 Gb/s, and H.264 delivers it at roughly 5 Mb/s, about 300 times smaller.
As of 2026, H.264 (standardized in 2003) is still the most widely decodable video codec, while AV1 (released by the Alliance for Open Media in 2018) typically needs about 50 percent less bitrate than H.264 for the same visual quality. On the audio side, AAC remains the default for HLS delivery, and Opus (RFC 6716, 2012) dominates real-time voice and WebRTC.
A video codec removes redundancy in four stages: prediction, transform, quantization and entropy coding. Only quantization discards information, which is why it is the main knob behind the quality and bitrate trade-off. The decoder runs the same stages in reverse and rebuilds an approximation of each frame.
Frames come in three types. I-frames (keyframes) decode on their own, P-frames reference earlier frames, and B-frames reference both directions, so decode order differs from display order. The group of pictures (GOP) runs from one keyframe to the next, and for adaptive streaming it must align with segment boundaries: a 2-second segment at 30 fps needs a keyframe every 60 frames or players cannot switch renditions cleanly. Rate control (constant rate factor, capped VBR or CBR) decides how the bit budget is spread across frames.
Audio codecs follow the same logic in a different domain. AAC and Opus run a modified discrete cosine transform on short windows and use a psychoacoustic model to spend bits only where the ear can hear the difference.
The codec lives at the very start and the very end of the delivery path. A typical pipeline runs: capture, encode into an ABR ladder, package into fragmented MP4 or MPEG-TS segments, publish HLS or DASH manifests, cache on a CDN, then demux and decode on the device, usually in a hardware decoder block.
Everything in the middle is codec-agnostic. The CDN serves bytes and never inspects the bitstream, but the codec decides how many bytes there are, so encoder choices show up one to one in delivered terabytes. BlazingCDN, for example, does not transcode; it delivers the HLS, LL-HLS or DASH segments your encoder already produced, and the CDN cost calculator for video egress shows what each codec's bitrate savings are worth in delivered TB.
The right codec is the one your audience's devices can decode in hardware at the lowest bitrate for acceptable quality. Bitrate figures below are typical 2026 ranges for a 1080p top rung or stereo audio, and real numbers vary by content complexity and encoder settings.
| Codec | Type and year | Typical bitrate | Licensing | Decode coverage |
|---|---|---|---|---|
| H.264 (AVC) | Video, 2003 | 4–6 Mb/s | Patent pool | Near universal hardware decode |
| HEVC (H.265) | Video, 2013 | 2.5–3.5 Mb/s | Several patent pools | Most phones and TVs; uneven in browsers |
| AV1 | Video, 2018 | 2–2.5 Mb/s | Royalty-free | Hardware on newer devices; software elsewhere |
| AAC (LC and HE) | Audio, 1997 | 128 kb/s LC; 48–64 kb/s HE | Licensed | Universal; default for HLS |
| Opus | Audio, 2012 | 6–510 kb/s range; 96–128 kb/s music | Royalty-free | All major browsers; mandatory in WebRTC |
Newer codecs cut bitrate by up to half, but only hardware decode coverage tells you how much of your audience can actually receive them.
Take one million viewing hours on the 1080p top rung. At 5 Mb/s, one hour is 5 × 3,600 = 18,000 megabits, or 2.25 GB, so H.264 delivers about 2,250 TB. HEVC at 3 Mb/s delivers about 1,350 TB, and AV1 at 2.5 Mb/s about 1,125 TB (our estimates from the typical bitrates above).
The catch is coverage. If 40 percent of viewing happens on devices that decode AV1 in hardware, the blended saving is 0.4 × 1,125 = 450 TB, not 1,125 TB, and you now store and package two ladders. AV1 also encodes several times slower than H.264 at comparable presets, so the compute pays off on titles with heavy viewing and often does not on the long tail. A practical rule: encode AV1 for the head of the catalog, keep H.264 for everything, and revisit the cutoff as device share moves.
Codec vs. container: the codec compresses the media, the container wraps it. MP4, fragmented MP4, MPEG-TS, WebM and MKV hold one or more codec streams plus timing and metadata. An MP4 file can carry H.264, HEVC or AV1 video, so a file extension says nothing reliable about the codec inside.
Codec vs. profile and level: profiles define which coding tools a stream may use (H.264 Baseline, Main, High; HEVC Main 10), and levels cap resolution, frame rate and bitrate. A device that supports HEVC may still reject a 10-bit stream if it only decodes the Main profile.
Codec vs. streaming protocol: HLS and DASH describe how segments are listed and fetched over HTTP; they do not compress anything. The same AV1 segments can be referenced from both an HLS playlist and a DASH manifest when packaged as CMAF.
Players decide whether they can play a rendition before downloading it by reading the CODECS attribute in the HLS multivariant playlist or the codecs attribute in a DASH Representation, both using the RFC 6381 syntax. These strings are the quickest way to audit what your packager actually emits.
A mismatched string (a level that is too low, or hev1 instead of hvc1 for Safari) causes playback failures that look like network errors in client analytics, so check it before blaming the delivery path.
A codec compresses and decompresses the media, while a file format, or container, packages the compressed streams with timing and metadata. MP4 and MKV are containers that can hold H.264, HEVC, AV1, AAC or Opus. Two MP4 files can therefore require completely different decoders, which is why players read the codec string rather than the extension.
For maximum reach, H.264 remains the baseline video codec for streaming in 2026 because nearly every device decodes it in hardware. Add HEVC for Apple devices and TVs, and AV1 for newer hardware where bandwidth savings matter most. Most large services ship two or three codec ladders and let the player pick from the manifest codec strings.
For HLS video-on-demand and live streaming, AAC is the safer audio codec because Apple's ecosystem and most TVs expect it. Opus delivers better quality at low bitrates and very low latency, which is why WebRTC requires it. Opus is a strong default for browser-based and real-time audio, while AAC wins on device compatibility.
Yes, a more efficient codec reduces delivered bytes almost one to one, so AV1 at roughly half the bitrate of H.264 roughly halves egress for viewers who receive it. The real saving depends on the share of viewing on devices that decode the newer codec, and on extra encode compute and storage for a second rendition ladder.
This week, pull the CODECS attributes from your production manifests and join your player logs on decoder capability. Compute the share of viewing hours that could receive HEVC or AV1 in hardware, then multiply that share by the bitrate gap on your top two rungs. That single number tells you whether a second encode ladder pays for its compute and storage, or whether tightening H.264 rate control is the better use of a sprint.
If you deliver pre-encoded HLS, LL-HLS or DASH segments at volume, the BlazingCDN HLS streaming CDN page describes how those segments are served, with a 14-day testing period on real production traffic.
Heavy traffic.
Light bill.
The CDN for video and large traffic
Video - Video & Streaming
Live course streaming in 2026 is a one-to-many video problem with a tight latency budget. Classic HLS with 6-second ...
Video - Video & Streaming
To reduce streaming latency, shrink the buffer the player is forced to hold, then make the CDN deliver partial segments ...
Video - Video & Streaming
A live HLS channel with 6-second segments and 100,000 concurrent viewers puts roughly 33,000 requests per second on the ...
Video - Video & Streaming
As of 2026, the difference between a sports stream that feels live and one that feels delayed is mostly settled before ...