Skip to content

Commit 90d0544

Browse files
authored
Merge pull request #42 from zencoder/add-attributes
First stage adding additional parameters to match spec
2 parents 57e15b1 + 19f608c commit 90d0544

12 files changed

+257
-161
lines changed

mpd/fixtures/hbbtv_profile.mpd

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:hbbtv:dash:profile:isoff-live:2012,urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT6M16S" minBufferTime="PT1.97S">
33
<Period>
4-
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="en">
4+
<AdaptationSet id="7357" mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="en">
55
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" xmlns:cenc="urn:mpeg:cenc:2013" cenc:default_KID="08e36702-8f33-436c-a5dd60ffe5571e60" value="cenc"></ContentProtection>
66
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" xmlns:cenc="urn:mpeg:cenc:2013">
77
<cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQWr3VL1VKTyq40GH3YUJRVRoIY2FzdGxhYnMiGFdyM1ZMMVZLVHlxNDBHSDNZVUpSVlE9PTIHZGVmYXVsdA==</cenc:pssh>
@@ -12,11 +12,11 @@
1212
</ContentProtection>
1313
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"></Role>
1414
<SegmentTemplate duration="1968" initialization="$RepresentationID$/audio/en/init.mp4" media="$RepresentationID$/audio/en/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
15-
<Representation audioSamplingRate="44100" bandwidth="67095" codecs="mp4a.40.2" id="800">
15+
<Representation id="800" audioSamplingRate="44100" bandwidth="67095" codecs="mp4a.40.2">
1616
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></AudioChannelConfiguration>
1717
</Representation>
1818
</AdaptationSet>
19-
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
19+
<AdaptationSet id="7357" mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true">
2020
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" xmlns:cenc="urn:mpeg:cenc:2013" cenc:default_KID="08e36702-8f33-436c-a5dd60ffe5571e60" value="cenc"></ContentProtection>
2121
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" xmlns:cenc="urn:mpeg:cenc:2013">
2222
<cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQWr3VL1VKTyq40GH3YUJRVRoIY2FzdGxhYnMiGFdyM1ZMMVZLVHlxNDBHSDNZVUpSVlE9PTIHZGVmYXVsdA==</cenc:pssh>
@@ -27,13 +27,13 @@
2727
</ContentProtection>
2828
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"></Role>
2929
<SegmentTemplate duration="1968" initialization="$RepresentationID$/video/1/init.mp4" media="$RepresentationID$/video/1/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
30-
<Representation bandwidth="1518664" codecs="avc1.4d401f" frameRate="30000/1001" height="540" id="800" width="960"></Representation>
31-
<Representation bandwidth="1911775" codecs="avc1.4d401f" frameRate="30000/1001" height="576" id="1000" width="1024"></Representation>
32-
<Representation bandwidth="2295158" codecs="avc1.4d401f" frameRate="30000/1001" height="576" id="1200" width="1024"></Representation>
33-
<Representation bandwidth="2780732" codecs="avc1.4d401f" frameRate="30000/1001" height="720" id="1500" width="1280"></Representation>
30+
<Representation id="800" bandwidth="1518664" codecs="avc1.4d401f" frameRate="30000/1001" height="540" width="960"></Representation>
31+
<Representation id="1000" bandwidth="1911775" codecs="avc1.4d401f" frameRate="30000/1001" height="576" width="1024"></Representation>
32+
<Representation id="1200" bandwidth="2295158" codecs="avc1.4d401f" frameRate="30000/1001" height="576" width="1024"></Representation>
33+
<Representation id="1500" bandwidth="2780732" codecs="avc1.4d401f" frameRate="30000/1001" height="720" width="1280"></Representation>
3434
</AdaptationSet>
35-
<AdaptationSet mimeType="text/vtt" lang="en">
36-
<Representation bandwidth="256" id="subtitle_en">
35+
<AdaptationSet id="7357" mimeType="text/vtt" lang="en">
36+
<Representation id="subtitle_en" bandwidth="256">
3737
<BaseURL>http://example.com/content/sintel/subtitles/subtitles_en.vtt</BaseURL>
3838
</Representation>
3939
</AdaptationSet>

