Skip to content

Instantly share code, notes, and snippets.

@srstrong
Created February 2, 2019 17:55
Show Gist options
  • Save srstrong/4a9507a4811fe1790b5cca6826f11ea1 to your computer and use it in GitHub Desktop.
Save srstrong/4a9507a4811fe1790b5cca6826f11ea1 to your computer and use it in GitHub Desktop.
DASH Manifest with 2 second segments, using segment timeline
<?xml version="1.0"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" xsi:xschemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" id="m0" publishTime="2019-02-01T11:16:00Z" type="dynamic" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash-if-simple" minimumUpdatePeriod="PT100H" availabilityStartTime="2019-02-01T15:45:00" timeShiftBufferDepth="PT600S" maxSegmentDuration="PT2S" minBufferTime="PT2S">
<Period id="p1" start="PT0.000S">
<AdaptationSet maxWidth="1280" maxHeight="720" maxFrameRate="25/1" par="16:9" id="256" contentType="video" segmentAlignment="true" lang="und" startWithSAP="1">
<SupplementalProperty schemeIdUri="urn:mpeg:dash:period_continuity:2014" value="p0"/>
<Role schemeIdUri="urn:mpeg:dash:role:id3as:stream_id" value="main"/>
<SegmentTemplate timescale="90000" presentationTimeOffset="393671" initialization="init/starttimestamp/$RepresentationID$" media="segment/cookie/starttimestamp/$RepresentationID$/$Time$">
<SegmentTimeline>
<S d="180000" r="2" t="393671"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation codecs="avc1.42001e" mimeType="video/mp4" width="1280" height="720" sar="1:1" id="256.video-with-timestamps" frameRate="25/1" bandwidth="2500000"/>
</AdaptationSet>
</Period>
<Period id="p2" start="PT6S">
<AdaptationSet maxWidth="1280" maxHeight="720" maxFrameRate="25/1" par="16:9" id="256" contentType="video" segmentAlignment="true" lang="und" startWithSAP="1">
<SupplementalProperty schemeIdUri="urn:mpeg:dash:period_continuity:2014" value="p1"/>
<Role schemeIdUri="urn:mpeg:dash:role:id3as:stream_id" value="main"/>
<Representation codecs="avc1.42001e" mimeType="video/mp4" width="1280" height="720" sar="1:1" id="256.video-with-timestamps" frameRate="25/1" bandwidth="2500000">
<InbandEventStream schemeIdUri="urn:id3as:timestamp" value="0"/>
<SegmentTemplate timescale="90000" presentationTimeOffset="933671" initialization="init/starttimestamp/$RepresentationID$" media="segment/cookie/starttimestamp/$RepresentationID$/$Time$">
<SegmentTimeline>
<S d="180000" r="23" t="933671"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
</Period>
<UTCTiming schemeIdUri="urn:mpeg:dash:utc:direct:2014" value="2019-02-01T15:45:01Z"/>
</MPD>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment