DASH manifests can list segments in three ways. SegmentList enumerates every URL explicitly (compact for short content, unwieldy for live). SegmentBase points at a single MP4 with byte-range index. SegmentTemplate parameterises URLs — media="video-$Number$.m4s" resolves to video-1.m4s, video-2.m4s and so on, and the player generates URLs on the fly. For live streams that publish a segment every 2 seconds for hours or days, SegmentTemplate is the only practical choice.

The two substitution modes are number-based ($Number$) and time-based ($Time$). Number mode uses sequential integers starting at startNumber. Time mode uses presentation timestamps, mapping to entries that explicitly enumerate t= (start time) and d= (duration) per segment, supporting variable segment durations. Time mode is required for low-latency DASH where segment timing must be exact.

SegmentTemplate plus SegmentTimeline together let an MPD describe hours of live content in 5–10 KB of XML. The downside is that the player must compute the live edge URL by combining availabilityStartTime, current wall-clock time, and template parameters. Small bugs here — clock drift between packager and player, off-by-one on startNumber — produce hard-to-diagnose live playback failures.

Book cover: Video Streaming, Volume 2 of the Fora Soft Video Engineering Handbook

The book · Volume 2 of 7

Video Streaming: A Complete Guide to Video Delivery: From Network Protocols and Transport to Ingest, HLS, and MPEG-DASH

SegmentTemplate keeps a DASH manifest small for long live streams, but a wrong $Number$ or $Time$ setup makes players request segments that do not exist. This volume covers SegmentTemplate in detail as part of MPEG-DASH, with MPD structure, live timing, CMAF packaging and how DASH and HLS address segments. Written by Nikolay Sapunov, CEO at Fora Soft.

Read it on Amazon →Kindle & paperback · Fora Soft Video Engineering Handbook

Players requesting missing DASH segments because of SegmentTemplate timing?

Send us your MPD and packager settings and we will return a SegmentTemplate audit with the timing fixes and a test plan for live and VOD. 250+ video products shipped since 2005.

Book a 30-min call →WhatsApp →Email us →