1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

tests.dash: add some basic tests for _dashparse

This commit is contained in:
Johan Andersson 2018-10-07 19:49:44 +02:00
parent 5ac273dc47
commit f0efb1b685
5 changed files with 1282 additions and 0 deletions

View File

@ -0,0 +1,413 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Unified Streaming Platform(version=1.7.25) -->
<MPD
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:dash:schema:mpd:2011"
xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd"
type="static"
mediaPresentationDuration="PT20M26.280S"
maxSegmentDuration="PT3S"
minBufferTime="PT10S"
profiles="urn:mpeg:dash:profile:isoff-live:2011">
<Period
duration="PT20M26.280S">
<BaseURL>dash/</BaseURL>
<AdaptationSet
group="1"
contentType="audio"
minBandwidth="96000"
maxBandwidth="96000"
segmentAlignment="true"
audioSamplingRate="48000"
mimeType="audio/mp4"
codecs="mp4a.40.2">
<AudioChannelConfiguration
schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011"
value="2">
</AudioChannelConfiguration>
<SegmentTemplate
timescale="48000"
initialization="rtalangdel9-23807321(3915817_ISM)-$RepresentationID$.dash"
media="rtalangdel9-23807321(3915817_ISM)-$RepresentationID$-$Time$.dash">
<SegmentTimeline>
<S t="0" d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" r="2" />
<S d="95232" />
<S d="96256" />
<S d="11264" />
</SegmentTimeline>
</SegmentTemplate>
<Representation
id="audio=96000"
bandwidth="96000">
</Representation>
</AdaptationSet>
<AdaptationSet
group="2"
contentType="video"
par="16:9"
minBandwidth="243739"
maxBandwidth="3165367"
minWidth="384"
maxWidth="1280"
minHeight="216"
maxHeight="720"
segmentAlignment="true"
frameRate="25"
mimeType="video/mp4"
startWithSAP="1">
<SegmentTemplate
timescale="25"
initialization="rtalangdel9-23807321(3915817_ISM)-$RepresentationID$.dash"
media="rtalangdel9-23807321(3915817_ISM)-$RepresentationID$-$Time$.dash">
<SegmentTimeline>
<S t="0" d="75" r="407" />
<S d="57" />
</SegmentTimeline>
</SegmentTemplate>
<Representation
id="video=243739"
bandwidth="243739"
width="384"
height="216"
codecs="avc1.42C00D"
scanType="progressive">
</Representation>
<Representation
id="video=683549"
bandwidth="683549"
width="640"
height="360"
codecs="avc1.42C01E"
scanType="progressive">
</Representation>
<Representation
id="video=1364540"
bandwidth="1364540"
width="768"
height="432"
codecs="avc1.4D401E"
scanType="progressive">
</Representation>
<Representation
id="video=2281292"
bandwidth="2281292"
width="1024"
height="576"
codecs="avc1.4D401F"
scanType="progressive">
</Representation>
<Representation
id="video=3165367"
bandwidth="3165367"
width="1280"
height="720"
codecs="avc1.4D401F"
scanType="progressive">
</Representation>
</AdaptationSet>
</Period>
</MPD>

View File

