
MPEG-DASH (Dynamic Adaptive Streaming over HTTP) is an ISO standard for streaming video over ordinary web servers. Your player first reads an XML manifest called the MPD file, which lists every quality level and segment URL, then downloads short segments at the highest quality your connection can sustain.
TL;DR:
<S t="0" d="51200" r="7"/>, described all eight 4-second video segments of a 32-second clip.MPEG-DASH is a delivery standard from the Moving Picture Experts Group, published as ISO/IEC 23009-1 in 2012 and now in its ISO/IEC 23009-1:2026 edition. The MPEG overview says DASH supports "both on-demand and live streaming" over "existing available HTTP infrastructure", with provisions for the MPEG-4 file format and MPEG-2 TS but usable "with any media format".
DASH doesn't compress anything, so your H.264, HEVC or AV1 bitstream stays as encoded; it defines the manifest and the rules for the segment files it points at. Like HLS, which our guide to how the main video streaming protocols compare sets beside it, DASH sends short segments at several bitrates over plain HTTP.
If you're choosing between the two formats, start with our HLS vs MPEG-DASH comparison; this post stays on the MPD itself. Short definitions of DASH, MPD and the other terms here sit in our video streaming glossary.
An MPD (Media Presentation Description) is an XML file, usually named .mpd and served with the MIME type application/dash+xml. It plays the role an M3U8 master playlist plays in HLS, but one MPD describes every track and quality in a single document. Our guide to M3U8 files and HLS segmentation shows the HLS side line by line.
To show you a real one, we packaged a 32-second 1080p clip from our own archive with FFmpeg 7.0.2: two H.264 renditions (1080p and 720p) with a keyframe every 2 seconds, plus a silent AAC track FFmpeg generated, cut into 4-second segments.
ffmpeg -i mezz.mp4 -map 0:0 -map 0:1 -map 0:2 -c copy \
-f dash -seg_duration 4 \
-adaptation_sets "id=0,streams=v id=1,streams=a" \
vod-timeline/manifest.mpdThe run wrote one manifest, three initialization segments and 25 media segments.

