ZippyCastJournal
← All articles

Streaming explained

Reading the video half of an MP4 codecs parameter

A practical guide to the video portion of the MP4 codecs parameter, what values like avc1.42401E describe, and how to use them when a stream misbehaves in ZippyCast.

Why the codecs parameter exists at all

When a browser or player is handed an MP4 file or stream, it does not have to download the whole thing before deciding whether it can play it. The MIME type can carry a codecs parameter that names the codecs used inside the container, and optionally adds profile, level and other configuration details. That lets the player make an early decision instead of discovering an unsupported codec halfway through startup.

The parameter is not a single value. It is a comma-separated list, and the order matters: the audio entry and the video entry are separate items. A typical string pairs an audio identifier such as mp4a.40.5 with a video identifier such as avc1.42401E. This article deals with the video half; the audio half has its own conventions and is covered separately.

ZippyCast is an empty-shell player: it supplies no channels, movies or playlists, and everything you watch comes from the provider whose credentials you entered. That makes the codecs parameter a provider-side detail you read rather than something you set. Knowing how to parse it helps you describe a problem accurately.

Decoding a value like avc1.42401E

Take the video entry avc1.42401E, which appears in the MPEG-DASH example in MDN's adaptive streaming guide. The first part, avc1, is the codec identifier for H.264/AVC. Everything after the first dot is a hexadecimal encoding of the AVC decoder configuration record: profile, constraint flags and level packed into three bytes.

Read as three byte pairs, 42 40 1E gives profile 0x42, constraint flags 0x40 and level 0x1E. Profile 0x42 is the Baseline profile; 0x4D is Main and 0x64 is High. Level 0x1E is 30 in decimal, which corresponds to level 3.0. So avc1.42401E describes Baseline-profile H.264 at level 3.0.

You do not need to memorise the table. The practical point is that the string is structured and finite: a codec family, then a profile, then a level. If two streams both say avc1 but differ after the dot, they are the same codec at different profiles or levels, and that difference can matter on constrained hardware.

What profile and level actually constrain

Profile describes the set of coding tools used. Baseline avoids certain features that cost more to decode; Main and High add tools that improve compression efficiency. Level describes the ceiling on resolution, frame rate and bitrate for a conforming stream. A level 3.0 stream is bounded well below what a level 4.1 stream may use.

This is why a device can play one avc1 stream and stumble on another. The container is the same, the codec family is the same, but the level may exceed what the hardware decoder was built for. When a channel stutters or refuses to start on a TV box while playing fine on a desktop browser, the video half of the codecs parameter is one of the first things worth comparing.

MDN's container guide notes that Firefox support for H.264 relies on the operating system's media infrastructure, so availability depends on the OS. That is a second reason the same stream can behave differently across devices running the same browser.

Other video identifiers you will meet

The MP4 container supports several video codecs, and the codecs parameter names them differently. MDN's container guide lists AVC (H.264), AV1, VP9 and others as supported in MP4 across browsers, with H.263 and MPEG-4 Part 2 Visual not supported. A stream using one of the unsupported entries is a genuine dead end in a browser-based player.

AV1 and VP9 appear in MP4 as well as in WebM. MDN notes that Firefox support for AV1 is disabled on Windows on ARM unless a preference is changed, and that Firefox for Android does not yet support AV1. Those are specific, documented gaps rather than general weaknesses, and they explain otherwise puzzling device-to-device differences.

When you see a video identifier you do not recognise, the useful move is to identify the codec family first, then the profile and level if the string carries them. That is enough to say whether the stream is asking for something unusual.

Using this when a channel misbehaves in ZippyCast

ZippyCast plays live HLS and MPEG-TS streams and most MP4 and MKV video-on-demand files directly in the browser, and remuxes some MKV and AVI files on the fly. If a file still cannot be played, the player offers an Open in VLC fallback. The codecs parameter helps you decide which of those situations you are in.

If the video entry names a codec the browser does not support, the VLC fallback is the sensible route, because VLC brings its own decoders. If the entry names a supported codec at a high level and the stream stutters only on a weak device, the problem is decoding capacity rather than compatibility, and a lower-quality variant is the better answer.

Remember that streams travel directly from your provider to your device; ZippyCast does not relay them. Buffering, missing channels and downtime are almost always provider-side. The codecs parameter tells you about the stream's demands, not about the provider's health, so keep the two diagnoses separate before you contact anyone.

A short checklist

Split the parameter on commas and identify which entry is video. Read the codec family from the part before the first dot. If it is avc1, decode the three byte pairs to get profile and level. Compare that against what the device in front of you is documented to handle.

If the family is unsupported in browsers, plan on the VLC fallback rather than repeated retries. If the family is supported but the level is high, try a lower-quality variant before assuming the channel is broken. And if other channels from the same provider also fail, stop reading the parameter and treat it as a provider issue.

Where ZippyCast fits

None of this makes ZippyCast a diagnostic tool for provider encoding. It is a player that renders what your provider sends, and it supplies no content of its own. What the codecs parameter gives you is a shared vocabulary: a way to describe precisely which stream failed and why, whether you are comparing notes with a provider's support desk or deciding between the browser player and the VLC fallback.

Make yourself at home.

Try ZippyCast with your own authorized IPTV provider.

Open ZippyCast →