@ -0,0 +1,35 @@
<MPD mediaPresentationDuration="PT3459.520S" minBufferTime="PT2.00S" profiles="urn:hbbtv:dash:profile:isoff-live:2012,urn:mpeg:dash:profile:isoff-live:2011" type="static" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 DASH-MPD.xsd">
<BaseURL>./</BaseURL>
<Period>
<AdaptationSet contentType="audio" mimeType="audio/mp4" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Accessibility schemeIdUri="urn:tva:metadata:cs:AudioPurposeCS:2007" value="6" />
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
<SegmentTemplate initialization="$RepresentationID$/$RepresentationID$_00000.m4a" media="$RepresentationID$/$RepresentationID$_$Number%05d$.m4a" startNumber="1" timescale="48000">
<SegmentTimeline>
<S d="287744" t="0" />
<S d="288768" r="573" />
<S d="16384" />
</SegmentTimeline>
</SegmentTemplate>
<Representation audioSamplingRate="48000" bandwidth="97334" codecs="mp4a.40.5" id="PG-1369351-001A-ABSOLUTSVENSK-02_348_3">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2" />
</Representation>
</AdaptationSet>
<AdaptationSet contentType="video" mimeType="video/mp4" par="16:9" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<SegmentTemplate initialization="$RepresentationID$/$RepresentationID$_00000.m4v" media="$RepresentationID$/$RepresentationID$_$Number%05d$.m4v" startNumber="1" timescale="25000">
<SegmentTimeline>
<S d="150000" t="0" />
<S d="150000" r="574" />
<S d="88000" />
</SegmentTimeline>
</SegmentTemplate>
<Representation bandwidth="412581" codecs="avc1.42c015" frameRate="25" height="288" id="PG-1369351-001A-ABSOLUTSVENSK-02_456_1" sar="1:1" scanType="progressive" width="512" />
<Representation bandwidth="3089853" codecs="avc1.64001f" frameRate="25" height="720" id="PG-1369351-001A-ABSOLUTSVENSK-02_2796_1" sar="1:1" scanType="progressive" width="1280" />
<Representation bandwidth="1810190" codecs="avc1.4d401f" frameRate="25" height="720" id="PG-1369351-001A-ABSOLUTSVENSK-02_1680_1" sar="1:1" scanType="progressive" width="1280" />
<Representation bandwidth="293658" codecs="avc1.42c015" frameRate="25" height="288" id="PG-1369351-001A-ABSOLUTSVENSK-02_348_1" sar="1:1" scanType="progressive" width="512" />
<Representation bandwidth="1053668" codecs="avc1.4d401e" frameRate="25" height="432" id="PG-1369351-001A-ABSOLUTSVENSK-02_988_1" sar="1:1" scanType="progressive" width="768" />
<Representation bandwidth="170273" codecs="avc1.42c015" frameRate="25" height="288" id="PG-1369351-001A-ABSOLUTSVENSK-02_240_1" sar="1:1" scanType="progressive" width="512" />
<Representation bandwidth="607832" codecs="avc1.42c015" frameRate="25" height="288" id="PG-1369351-001A-ABSOLUTSVENSK-02_636_1" sar="1:1" scanType="progressive" width="512" />
</AdaptationSet>
</Period>
</MPD>

View File

@ -0,0 +1,67 @@
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" id="987" type="dynamic" profiles="urn:hbbtv:dash:profile:isoff-live:2012,urn:mpeg:dash:profile:isoff-live:2011" timeShiftBufferDepth="PT30.00S" publishTime="2017-08-22T20:11:10" minimumUpdatePeriod="PT8S" availabilityStartTime="2016-10-26T10:25:46" minBufferTime="PT30S" suggestedPresentationDelay="PT12.00S">
<Period id="1" start="PT0.00S">
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" subsegmentAlignment="true" startWithSAP="1" subsegmentStartsWithSAP="1" bitstreamSwitching="true">
<Representation id="1" width="768" height="432" frameRate="25/1" bandwidth="891968" codecs="avc1.4D401E">
<SegmentTemplate initialization="987_video_0_0_init.mp4?m=1477322398" media="987_video_0_0_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116869720" d="540000" r="4"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
<Representation id="2" width="512" height="288" frameRate="25/1" bandwidth="144000" codecs="avc1.42C015">
<SegmentTemplate initialization="987_video_0_1_init.mp4?m=1477322398" media="987_video_0_1_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116869720" d="540000" r="4"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
<Representation id="3" width="512" height="288" frameRate="25/1" bandwidth="251968" codecs="avc1.42C016">
<SegmentTemplate initialization="987_video_0_2_init.mp4?m=1477322398" media="987_video_0_2_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116869720" d="540000" r="4"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
<Representation id="4" width="512" height="288" frameRate="25/1" bandwidth="360000" codecs="avc1.42C016">
<SegmentTemplate initialization="987_video_0_3_init.mp4?m=1477322398" media="987_video_0_3_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116869720" d="540000" r="4"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
<Representation id="5" width="512" height="288" frameRate="25/1" bandwidth="539968" codecs="avc1.42C016">
<SegmentTemplate initialization="987_video_0_4_init.mp4?m=1477322398" media="987_video_0_4_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116869720" d="540000" r="4"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
<Representation id="6" width="1280" height="720" frameRate="25/1" bandwidth="1584000" codecs="avc1.4D401F">
<SegmentTemplate initialization="987_video_0_5_init.mp4?m=1477322398" media="987_video_0_5_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116869720" d="540000" r="4"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
<Representation id="7" width="1280" height="720" frameRate="25/1" bandwidth="2699968" codecs="avc1.4D401F">
<SegmentTemplate initialization="987_video_0_6_init.mp4?m=1477322398" media="987_video_0_6_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116869720" d="540000" r="4"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
<AdaptationSet mimeType="audio/mp4" segmentAlignment="0">
<Representation id="8" audioSamplingRate="48000" bandwidth="96028" codecs="mp4a.40.2">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
<SegmentTemplate initialization="987_audio_0_7_init.mp4?m=1477322398" media="987_audio_0_7_$Number$.mp4?m=1477322398" startNumber="4325851" timescale="90000">
<SegmentTimeline>
<S t="2336116870560" d="539520"/>
<S t="2336117410080" d="541440"/>
<S t="2336117951520" d="539520" r="2"/>
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
</Period>
</MPD>

