Updated "testFirstStream" to use DiffDir

Change-Id: I8c279ba0c208f1e56d53460ae134b3ed8c5f552c
This commit is contained in:
Aaron Vaage 2018-02-07 10:49:15 -08:00
parent 7096ca8998
commit a82ac20dbb
3 changed files with 15 additions and 2 deletions

View File

@ -462,8 +462,7 @@ class PackagerFunctionalTest(PackagerAppTest):
def testPackageFirstStream(self): def testPackageFirstStream(self):
self.assertPackageSuccess(self._GetStreams(['0']), self._GetFlags()) self.assertPackageSuccess(self._GetStreams(['0']), self._GetFlags())
self._DiffGold(self.output[0], 'bear-640x360-v-golden.mp4') self._CheckTestResults('first-stream')
self._DiffGold(self.mpd_output, 'bear-640x360-v-golden.mpd')
def testPackageText(self): def testPackageText(self):
self.assertPackageSuccess( self.assertPackageSuccess(

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated with https://github.com/google/shaka-packager version <tag>-<hash>-<test>-->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" xmlns:cenc="urn:mpeg:cenc:2013" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" minBufferTime="PT2S" type="static" mediaPresentationDuration="PT2.73607S">
<Period id="0">
<AdaptationSet id="0" contentType="video" width="640" height="360" frameRate="30000/1001" subsegmentAlignment="true" par="16:9">
<Representation id="0" bandwidth="882064" codecs="avc1.64001e" mimeType="video/mp4" sar="1:1">
<BaseURL>output_0.mp4</BaseURL>
<SegmentBase indexRange="823-890" timescale="30000">
<Initialization range="0-822"/>
</SegmentBase>
</Representation>
</AdaptationSet>
</Period>
</MPD>

Binary file not shown.