Add an end to end test for non square pixels
Issue #663. Change-Id: Iaba52f0fc6c97d413e973f9a3d8c74cf8c83aa03
This commit is contained in:
parent
cb8b27e491
commit
1bcaf0a835
|
@ -734,6 +734,14 @@ class PackagerFunctionalTest(PackagerAppTest):
|
|||
self._GetFlags(output_dash=True, output_hls=True))
|
||||
self._CheckTestResults('mp4-trailing-moov')
|
||||
|
||||
def testVideoNonSquarePixel(self):
|
||||
self.assertPackageSuccess(
|
||||
self._GetStreams(
|
||||
['video'],
|
||||
test_files=['bear-640x360-non_square_pixel-with_pasp.mp4']),
|
||||
self._GetFlags(output_dash=True, output_hls=True))
|
||||
self._CheckTestResults('video-non-square-pixel')
|
||||
|
||||
def testAacHe(self):
|
||||
self.assertPackageSuccess(
|
||||
self._GetStreams(
|
||||
|
|
BIN
packager/app/test/testdata/video-non-square-pixel/bear-640x360-non_square_pixel-with_pasp-video.mp4
vendored
Normal file
BIN
packager/app/test/testdata/video-non-square-pixel/bear-640x360-non_square_pixel-with_pasp-video.mp4
vendored
Normal file
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
#EXTM3U
|
||||
## Generated with https://github.com/google/shaka-packager version <tag>-<hash>-<test>
|
||||
|
||||
#EXT-X-STREAM-INF:BANDWIDTH=761207,AVERAGE-BANDWIDTH=761207,CODECS="avc1.64001e",RESOLUTION=640x360,FRAME-RATE=29.970
|
||||
stream_0.m3u8
|
|
@ -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" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" minBufferTime="PT2S" type="static" mediaPresentationDuration="PT1.0010000467300415S">
|
||||
<Period id="0">
|
||||
<AdaptationSet id="0" contentType="video" width="720" height="360" frameRate="30000/1001" subsegmentAlignment="true" par="16:9">
|
||||
<Representation id="0" bandwidth="761207" codecs="avc1.64001e" mimeType="video/mp4" sar="8:9">
|
||||
<BaseURL>bear-640x360-non_square_pixel-with_pasp-video.mp4</BaseURL>
|
||||
<SegmentBase indexRange="879-922" timescale="30000">
|
||||
<Initialization range="0-878"/>
|
||||
</SegmentBase>
|
||||
</Representation>
|
||||
</AdaptationSet>
|
||||
</Period>
|
||||
</MPD>
|
|
@ -0,0 +1,10 @@
|
|||
#EXTM3U
|
||||
#EXT-X-VERSION:6
|
||||
## Generated with https://github.com/google/shaka-packager version <tag>-<hash>-<test>
|
||||
#EXT-X-TARGETDURATION:2
|
||||
#EXT-X-PLAYLIST-TYPE:VOD
|
||||
#EXT-X-MAP:URI="bear-640x360-non_square_pixel-with_pasp-video.mp4",BYTERANGE="879@0"
|
||||
#EXTINF:1.001,
|
||||
#EXT-X-BYTERANGE:95246@923
|
||||
bear-640x360-non_square_pixel-with_pasp-video.mp4
|
||||
#EXT-X-ENDLIST
|
Loading…
Reference in New Issue