mpd/fixtures/live_profile.mpd

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT6M16S" minBufferTime="PT1.97S">
33
<Period>
4-
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="en">
4+
<AdaptationSet id="7357" mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="en">
55
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" xmlns:cenc="urn:mpeg:cenc:2013" cenc:default_KID="08e36702-8f33-436c-a5dd60ffe5571e60" value="cenc"></ContentProtection>
66
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" xmlns:cenc="urn:mpeg:cenc:2013">
77
<cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQWr3VL1VKTyq40GH3YUJRVRoIY2FzdGxhYnMiGFdyM1ZMMVZLVHlxNDBHSDNZVUpSVlE9PTIHZGVmYXVsdA==</cenc:pssh>
@@ -12,9 +12,9 @@
1212
</ContentProtection>
1313
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"></Role>
1414
<SegmentTemplate duration="1968" initialization="$RepresentationID$/audio/en/init.mp4" media="$RepresentationID$/audio/en/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
15-
<Representation audioSamplingRate="44100" bandwidth="67095" codecs="mp4a.40.2" id="800"></Representation>
15+
<Representation id="800" audioSamplingRate="44100" bandwidth="67095" codecs="mp4a.40.2"></Representation>
1616
</AdaptationSet>
17-
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
17+
<AdaptationSet id="7357" mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true">
1818
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" xmlns:cenc="urn:mpeg:cenc:2013" cenc:default_KID="08e36702-8f33-436c-a5dd60ffe5571e60" value="cenc"></ContentProtection>
1919
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" xmlns:cenc="urn:mpeg:cenc:2013">
2020
<cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQWr3VL1VKTyq40GH3YUJRVRoIY2FzdGxhYnMiGFdyM1ZMMVZLVHlxNDBHSDNZVUpSVlE9PTIHZGVmYXVsdA==</cenc:pssh>
@@ -25,13 +25,13 @@
2525
</ContentProtection>
2626
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"></Role>
2727
<SegmentTemplate duration="1968" initialization="$RepresentationID$/video/1/init.mp4" media="$RepresentationID$/video/1/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
28-
<Representation bandwidth="1518664" codecs="avc1.4d401f" frameRate="30000/1001" height="540" id="800" width="960"></Representation>
29-
<Representation bandwidth="1911775" codecs="avc1.4d401f" frameRate="30000/1001" height="576" id="1000" width="1024"></Representation>
30-
<Representation bandwidth="2295158" codecs="avc1.4d401f" frameRate="30000/1001" height="576" id="1200" width="1024"></Representation>
31-
<Representation bandwidth="2780732" codecs="avc1.4d401f" frameRate="30000/1001" height="720" id="1500" width="1280"></Representation>
28+
<Representation id="800" bandwidth="1518664" codecs="avc1.4d401f" frameRate="30000/1001" height="540" width="960"></Representation>
29+
<Representation id="1000" bandwidth="1911775" codecs="avc1.4d401f" frameRate="30000/1001" height="576" width="1024"></Representation>
30+
<Representation id="1200" bandwidth="2295158" codecs="avc1.4d401f" frameRate="30000/1001" height="576" width="1024"></Representation>
31+
<Representation id="1500" bandwidth="2780732" codecs="avc1.4d401f" frameRate="30000/1001" height="720" width="1280"></Representation>
3232
</AdaptationSet>
33-
<AdaptationSet mimeType="text/vtt" lang="en">
34-
<Representation bandwidth="256" id="subtitle_en">
33+
<AdaptationSet id="7357" mimeType="text/vtt" lang="en">
34+
<Representation id="subtitle_en" bandwidth="256">
3535
<BaseURL>http://example.com/content/sintel/subtitles/subtitles_en.vtt</BaseURL>
3636
</Representation>
3737
</AdaptationSet>