An MPD nests four levels:
The bandwidth attribute is the number your player compares with its connection. The standard defines it against a hypothetical constant-bitrate channel: at that rate, playback won't stall once the player has buffered minBufferTime worth of data. FFmpeg wrote the average bitrate it measured, 3,999,284 bit/s for the 1080p stream (the same figure ffprobe reported for the source), so a busy scene can need more than the label says. Your encoding ladder sets those rungs, as our bitrate ladder guide explains.
Every Representation must tell your player where its segments live. The DASH Industry Forum (DASH-IF) timing guidelines name three interoperable addressing modes, and we produced these trimmed excerpts from the same encode by changing FFmpeg flags:
# default: SegmentTemplate + SegmentTimeline (DASH-IF "explicit addressing")
<SegmentTemplate timescale="12800" initialization="init-stream$RepresentationID$.m4s"
media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startNumber="1">
<SegmentTimeline>
<S t="0" d="51200" r="7" />
</SegmentTimeline>
</SegmentTemplate>
# -use_timeline 0: SegmentTemplate with @duration ("simple addressing")
<SegmentTemplate timescale="1000000" duration="4000000" ... startNumber="1">
# -use_template 0 -use_timeline 0: SegmentList, one URL per segment
<SegmentList timescale="1000000" duration="4000000" startNumber="1">
<Initialization sourceURL="init-stream0.m4s" />
<SegmentURL media="chunk-stream0-00001.m4s" />
... (8 entries per video Representation)A SegmentTemplate builds URLs from placeholders such as $RepresentationID$, $Number$, $Time$ and $Bandwidth$, using $Number$ or $Time$ but never both. With only a duration, your player assumes every segment lasts exactly 4 seconds, a timing DASH-IF calls "nominal" because the real samples can drift from it.
A SegmentTimeline records the exact start and length of each segment. In <S t="0" d="51200" r="7"/>, d divided by the 12,800 timescale is 4 seconds, and r counts additional repeats, so r="7" means 8 segments. The audio track shows why exactness matters: its segments came out at 3.925, 4.011 and 3.989 seconds plus a 64-millisecond tail, because each holds a whole number of 1,024-sample audio frames (188,416 samples is 184 of them).
A SegmentList spells out every URL, and DASH-IF's guidelines leave it out of their three modes. The third mode is SegmentBase, or indexed addressing: one file per Representation, plus a byte range pointing at its index box. One catch surfaced in our run, since FFmpeg labelled the SegmentList manifest isoff-live even though that profile requires a SegmentTemplate.
A short standard-library script of ours expands the timeline the way your player does. This is its real output, trimmed to the 1080p Representation:
$ python3 mpd_urls.py vod-timeline/manifest.mpd
type: static | profile: urn:mpeg:dash:profile:isoff-live:2011
video rep 0 1920x1080 bandwidth=3999284
init: init-stream0.m4s
chunk-stream0-00001.m4s start 0.000s dur 4.000s
chunk-stream0-00002.m4s start 4.000s dur 4.000s
chunk-stream0-00003.m4s start 8.000s dur 4.000s
... 8 media segments, 32.000s totalA static MPD describes finished content you can seek through freely. A dynamic MPD is mapped to wall-clock time, with segments appearing and expiring as the stream moves. We reran the packaging in real time with a three-segment window and copied the manifest 18.5 seconds in:
type="dynamic"
minimumUpdatePeriod="PT4S"
suggestedPresentationDelay="PT4S"
availabilityStartTime="2026-11-04T09:45:58.542Z"
publishTime="2026-11-04T09:46:14.005Z"
timeShiftBufferDepth="PT12.0S"
...
<SegmentTemplate timescale="12800" ... startNumber="2">
<SegmentTimeline>
<S t="51200" d="51200" r="2" />Here availabilityStartTime anchors the timeline to the wall clock, and minimumUpdatePeriod is the shortest time before the MPD may change, which tells your player how often to fetch it again. The timeShiftBufferDepth of 12 seconds, or three segments, is how far back you can rewind, and segment 1 had already left that window, so the timeline starts at segment 2. When the input ended, FFmpeg rewrote the file as static with a 32-second duration, the switch DASH-IF describes for turning a finished live event into a recording.
The profiles attribute declares which subset of ISO/IEC 23009-1 an MPD follows, so your player knows the rules before it parses further. Three you'll run into:
The isoff profiles carry fragmented MP4 segments, the format our MPEG-TS vs fMP4 comparison unpacks byte by byte.
The MPD lists the options, and your player chooses. In a browser that player is JavaScript feeding Media Source Extensions, as our guide to how web video players work explains. The DASH-IF reference player, dash.js, works like this:
Helper rules guard the result, for example by reacting to a nearly empty buffer or abandoning slow downloads, and our adaptive bitrate streaming guide covers the trade-offs. Protected streams add ContentProtection elements for Widevine or PlayReady, which our DRM systems explainer compares.
Each entry in the AIOZ Stream API's qualities array sets a type and a container_type, and the Video API reference says: "For hls, container_type supports mpegts or mp4. For dash, container_type supports fmp4." Video uses H.264 or H.265 and audio uses AAC. This body uses the documented fields (not run, since we have no AIOZ credentials here):
POST https://api.aiozstream.network/api/media/create
{
"title": "My Video",
"type": "video",
"qualities": [
{ "resolution": "1080p", "type": "dash", "container_type": "fmp4",
"video_config": { "codec": "h264", "bitrate": 5000000, "index": 0 } },
{ "resolution": "720p", "type": "dash", "container_type": "fmp4",
"video_config": { "codec": "h264", "bitrate": 3000000, "index": 0 } }
]
}Both bitrates sit under the documented caps of 6 Mbit/s at 1080p and 4 Mbit/s at 720p. A finished video returns a dash_url ending in /manifest plus a dash_player_url for the hosted player, which the player docs say supports MPEG-DASH. Live session responses list an hls_url but no DASH URL.
What the docs don't cover yet: the profile, addressing mode and segment duration of the MPDs AIOZ Stream generates.
Next step: set type and container_type per quality in the AIOZ Stream Video API reference.
What is the difference between an MPD and an M3U8?
An M3U8 is the text playlist HLS uses, split into a master playlist and one media playlist per rendition. An MPD is the single XML file DASH uses for every track, quality and segment rule.
How do I open an MPD file?
It is plain XML, so any text editor shows its structure. To watch it, load the URL into a DASH player such as dash.js, the DASH-IF reference player that runs in browsers through Media Source Extensions.
Is MPEG-DASH a codec?
No. DASH describes and delivers segments, while codecs such as H.264 or AV1 compress the pictures inside them, so you can carry any codec your players decode.
What does r mean in a SegmentTimeline?
It counts additional segments with the same duration. So r="7" describes 8 segments, and a missing r means one segment.
Why did my live MPD turn static when the stream ended?
DASH-IF's guidelines describe converting a finished live presentation to static so players treat it as an on-demand recording. Our FFmpeg run did exactly that, replacing the live window with mediaPresentationDuration="PT32.0S".

MPEG-DASH streams adaptive video over HTTP from an XML MPD file. See a real MPD: Periods, AdaptationSets, Representations, segment addressing and live MPDs.

What is CMAF? The ISO format that packages video as fragmented MP4 so one set of files serves HLS and DASH, with its chunks, brands and low-latency role.

CBR vs VBR vs CRF explained: what each video rate control mode holds fixed, how maxrate and bufsize cap it, our x264 test results, and which mode to use where.

A live streaming API tutorial for AIOZ Stream: create a session, push RTMP, poll real-time stats every 5 to 30 seconds, then list the saved recordings.

Restream to multiple platforms by sending one feed to a relay. Learn the bandwidth math, platform rules and how AIOZ Stream multicast forwards your RTMP stream.

MPEG-TS vs fMP4 for HLS: how 188-byte TS packets and fMP4 init segments differ, what each costs in overhead, which codecs need fMP4, and when TS still fits.