View File

@ -0,0 +1,729 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" mediaPresentationDuration="PT58M3.56S" minBufferTime="PT1.5S" profiles="urn:mpeg:dash:profile:isoff-live:2011" publishTime="2017-09-04T02:46:15Z" type="static" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd">
<ProgramInformation>
<Title>20170903/1377626-002A/00ae5d67-d686-4c8c-b4ab-6848a14b7297/PG-1377626-002A-TROHOPPOCHKA-03</Title>
</ProgramInformation>
<Period id="0" start="PT0.0S">
<AdaptationSet frameRate="25" id="0" maxHeight="720" maxWidth="1280" mimeType="video/mp4" par="16:9" segmentAlignment="true" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<SegmentTemplate initialization="chunk_ctvideo_cfm4s_rid$RepresentationID$_cinit_mpd.m4s" media="chunk_ctvideo_cfm4s_rid$RepresentationID$_cs$Time$_mpd.m4s" presentationTimeOffset="0" timescale="90000">
<SegmentTimeline>
<S d="900000" t="0"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="900000"/>
<S d="320400"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation bandwidth="143000" codecs="avc1.42c015" height="288" id="p0a0r0" sar="1:1" width="512"/>
<Representation bandwidth="251000" codecs="avc1.42c015" height="288" id="p0a0r1" sar="1:1" width="512"/>
<Representation bandwidth="359000" codecs="avc1.42c015" height="288" id="p0a0r2" sar="1:1" width="512"/>
<Representation bandwidth="539000" codecs="avc1.42c015" height="288" id="p0a0r3" sar="1:1" width="512"/>
<Representation bandwidth="891000" codecs="avc1.4d401e" height="432" id="p0a0r4" sar="1:1" width="768"/>
<Representation bandwidth="1583000" codecs="avc1.4d401f" height="720" id="p0a0r5" sar="1:1" width="1280"/>
<Representation bandwidth="2699000" codecs="avc1.64001f" height="720" id="p0a0r6" sar="1:1" width="1280"/>
</AdaptationSet>
<AdaptationSet id="1" lang="eng" mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
<SegmentTemplate initialization="chunk_ctaudio_cfm4s_rid$RepresentationID$_cinit_mpd.m4s" media="chunk_ctaudio_cfm4s_rid$RepresentationID$_cs$Time$_mpd.m4s" presentationTimeOffset="0" timescale="24000">
<SegmentTimeline>
<S d="240000" t="0"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="240000"/>
<S d="85440"/>
</SegmentTimeline>
</SegmentTemplate>
<Representation audioSamplingRate="24000" bandwidth="94000" codecs="mp4a.40.5" id="p0a1r0">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
</Period>
</MPD>

View File

@ -0,0 +1,38 @@
from __future__ import absolute_import
import unittest
import os
from svtplay_dl.fetcher.dash import _dashparse
from svtplay_dl.utils.parser import setup_defaults
def parse(playlist):
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "dash-manifests", playlist)) as fd:
manifest = fd.read()
return _dashparse(setup_defaults(), manifest, "http://localhost", None, None)
class dashtest(unittest.TestCase):
def test_parse_cmore(self):
data = parse("cmore.mpd")
self.assertEquals(len(data[3261.367].files), 410)
self.assertEqual(len(data[3261.367].audio), 309)
self.assertTrue(data[3261.367].segments)
def test_parse_fff(self):
data = parse("fff.mpd")
self.assertEquals(len(data[3187.187].files), 578)
self.assertEqual(len(data[3187.187].audio), 577)
self.assertTrue(data[3187.187].segments)
def test_parse_nya(self):
data = parse("svtvod.mpd")
self.assertEquals(len(data[2793.0].files), 350)
self.assertEqual(len(data[2793.0].audio), 350)
self.assertTrue(data[2793.0].segments)
def test_parse_live(self):
data = parse("svtplay-live.mpd")
self.assertEquals(len(data[2795.9959999999996].files), 6)
self.assertEqual(len(data[2795.9959999999996].audio), 6)
self.assertTrue(data[2795.9959999999996].segments)