mpd/fixtures/newperiod.mpd

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT6M16S" minBufferTime="PT1.97S">
3+
<Period>
4+
<AdaptationSet id="1" mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true">
5+
<SegmentTemplate duration="1968" initialization="$RepresentationID$/video-1.mp4" media="$RepresentationID$/video-1/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
6+
</AdaptationSet>
7+
<AdaptationSet id="1" mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="en">
8+
<SegmentTemplate duration="1968" initialization="$RepresentationID$/audio-1.mp4" media="$RepresentationID$/audio-1/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
9+
</AdaptationSet>
10+
</Period>
11+
<Period duration="PT3M0S">
12+
<AdaptationSet id="2" mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true">
13+
<SegmentTemplate duration="1968" initialization="$RepresentationID$/video-2.mp4" media="$RepresentationID$/video-2/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
14+
</AdaptationSet>
15+
<AdaptationSet id="2" mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="en">
16+
<SegmentTemplate duration="1968" initialization="$RepresentationID$/audio-2.mp4" media="$RepresentationID$/audio-2/seg-$Number$.m4f" startNumber="0" timescale="1000"></SegmentTemplate>
17+
</AdaptationSet>
18+
</Period>
19+
</MPD>

mpd/fixtures/ondemand_profile.mpd

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" type="static" mediaPresentationDuration="PT30S" minBufferTime="PT1.97S">
33
<Period>
4-
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="und">
4+
<AdaptationSet id="7357" mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="und">
55
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" xmlns:cenc="urn:mpeg:cenc:2013" cenc:default_KID="08e36702-8f33-436c-a5dd60ffe5571e60" value="cenc"></ContentProtection>
66
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" xmlns:cenc="urn:mpeg:cenc:2013">
77
<cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQWr3VL1VKTyq40GH3YUJRVRoIY2FzdGxhYnMiGFdyM1ZMMVZLVHlxNDBHSDNZVUpSVlE9PTIHZGVmYXVsdA==</cenc:pssh>
@@ -10,14 +10,14 @@
1010
<mspr:pro>BgIAAAEAAQD8ATwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiA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cASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBMADkAVwA5AFcAawBwAFYASwBrACsANAAwAEcASAAzAFkAVQBKAFIAVgBRAD0APQA8AC8ASwBJAEQAPgA8AEMASABFAEMASwBTAFUATQA+AEkASwB6AFkAMgBIAFoATABBAGwASQA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</cenc:pssh>
1212
</ContentProtection>
13-
<Representation audioSamplingRate="44100" bandwidth="128558" codecs="mp4a.40.5" id="800k/audio-und">
13+
<Representation id="800k/audio-und" audioSamplingRate="44100" bandwidth="128558" codecs="mp4a.40.5">
1414
<BaseURL>800k/output-audio-und.mp4</BaseURL>
1515
<SegmentBase indexRange="629-756">
1616
<Initialization range="0-628"></Initialization>
1717
</SegmentBase>
1818
</Representation>
1919
</AdaptationSet>
20-
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
20+
<AdaptationSet id="7357" mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true">
2121
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" xmlns:cenc="urn:mpeg:cenc:2013" cenc:default_KID="08e36702-8f33-436c-a5dd60ffe5571e60" value="cenc"></ContentProtection>
2222
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed" xmlns:cenc="urn:mpeg:cenc:2013">
2323
<cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQWr3VL1VKTyq40GH3YUJRVRoIY2FzdGxhYnMiGFdyM1ZMMVZLVHlxNDBHSDNZVUpSVlE9PTIHZGVmYXVsdA==</cenc:pssh>
@@ -26,21 +26,21 @@
2626
<mspr:pro>BgIAAAEAAQD8ATwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB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D4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBMADkAVwA5AFcAawBwAFYASwBrACsANAAwAEcASAAzAFkAVQBKAFIAVgBRAD0APQA8AC8ASwBJAEQAPgA8AEMASABFAEMASwBTAFUATQA+AEkASwB6AFkAMgBIAFoATABBAGwASQA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</cenc:pssh>
2828
</ContentProtection>
29-
<Representation bandwidth="1100690" codecs="avc1.4d401e" frameRate="30000/1001" height="360" id="800k/video-1" width="640">
29+
<Representation id="800k/video-1" bandwidth="1100690" codecs="avc1.4d401e" frameRate="30000/1001" height="360" width="640">
3030
<BaseURL>800k/output-video-1.mp4</BaseURL>
3131
<SegmentBase indexRange="686-813">
3232
<Initialization range="0-685"></Initialization>
3333
</SegmentBase>
3434
</Representation>
35-
<Representation bandwidth="1633516" codecs="avc1.4d401f" frameRate="30000/1001" height="540" id="1200k/video-1" width="960">
35+
<Representation id="1200k/video-1" bandwidth="1633516" codecs="avc1.4d401f" frameRate="30000/1001" height="540" width="960">
3636
<BaseURL>1200k/output-video-1.mp4</BaseURL>
3737
<SegmentBase indexRange="686-813">
3838
<Initialization range="0-685"></Initialization>
3939
</SegmentBase>
4040
</Representation>
4141
</AdaptationSet>
42-
<AdaptationSet mimeType="text/vtt" lang="en">
43-
<Representation bandwidth="256" id="subtitle_en">
42+
<AdaptationSet id="7357" mimeType="text/vtt" lang="en">
43+
<Representation id="subtitle_en" bandwidth="256">
4444
<BaseURL>http://example.com/content/sintel/subtitles/subtitles_en.vtt</BaseURL>
4545
</Representation>
4646
</AdaptationSet>

