diff --git a/packager/app/test/packager_test.py b/packager/app/test/packager_test.py index fdb29f60aa..21f1113be8 100755 --- a/packager/app/test/packager_test.py +++ b/packager/app/test/packager_test.py @@ -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( diff --git a/packager/app/test/testdata/video-non-square-pixel/bear-640x360-non_square_pixel-with_pasp-video.mp4 b/packager/app/test/testdata/video-non-square-pixel/bear-640x360-non_square_pixel-with_pasp-video.mp4 new file mode 100644 index 0000000000..e6b93fdeb9 Binary files /dev/null and b/packager/app/test/testdata/video-non-square-pixel/bear-640x360-non_square_pixel-with_pasp-video.mp4 differ diff --git a/packager/app/test/testdata/video-non-square-pixel/output.m3u8 b/packager/app/test/testdata/video-non-square-pixel/output.m3u8 new file mode 100644 index 0000000000..658f190c52 --- /dev/null +++ b/packager/app/test/testdata/video-non-square-pixel/output.m3u8 @@ -0,0 +1,5 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-STREAM-INF:BANDWIDTH=761207,AVERAGE-BANDWIDTH=761207,CODECS="avc1.64001e",RESOLUTION=640x360,FRAME-RATE=29.970 +stream_0.m3u8 diff --git a/packager/app/test/testdata/video-non-square-pixel/output.mpd b/packager/app/test/testdata/video-non-square-pixel/output.mpd new file mode 100644 index 0000000000..b9629931ce --- /dev/null +++ b/packager/app/test/testdata/video-non-square-pixel/output.mpd @@ -0,0 +1,14 @@ + + + + + + + bear-640x360-non_square_pixel-with_pasp-video.mp4 + + + + + + + diff --git a/packager/app/test/testdata/video-non-square-pixel/stream_0.m3u8 b/packager/app/test/testdata/video-non-square-pixel/stream_0.m3u8 new file mode 100644 index 0000000000..dd7f673065 --- /dev/null +++ b/packager/app/test/testdata/video-non-square-pixel/stream_0.m3u8 @@ -0,0 +1,10 @@ +#EXTM3U +#EXT-X-VERSION:6 +## Generated with https://github.com/google/shaka-packager version -- +#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