ZippyCastJournal
← All articles

Streaming explained

Reading the MPD type attribute: static versus dynamic streams

A practical guide to the type attribute in an MPEG-DASH MPD file, what static and dynamic signal about a stream, and how to read it when a channel misbehaves in ZippyCast.

Why one attribute matters

An MPEG-DASH stream is described by a Media Presentation Description, an XML document that tells the player where the media pieces live and what they contain. Near the top of that document sits a single attribute on the MPD element: type. It takes one of two values, static or dynamic, and that one word shapes how a player treats the whole presentation.

When a channel in ZippyCast behaves unexpectedly, the MPD is one of the first things worth opening. You do not need to understand every element to get value from it. Reading the type attribute, and noticing what else the document contains alongside it, is a quick way to form a hypothesis about whether you are looking at a finished file or an ongoing broadcast.

What static means

A static MPD describes a presentation with a fixed, finite duration. The document typically carries a mediaPresentationDuration attribute giving the total length, and the player can treat the whole thing as a known quantity. This is the shape you expect for video on demand: the media is already complete, the segment list is settled, and seeking is meaningful because there is a defined beginning and end.

In the reference example of an on-demand profile, the MPD declares type static together with a mediaPresentationDuration of PT654S, and lists a set of representations each with its own bandwidth. The player reads the list, picks a representation, and plays through it. Nothing about the presentation changes while you watch.

What dynamic means

A dynamic MPD describes a presentation that is still being produced. The document does not promise a fixed end, and the segment information is expected to be refreshed as new media becomes available. This is the shape associated with live services; the reference material notes that for live services the LIVE profile is a requirement.

The practical consequence is that a dynamic MPD is a moving target. The player must re-fetch or re-evaluate the description as playback continues, because the list of available segments grows. If you open a dynamic MPD and see a segment list that looks short or that seems to stop abruptly, that is not necessarily a fault; it may simply reflect the moment you looked.

The profiles that travel with type

The type attribute does not appear alone. MPDs also declare a profiles value, and the two are related in practice. The on-demand profile, identified in the reference as urn:mpeg:dash:profile:isoff-on-demand:2011, is the natural companion to static presentations: you supply a set of contiguous files, specify the bandwidth for each, and the appropriate one is chosen automatically.

The reference also lists reasons you might choose the LIVE profile even for content that is not live. These include a client or server that does not support range requests, a server that cannot cache or prefetch range requests efficiently, a large segment index that slows startup, or a wish to reuse the same media files for both live transmission and later on-demand delivery. So do not assume dynamic always means a live channel; it can be a packaging decision.

Segment indexing tells you more

Alongside type, the way segments are described is informative. An MPD may use a SegmentBase with an Initialization sourceURL and a byte range, a SegmentList enumerating SegmentURL entries with media ranges, or a segment index structure. The reference notes that a segment index, sometimes called SIDX, describes a segment by giving its earliest presentation time and other metadata, and can make up a large portion of the MPD file.

When you are troubleshooting in ZippyCast, this matters because a large index has to be loaded before playback can begin, which the reference lists as a reason startup can be a little slower. If a channel takes a noticeable moment to start and the MPD is dominated by index data, that is a plausible explanation rather than a mystery.

Putting it to use in ZippyCast

ZippyCast is an empty-shell player: it supplies no channels or media of its own, and everything you watch comes from the provider whose credentials you entered. That means the MPD you inspect belongs to your provider, and any conclusion you draw about it is really a conclusion about their packaging.

A sensible routine is this. If a channel will not start, open the MPD and check the type attribute first. A static presentation with a stated duration that still fails points toward a problem with the referenced segments or with the codecs declared in the document. A dynamic presentation that fails points toward the live refresh path. Either way, note what you found before contacting your provider, because streams travel directly from them to your device and ZippyCast does not relay them. Buffering, missing channels and downtime are almost always provider-side, and a specific observation about the MPD makes a more useful support request than a general complaint.

A note on fallbacks

The reference material on adaptive sources suggests offering a plain MP4 or WebM fallback alongside an MPD for browsers that do not support MPEG-DASH. You cannot add that yourself to a provider's stream, but the idea is worth keeping in mind: when a DASH presentation will not play, a non-adaptive file of the same content is the simplest alternative. In ZippyCast, the Open in VLC fallback serves a similar purpose for files the browser cannot handle, and it is worth remembering when a DASH channel proves stubborn.

Make yourself at home.

Try ZippyCast with your own authorized IPTV provider.

Open ZippyCast →