mpd/fixtures/segment_list.mpd

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT30.016S" minBufferTime="PT2.000S">
33
<Period>
44
<BaseURL>http://localhost:8002/dash/</BaseURL>
5-
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="English">
6-
<Representation audioSamplingRate="48000" bandwidth="255000" codecs="mp4a.40.2" id="audio_1">
5+
<AdaptationSet id="1" mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="English">
6+
<Representation id="audio_1" audioSamplingRate="48000" bandwidth="255000" codecs="mp4a.40.2">
77
<SegmentList timescale="48000" duration="479232">
88
<Initialization sourceURL="b4324d65-ad06-4735-9535-5cd4af84ebb6/dcb11457-9092-4410-b204-67b3c6d9a9e2/init.m4f"></Initialization>
99
<SegmentURL media="b4324d65-ad06-4735-9535-5cd4af84ebb6/dcb11457-9092-4410-b204-67b3c6d9a9e2/segment0.m4f"></SegmentURL>
@@ -13,8 +13,8 @@
1313
</SegmentList>
1414
</Representation>
1515
</AdaptationSet>
16-
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
17-
<Representation bandwidth="4172274" codecs="avc1.640028" frameRate="30000/1001" height="720" id="video_1" width="1280">
16+
<AdaptationSet id="2" mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true">
17+
<Representation id="video_1" bandwidth="4172274" codecs="avc1.640028" frameRate="30000/1001" height="720" width="1280">
1818
<SegmentList timescale="30000" duration="225120">
1919
<Initialization sourceURL="b4324d65-ad06-4735-9535-5cd4af84ebb6/f2ad47b2-5362-46e6-ad1d-dff7b10f00b8/init.m4f"></Initialization>
2020
<SegmentURL media="b4324d65-ad06-4735-9535-5cd4af84ebb6/f2ad47b2-5362-46e6-ad1d-dff7b10f00b8/segment0.m4f"></SegmentURL>

mpd/fixtures/segment_timeline.mpd

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT65.063S" minBufferTime="PT2.000S">
33
<Period>
44
<BaseURL>http://localhost:8002/public/</BaseURL>
5-
<AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1" lang="English">
6-
<Representation audioSamplingRate="48000" bandwidth="255000" codecs="mp4a.40.2" id="audio_1">
5+
<AdaptationSet id="1" mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="English">
6+
<Representation id="audio_1" audioSamplingRate="48000" bandwidth="255000" codecs="mp4a.40.2">
77
<SegmentTemplate initialization="audio/init.m4f" media="audio/segment$Number$.m4f" timescale="48000">
88
<SegmentTimeline>
99
<S t="0" d="231424"></S>
@@ -16,8 +16,8 @@
1616
</SegmentTemplate>
1717
</Representation>
1818
</AdaptationSet>
19-
<AdaptationSet mimeType="video/mp4" scanType="progressive" segmentAlignment="true" startWithSAP="1">
20-
<Representation bandwidth="4172274" codecs="avc1.640028" frameRate="30000/1001" height="720" id="video_1" width="1280">
19+
<AdaptationSet id="2" mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true">
20+
<Representation id="video_1" bandwidth="4172274" codecs="avc1.640028" frameRate="30000/1001" height="720" width="1280">
2121
<SegmentTemplate initialization="video/init.m4f" media="video/segment$Number$.m4f" timescale="30000">
2222
<SegmentTimeline>
2323
<S t="0" d="145145"></S>

0 commit comments

Comments
 (0)