Skip to content

Instantly share code, notes, and snippets.

@kliph
Created August 17, 2015 21:31
Show Gist options
  • Save kliph/58da33de662bd4672841 to your computer and use it in GitHub Desktop.
Save kliph/58da33de662bd4672841 to your computer and use it in GitHub Desktop.
MPD with pauses between Periods
<?xml version='1.0' encoding='UTF-8'?>
<MPD
xmlns='urn:mpeg:dash:schema:mpd:2011'
profiles='urn:mpeg:dash:profile:isoff-live:2011'
type='static'
mediaPresentationDuration='PT12.000S'
minBufferTime='PT10S'>
<Period id="0" start="PT0S" duration="PT2S">
<BaseURL>http://vushaper-development.s3.amazonaws.com/PIoHFOON/</BaseURL>
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="und">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation audioSamplingRate="44100" bandwidth="122617" codecs="mp4a.40.2" id="./audio/und">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation bandwidth="929967" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="165868" codecs="avc1.42c00c" frameRate="15" height="224" id="./video/1" width="400"/>
<Representation bandwidth="551472" codecs="avc1.42c015" frameRate="24000/1001" height="270" id="./video/1" width="480"/>
<Representation bandwidth="1238022" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="365184" codecs="avc1.42c00d" frameRate="24000/1001" height="224" id="./video/1" width="400"/>
<Representation bandwidth="1559745" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
</AdaptationSet>
</Period>
<Period id="1" start="PT2S" duration="PT2S">
<BaseURL>http://vushaper-development.s3.amazonaws.com/PIoHFOON/</BaseURL>
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="und">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation audioSamplingRate="44100" bandwidth="122617" codecs="mp4a.40.2" id="./audio/und">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation bandwidth="929967" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="165868" codecs="avc1.42c00c" frameRate="15" height="224" id="./video/1" width="400"/>
<Representation bandwidth="551472" codecs="avc1.42c015" frameRate="24000/1001" height="270" id="./video/1" width="480"/>
<Representation bandwidth="1238022" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="365184" codecs="avc1.42c00d" frameRate="24000/1001" height="224" id="./video/1" width="400"/>
<Representation bandwidth="1559745" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
</AdaptationSet>
</Period>
<Period id="2" start="PT4S" duration="PT2S">
<BaseURL>http://vushaper-development.s3.amazonaws.com/PIoHFOON/</BaseURL>
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="und">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation audioSamplingRate="44100" bandwidth="122617" codecs="mp4a.40.2" id="./audio/und">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation bandwidth="929967" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="165868" codecs="avc1.42c00c" frameRate="15" height="224" id="./video/1" width="400"/>
<Representation bandwidth="551472" codecs="avc1.42c015" frameRate="24000/1001" height="270" id="./video/1" width="480"/>
<Representation bandwidth="1238022" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="365184" codecs="avc1.42c00d" frameRate="24000/1001" height="224" id="./video/1" width="400"/>
<Representation bandwidth="1559745" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
</AdaptationSet>
</Period>
<Period id="3" start="PT6S" duration="PT2S">
<BaseURL>http://vushaper-development.s3.amazonaws.com/PIoHFOON/</BaseURL>
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="und">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation audioSamplingRate="44100" bandwidth="122617" codecs="mp4a.40.2" id="./audio/und">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation bandwidth="929967" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="165868" codecs="avc1.42c00c" frameRate="15" height="224" id="./video/1" width="400"/>
<Representation bandwidth="551472" codecs="avc1.42c015" frameRate="24000/1001" height="270" id="./video/1" width="480"/>
<Representation bandwidth="1238022" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="365184" codecs="avc1.42c00d" frameRate="24000/1001" height="224" id="./video/1" width="400"/>
<Representation bandwidth="1559745" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
</AdaptationSet>
</Period>
<Period id="4" start="PT8S" duration="PT2S">
<BaseURL>http://vushaper-development.s3.amazonaws.com/PIoHFOON/</BaseURL>
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="und">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation audioSamplingRate="44100" bandwidth="122617" codecs="mp4a.40.2" id="./audio/und">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation bandwidth="929967" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="165868" codecs="avc1.42c00c" frameRate="15" height="224" id="./video/1" width="400"/>
<Representation bandwidth="551472" codecs="avc1.42c015" frameRate="24000/1001" height="270" id="./video/1" width="480"/>
<Representation bandwidth="1238022" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="365184" codecs="avc1.42c00d" frameRate="24000/1001" height="224" id="./video/1" width="400"/>
<Representation bandwidth="1559745" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
</AdaptationSet>
</Period>
<Period id="5" start="PT10S" duration="PT2S">
<BaseURL>http://vushaper-development.s3.amazonaws.com/PIoHFOON/</BaseURL>
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="und">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation audioSamplingRate="44100" bandwidth="122617" codecs="mp4a.40.2" id="./audio/und">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
<SegmentTemplate duration="2669" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4f" startNumber="0" timescale="1000"/>
<Representation bandwidth="929967" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="165868" codecs="avc1.42c00c" frameRate="15" height="224" id="./video/1" width="400"/>
<Representation bandwidth="551472" codecs="avc1.42c015" frameRate="24000/1001" height="270" id="./video/1" width="480"/>
<Representation bandwidth="1238022" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
<Representation bandwidth="365184" codecs="avc1.42c00d" frameRate="24000/1001" height="224" id="./video/1" width="400"/>
<Representation bandwidth="1559745" codecs="avc1.42c01e" frameRate="24000/1001" height="360" id="./video/1" width="640"/>
</AdaptationSet>
</Period>
</MPD>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment