diff --git a/packager/app/test/packager_test.py b/packager/app/test/packager_test.py index 512251f4bd..3c83be4eb2 100755 --- a/packager/app/test/packager_test.py +++ b/packager/app/test/packager_test.py @@ -848,6 +848,14 @@ class PackagerFunctionalTest(PackagerAppTest): self.assertPackageSuccess(streams, flags) self._CheckTestResults('single-file-webvtt-text') + def testSegmentedWebVttMp4(self): + streams = self._GetStreams(['text'], test_files=['bear-english.vtt'], + output_format='mp4', segmented=True) + flags = self._GetFlags(output_hls=True, output_dash=True) + + self.assertPackageSuccess(streams, flags) + self._CheckTestResults('segmented-webvtt-mp4') + def testMp4TrailingMoov(self): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-1.m4s b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-1.m4s new file mode 100644 index 0000000000..7f6fea5f03 Binary files /dev/null and b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-1.m4s differ diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-2.m4s b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-2.m4s new file mode 100644 index 0000000000..a59e2a79ad Binary files /dev/null and b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-2.m4s differ diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-3.m4s b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-3.m4s new file mode 100644 index 0000000000..08140209f9 Binary files /dev/null and b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-3.m4s differ diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-4.m4s b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-4.m4s new file mode 100644 index 0000000000..666cbc3c1e Binary files /dev/null and b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-4.m4s differ diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-5.m4s b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-5.m4s new file mode 100644 index 0000000000..5c8f82c5da Binary files /dev/null and b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-5.m4s differ diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-init.mp4 b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-init.mp4 new file mode 100644 index 0000000000..8d60268521 Binary files /dev/null and b/packager/app/test/testdata/segmented-webvtt-mp4/bear-english-text-init.mp4 differ diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/output.m3u8 b/packager/app/test/testdata/segmented-webvtt-mp4/output.m3u8 new file mode 100644 index 0000000000..ad00c97c90 --- /dev/null +++ b/packager/app/test/testdata/segmented-webvtt-mp4/output.m3u8 @@ -0,0 +1,6 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-INDEPENDENT-SEGMENTS + +#EXT-X-MEDIA:TYPE=SUBTITLES,URI="stream_0.m3u8",GROUP-ID="default-text-group",NAME="stream_0",AUTOSELECT=YES diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/output.mpd b/packager/app/test/testdata/segmented-webvtt-mp4/output.mpd new file mode 100644 index 0000000000..2979d0fbe8 --- /dev/null +++ b/packager/app/test/testdata/segmented-webvtt-mp4/output.mpd @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/packager/app/test/testdata/segmented-webvtt-mp4/stream_0.m3u8 b/packager/app/test/testdata/segmented-webvtt-mp4/stream_0.m3u8 new file mode 100644 index 0000000000..a6990bdc74 --- /dev/null +++ b/packager/app/test/testdata/segmented-webvtt-mp4/stream_0.m3u8 @@ -0,0 +1,17 @@ +#EXTM3U +#EXT-X-VERSION:6 +## Generated with https://github.com/google/shaka-packager version -- +#EXT-X-TARGETDURATION:1 +#EXT-X-PLAYLIST-TYPE:VOD +#EXT-X-MAP:URI="bear-english-text-init.mp4" +#EXTINF:1.000, +bear-english-text-1.m4s +#EXTINF:1.000, +bear-english-text-2.m4s +#EXTINF:1.000, +bear-english-text-3.m4s +#EXTINF:1.000, +bear-english-text-4.m4s +#EXTINF:1.000, +bear-english-text-5.m4s +#EXT-X-ENDLIST