diff --git a/packager/app/test/packager_test.py b/packager/app/test/packager_test.py index c0d1d8915b..425dc7476b 100755 --- a/packager/app/test/packager_test.py +++ b/packager/app/test/packager_test.py @@ -533,8 +533,7 @@ class PackagerFunctionalTest(PackagerAppTest): self.assertPackageSuccess( self._GetStreams(['text'], test_files=['subtitle-english.vtt']), self._GetFlags()) - self._DiffGold(self.output[0], 'subtitle-english-golden.vtt') - self._DiffGold(self.mpd_output, 'subtitle-english-vtt-golden.mpd') + self._CheckTestResults('text') # Probably one of the most common scenarios is to package audio and video. def testPackageAudioVideo(self): @@ -550,10 +549,7 @@ class PackagerFunctionalTest(PackagerAppTest): ] self.assertPackageSuccess(streams, self._GetFlags()) - self._DiffGold(self.output[0], 'bear-640x360-a-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-golden.mp4') - self._DiffGold(self.output[2], 'bear-640x360-v-trick-1-golden.mp4') - self._DiffGold(self.mpd_output, 'bear-640x360-av-trick-1-golden.mpd') + self._CheckTestResults('audio-video-with-trick-play') def testPackageAudioVideoWithTwoTrickPlay(self): streams = [ @@ -564,12 +560,7 @@ class PackagerFunctionalTest(PackagerAppTest): ] self.assertPackageSuccess(streams, self._GetFlags()) - self._DiffGold(self.output[0], 'bear-640x360-a-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-golden.mp4') - self._DiffGold(self.output[2], 'bear-640x360-v-trick-1-golden.mp4') - self._DiffGold(self.output[3], 'bear-640x360-v-trick-2-golden.mp4') - self._DiffGold(self.mpd_output, - 'bear-640x360-av-trick-1-trick-2-golden.mpd') + self._CheckTestResults('audio-video-with-two-trick-play') def testPackageAudioVideoWithTwoTrickPlayDecreasingRate(self): streams = [ @@ -580,40 +571,28 @@ class PackagerFunctionalTest(PackagerAppTest): ] self.assertPackageSuccess(streams, self._GetFlags()) - self._DiffGold(self.output[0], 'bear-640x360-a-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-golden.mp4') - self._DiffGold(self.output[2], 'bear-640x360-v-trick-2-golden.mp4') - self._DiffGold(self.output[3], 'bear-640x360-v-trick-1-golden.mp4') # Since the stream descriptors are sorted in packager app, a different # order of trick play factors gets the same mpd. - self._DiffGold(self.mpd_output, - 'bear-640x360-av-trick-1-trick-2-golden.mpd') + self._CheckTestResults('audio-video-with-two-trick-play') def testPackageAudioVideoWithLanguageOverride(self): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], language='por-BR'), self._GetFlags()) - self._DiffGold(self.output[0], 'bear-640x360-a-por-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-golden.mp4') - self._DiffGold(self.mpd_output, 'bear-640x360-av-por-golden.mpd') + self._CheckTestResults('audio-video-with-language-override') def testPackageAudioVideoWithLanguageOverrideWithSubtag(self): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], language='por-BR'), self._GetFlags()) - self._DiffGold(self.output[0], 'bear-640x360-a-por-BR-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-golden.mp4') - self._DiffGold(self.mpd_output, 'bear-640x360-av-por-BR-golden.mpd') + self._CheckTestResults('audio-video-with-language-override-with-subtag') def testPackageAacHe(self): self.assertPackageSuccess( self._GetStreams( ['audio'], test_files=['bear-640x360-aac_he-silent_right.mp4']), self._GetFlags()) - self._DiffGold(self.output[0], - 'bear-640x360-aac_he-silent_right-golden.mp4') - self._DiffGold(self.mpd_output, - 'bear-640x360-aac_he-silent_right-golden.mpd') + self._CheckTestResults('acc-he') # Package all video, audio, and text. def testPackageVideoAudioText(self): @@ -622,10 +601,7 @@ class PackagerFunctionalTest(PackagerAppTest): test_files=['subtitle-english.vtt']) self.assertPackageSuccess(audio_video_streams + text_stream, self._GetFlags()) - self._DiffGold(self.output[0], 'bear-640x360-a-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-golden.mp4') - self._DiffGold(self.output[2], 'subtitle-english-golden.vtt') - self._DiffGold(self.mpd_output, 'bear-640x360-avt-golden.mpd') + self._CheckTestResults('video-audio-text') def testPackageAvcAacTs(self): # Currently we only support live packaging for ts. @@ -637,18 +613,7 @@ class PackagerFunctionalTest(PackagerAppTest): hls=True, test_files=['bear-640x360.ts']), self._GetFlags(output_hls=True)) - self._DiffLiveGold(self.output[0], - 'bear-640x360-a-golden', - output_format='ts') - self._DiffLiveGold(self.output[1], - 'bear-640x360-v-golden', - output_format='ts') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-master-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), 'bear-640x360-a-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), 'bear-640x360-v-golden.m3u8') + self._CheckTestResults('avc-aac-ts') def testPackageAvcAc3Ts(self): # Currently we only support live packaging for ts. @@ -660,35 +625,14 @@ class PackagerFunctionalTest(PackagerAppTest): hls=True, test_files=['bear-640x360-ac3.ts']), self._GetFlags(output_hls=True)) - self._DiffLiveGold(self.output[0], - 'bear-640x360-ac3-golden', - output_format='ts') - self._DiffLiveGold(self.output[1], - 'bear-640x360-v-golden', - output_format='ts') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-ac3-master-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-ac3-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), 'bear-640x360-v-golden.m3u8') + self._CheckTestResults('avc-ac3-ts') def testPackageAvcAc3TsToMp4(self): self.assertPackageSuccess( self._GetStreams( ['audio', 'video'], hls=True, test_files=['bear-640x360-ac3.ts']), self._GetFlags(output_hls=True)) - self._DiffGold(self.output[0], 'bear-640x360-ac3-from-ts-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-from-ts-golden.mp4') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-ac3-ts-to-mp4-master-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-ac3-ts-to-mp4-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), - 'bear-640x360-v-ts-to-mp4-golden.m3u8') + self._CheckTestResults('avc-ac3-ts-to-mp4') def testPackageAvcTsLivePlaylist(self): self.assertPackageSuccess( @@ -702,20 +646,7 @@ class PackagerFunctionalTest(PackagerAppTest): output_hls=True, hls_playlist_type='LIVE', time_shift_buffer_depth=0.5)) - self._DiffLiveGold(self.output[0], - 'bear-640x360-a-golden', - output_format='ts') - self._DiffLiveGold(self.output[1], - 'bear-640x360-v-golden', - output_format='ts') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-master-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-a-live-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), - 'bear-640x360-v-live-golden.m3u8') + self._CheckTestResults('avc-ts-live-playlist') def testPackageAvcTsLivePlaylistWithKeyRotation(self): self.packager.Package( @@ -731,20 +662,7 @@ class PackagerFunctionalTest(PackagerAppTest): output_hls=True, hls_playlist_type='LIVE', time_shift_buffer_depth=0.5)) - self._DiffLiveGold(self.output[0], - 'bear-640x360-a-enc-rotation-golden', - output_format='ts') - self._DiffLiveGold(self.output[1], - 'bear-640x360-v-enc-rotation-golden', - output_format='ts') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-master-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-a-live-enc-rotation-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), - 'bear-640x360-v-live-enc-rotation-golden.m3u8') + self._CheckTestResults('avc-ts-live-playlist-with-key-rotation') def testPackageAvcTsEventPlaylist(self): self.assertPackageSuccess( @@ -758,20 +676,7 @@ class PackagerFunctionalTest(PackagerAppTest): output_hls=True, hls_playlist_type='EVENT', time_shift_buffer_depth=0.5)) - self._DiffLiveGold(self.output[0], - 'bear-640x360-a-golden', - output_format='ts') - self._DiffLiveGold(self.output[1], - 'bear-640x360-v-golden', - output_format='ts') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-master-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-a-event-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), - 'bear-640x360-v-event-golden.m3u8') + self._CheckTestResults('avc-ts-event-playlist') def testPackageVp8Webm(self): self.assertPackageSuccess( @@ -779,8 +684,7 @@ class PackagerFunctionalTest(PackagerAppTest): output_format='webm', test_files=['bear-640x360.webm']), self._GetFlags()) - self._DiffGold(self.output[0], 'bear-640x360-vp8-golden.webm') - self._DiffGold(self.mpd_output, 'bear-640x360-vp8-webm-golden.mpd') + self._CheckTestResults('vp8-webm') def testPackageVp9Webm(self): self.assertPackageSuccess( @@ -788,9 +692,7 @@ class PackagerFunctionalTest(PackagerAppTest): output_format='webm', test_files=['bear-320x240-vp9-opus.webm']), self._GetFlags()) - self._DiffGold(self.output[0], 'bear-320x240-opus-golden.webm') - self._DiffGold(self.output[1], 'bear-320x240-vp9-golden.webm') - self._DiffGold(self.mpd_output, 'bear-320x240-vp9-opus-webm-golden.mpd') + self._CheckTestResults('vp9-webm') def testPackageVp9WebmWithBlockgroup(self): self.assertPackageSuccess( @@ -798,7 +700,7 @@ class PackagerFunctionalTest(PackagerAppTest): output_format='webm', test_files=['bear-vp9-blockgroup.webm']), self._GetFlags()) - self._DiffGold(self.output[0], 'bear-vp9-blockgroup-golden.webm') + self._CheckTestResults('vp9-webm-with-blockgroup') def testPackageVorbisWebm(self): self.assertPackageSuccess( @@ -806,8 +708,7 @@ class PackagerFunctionalTest(PackagerAppTest): output_format='webm', test_files=['bear-320x240-audio-only.webm']), self._GetFlags()) - self._DiffGold(self.output[0], 'bear-320x240-vorbis-golden.webm') - self._DiffGold(self.mpd_output, 'bear-320x240-vorbis-webm-golden.mpd') + self._CheckTestResults('vorbis-webm') def testPackageEncryption(self): self.assertPackageSuccess( @@ -1168,11 +1069,7 @@ class PackagerFunctionalTest(PackagerAppTest): ['0', '1', '2', '3'], test_files=['bear-multi-configs.wvm']), self._GetFlags(decryption=True)) # Output timescale is 90000. - self._DiffGold(self.output[0], 'bear-320x180-v-wvm-golden.mp4') - self._DiffGold(self.output[1], 'bear-320x180-a-wvm-golden.mp4') - self._DiffGold(self.output[2], 'bear-640x360-v-wvm-golden.mp4') - self._DiffGold(self.output[3], 'bear-640x360-a-wvm-golden.mp4') - self._DiffGold(self.mpd_output, 'bear-wvm-golden.mpd') + self._CheckTestResults('wvm-input') # TODO(kqyang): Fix shared_library not supporting strip_parameter_set_nalus # problem. @@ -1188,11 +1085,7 @@ class PackagerFunctionalTest(PackagerAppTest): ['0', '1', '2', '3'], test_files=['bear-multi-configs.wvm']), self._GetFlags(strip_parameter_set_nalus=False, decryption=True)) # Output timescale is 90000. - self._DiffGold(self.output[0], 'bear-320x180-avc3-wvm-golden.mp4') - self._DiffGold(self.output[1], 'bear-320x180-a-wvm-golden.mp4') - self._DiffGold(self.output[2], 'bear-640x360-avc3-wvm-golden.mp4') - self._DiffGold(self.output[3], 'bear-640x360-a-wvm-golden.mp4') - self._DiffGold(self.mpd_output, 'bear-avc3-wvm-golden.mpd') + self._CheckTestResults('wvm-input-without-stripping-parameters-set-nalus') def testPackageEncryptionAndRandomIv(self): self.assertPackageSuccess( @@ -1247,47 +1140,20 @@ class PackagerFunctionalTest(PackagerAppTest): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], hls=True), self._GetFlags(encryption=True, output_hls=True)) - self._DiffGold(self.output[0], 'bear-640x360-a-cenc-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-cenc-golden.mp4') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-mp4-master-cenc-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-a-mp4-cenc-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), - 'bear-640x360-v-mp4-cenc-golden.m3u8') + self._CheckTestResults('with-hls-single-segment-mp4-encrypted') def testPackageEc3AndHlsSingleSegmentMp4Encrypted(self): self.assertPackageSuccess( self._GetStreams( ['audio', 'video'], hls=True, test_files=['bear-640x360-ec3.mp4']), self._GetFlags(encryption=True, output_hls=True)) - self._DiffGold(self.output[0], 'bear-640x360-ec3-a-cenc-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-ec3-v-cenc-golden.mp4') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-ec3-av-mp4-master-cenc-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-ec3-a-mp4-cenc-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), - 'bear-640x360-ec3-v-mp4-cenc-golden.m3u8') + self._CheckTestResults('with-ec3-and-hls-single-segment-mp4-encrypted') def testPackageHlsSingleSegmentMp4EncryptedAndAdCues(self): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], hls=True), self._GetFlags(encryption=True, output_hls=True, ad_cues='1.5')) - self._DiffGold(self.output[0], 'bear-640x360-a-cenc-golden.mp4') - self._DiffGold(self.output[1], 'bear-640x360-v-cenc-golden.mp4') - self._DiffGold(self.hls_master_playlist_output, - 'bear-640x360-av-mp4-master-cenc-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'audio.m3u8'), - 'bear-640x360-a-mp4-cenc-ad_cues-golden.m3u8') - self._DiffGold( - os.path.join(self.tmp_dir, 'video.m3u8'), - 'bear-640x360-v-mp4-cenc-ad_cues-golden.m3u8') + self._CheckTestResults('with-hls-single-segment-mp4-encrypted-and-ad-cues') # Test HLS with multi-segment mp4 and content in subdirectories. def testPackageHlsMultiSegmentMp4WithCustomPath(self): @@ -1328,18 +1194,13 @@ class PackagerFunctionalTest(PackagerAppTest): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], segmented=True), self._GetFlags(generate_static_mpd=True)) - self._DiffLiveGold(self.output[0], 'bear-640x360-a-live-golden') - self._DiffLiveGold(self.output[1], 'bear-640x360-v-live-golden') - self._DiffGold(self.mpd_output, 'bear-640x360-av-live-static-golden.mpd') + self._CheckTestResults('with-live-static-profile') def testPackageLiveStaticProfileAndAdCues(self): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], segmented=True), self._GetFlags(generate_static_mpd=True, ad_cues='1.5')) - self._DiffLiveGold(self.output[0], 'bear-640x360-a-live-golden') - self._DiffLiveGold(self.output[1], 'bear-640x360-v-live-golden') - self._DiffGold(self.mpd_output, - 'bear-640x360-av-live-static-ad_cues-golden.mpd') + self._CheckTestResults('with-live-static-profile-and-ad-cues') def testPackageLiveProfileAndEncryption(self): self.assertPackageSuccess( @@ -1370,7 +1231,8 @@ class PackagerFunctionalTest(PackagerAppTest): self._DiffLiveGold(self.output[3], 'bear-640x360-v-live-cenc-golden') # Mpd cannot be validated right now since we don't generate determinstic # mpd with multiple inputs due to thread racing. - # TODO(kqyang): Generate determinstic mpd or at least validate mpd schema. + # TODO(b/73349711): Generate determinstic mpd or at least validate mpd + # schema. def testPackageLiveProfileAndKeyRotation(self): self.assertPackageSuccess( diff --git a/packager/app/test/testdata/bear-640x360-aac_he-silent_right-golden.mpd b/packager/app/test/testdata/acc-he/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-aac_he-silent_right-golden.mpd rename to packager/app/test/testdata/acc-he/output.mpd diff --git a/packager/app/test/testdata/bear-640x360-aac_he-silent_right-golden.mp4 b/packager/app/test/testdata/acc-he/output_audio.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-aac_he-silent_right-golden.mp4 rename to packager/app/test/testdata/acc-he/output_audio.mp4 diff --git a/packager/app/test/testdata/bear-640x360-av-por-BR-golden.mpd b/packager/app/test/testdata/audio-video-with-language-override-with-subtag/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-por-BR-golden.mpd rename to packager/app/test/testdata/audio-video-with-language-override-with-subtag/output.mpd diff --git a/packager/app/test/testdata/bear-640x360-a-por-BR-golden.mp4 b/packager/app/test/testdata/audio-video-with-language-override-with-subtag/output_audio.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-por-BR-golden.mp4 rename to packager/app/test/testdata/audio-video-with-language-override-with-subtag/output_audio.mp4 diff --git a/packager/app/test/testdata/audio-video-with-language-override-with-subtag/output_video.mp4 b/packager/app/test/testdata/audio-video-with-language-override-with-subtag/output_video.mp4 new file mode 100644 index 0000000000..a4315c32cb Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-language-override-with-subtag/output_video.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-av-por-golden.mpd b/packager/app/test/testdata/audio-video-with-language-override/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-por-golden.mpd rename to packager/app/test/testdata/audio-video-with-language-override/output.mpd diff --git a/packager/app/test/testdata/bear-640x360-a-por-golden.mp4 b/packager/app/test/testdata/audio-video-with-language-override/output_audio.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-por-golden.mp4 rename to packager/app/test/testdata/audio-video-with-language-override/output_audio.mp4 diff --git a/packager/app/test/testdata/audio-video-with-language-override/output_video.mp4 b/packager/app/test/testdata/audio-video-with-language-override/output_video.mp4 new file mode 100644 index 0000000000..a4315c32cb Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-language-override/output_video.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-av-trick-1-golden.mpd b/packager/app/test/testdata/audio-video-with-trick-play/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-trick-1-golden.mpd rename to packager/app/test/testdata/audio-video-with-trick-play/output.mpd diff --git a/packager/app/test/testdata/audio-video-with-trick-play/output_audio.mp4 b/packager/app/test/testdata/audio-video-with-trick-play/output_audio.mp4 new file mode 100644 index 0000000000..363c933a1a Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-trick-play/output_audio.mp4 differ diff --git a/packager/app/test/testdata/audio-video-with-trick-play/output_video.mp4 b/packager/app/test/testdata/audio-video-with-trick-play/output_video.mp4 new file mode 100644 index 0000000000..a4315c32cb Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-trick-play/output_video.mp4 differ diff --git a/packager/app/test/testdata/audio-video-with-trick-play/output_video_trick_play_factor_1.mp4 b/packager/app/test/testdata/audio-video-with-trick-play/output_video_trick_play_factor_1.mp4 new file mode 100644 index 0000000000..60407efb5f Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-trick-play/output_video_trick_play_factor_1.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-av-trick-1-trick-2-golden.mpd b/packager/app/test/testdata/audio-video-with-two-trick-play/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-trick-1-trick-2-golden.mpd rename to packager/app/test/testdata/audio-video-with-two-trick-play/output.mpd diff --git a/packager/app/test/testdata/audio-video-with-two-trick-play/output_audio.mp4 b/packager/app/test/testdata/audio-video-with-two-trick-play/output_audio.mp4 new file mode 100644 index 0000000000..363c933a1a Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-two-trick-play/output_audio.mp4 differ diff --git a/packager/app/test/testdata/audio-video-with-two-trick-play/output_video.mp4 b/packager/app/test/testdata/audio-video-with-two-trick-play/output_video.mp4 new file mode 100644 index 0000000000..a4315c32cb Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-two-trick-play/output_video.mp4 differ diff --git a/packager/app/test/testdata/audio-video-with-two-trick-play/output_video_trick_play_factor_1.mp4 b/packager/app/test/testdata/audio-video-with-two-trick-play/output_video_trick_play_factor_1.mp4 new file mode 100644 index 0000000000..60407efb5f Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-two-trick-play/output_video_trick_play_factor_1.mp4 differ diff --git a/packager/app/test/testdata/audio-video-with-two-trick-play/output_video_trick_play_factor_2.mp4 b/packager/app/test/testdata/audio-video-with-two-trick-play/output_video_trick_play_factor_2.mp4 new file mode 100644 index 0000000000..078bad9cc8 Binary files /dev/null and b/packager/app/test/testdata/audio-video-with-two-trick-play/output_video_trick_play_factor_2.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-a-golden.m3u8 b/packager/app/test/testdata/avc-aac-ts/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-golden.m3u8 rename to packager/app/test/testdata/avc-aac-ts/audio.m3u8 diff --git a/packager/app/test/testdata/avc-aac-ts/output.m3u8 b/packager/app/test/testdata/avc-aac-ts/output.m3u8 new file mode 100644 index 0000000000..dbd74f0f68 --- /dev/null +++ b/packager/app/test/testdata/avc-aac-ts/output.m3u8 @@ -0,0 +1,7 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1217518,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=640x360,AUDIO="default-audio-group" +video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-a-enc-rotation-golden-1.ts b/packager/app/test/testdata/avc-aac-ts/output_audio-1.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-enc-rotation-golden-1.ts rename to packager/app/test/testdata/avc-aac-ts/output_audio-1.ts diff --git a/packager/app/test/testdata/bear-640x360-a-golden-2.ts b/packager/app/test/testdata/avc-aac-ts/output_audio-2.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-golden-2.ts rename to packager/app/test/testdata/avc-aac-ts/output_audio-2.ts diff --git a/packager/app/test/testdata/bear-640x360-a-golden-3.ts b/packager/app/test/testdata/avc-aac-ts/output_audio-3.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-golden-3.ts rename to packager/app/test/testdata/avc-aac-ts/output_audio-3.ts diff --git a/packager/app/test/testdata/bear-640x360-v-enc-rotation-golden-1.ts b/packager/app/test/testdata/avc-aac-ts/output_video-1.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-enc-rotation-golden-1.ts rename to packager/app/test/testdata/avc-aac-ts/output_video-1.ts diff --git a/packager/app/test/testdata/bear-640x360-v-golden-2.ts b/packager/app/test/testdata/avc-aac-ts/output_video-2.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-golden-2.ts rename to packager/app/test/testdata/avc-aac-ts/output_video-2.ts diff --git a/packager/app/test/testdata/bear-640x360-v-golden-3.ts b/packager/app/test/testdata/avc-aac-ts/output_video-3.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-golden-3.ts rename to packager/app/test/testdata/avc-aac-ts/output_video-3.ts diff --git a/packager/app/test/testdata/bear-640x360-v-golden.m3u8 b/packager/app/test/testdata/avc-aac-ts/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-golden.m3u8 rename to packager/app/test/testdata/avc-aac-ts/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-ac3-ts-to-mp4-golden.m3u8 b/packager/app/test/testdata/avc-ac3-ts-to-mp4/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ac3-ts-to-mp4-golden.m3u8 rename to packager/app/test/testdata/avc-ac3-ts-to-mp4/audio.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-av-ac3-ts-to-mp4-master-golden.m3u8 b/packager/app/test/testdata/avc-ac3-ts-to-mp4/output.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-ac3-ts-to-mp4-master-golden.m3u8 rename to packager/app/test/testdata/avc-ac3-ts-to-mp4/output.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-ac3-from-ts-golden.mp4 b/packager/app/test/testdata/avc-ac3-ts-to-mp4/output_audio.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ac3-from-ts-golden.mp4 rename to packager/app/test/testdata/avc-ac3-ts-to-mp4/output_audio.mp4 diff --git a/packager/app/test/testdata/bear-640x360-v-from-ts-golden.mp4 b/packager/app/test/testdata/avc-ac3-ts-to-mp4/output_video.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-from-ts-golden.mp4 rename to packager/app/test/testdata/avc-ac3-ts-to-mp4/output_video.mp4 diff --git a/packager/app/test/testdata/bear-640x360-v-ts-to-mp4-golden.m3u8 b/packager/app/test/testdata/avc-ac3-ts-to-mp4/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-ts-to-mp4-golden.m3u8 rename to packager/app/test/testdata/avc-ac3-ts-to-mp4/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-ac3-golden.m3u8 b/packager/app/test/testdata/avc-ac3-ts/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ac3-golden.m3u8 rename to packager/app/test/testdata/avc-ac3-ts/audio.m3u8 diff --git a/packager/app/test/testdata/avc-ac3-ts/output.m3u8 b/packager/app/test/testdata/avc-ac3-ts/output.m3u8 new file mode 100644 index 0000000000..5b874572c1 --- /dev/null +++ b/packager/app/test/testdata/avc-ac3-ts/output.m3u8 @@ -0,0 +1,7 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1242703,CODECS="avc1.64001e,ac-3",RESOLUTION=640x360,AUDIO="default-audio-group" +video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-ac3-golden-1.ts b/packager/app/test/testdata/avc-ac3-ts/output_audio-1.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-ac3-golden-1.ts rename to packager/app/test/testdata/avc-ac3-ts/output_audio-1.ts diff --git a/packager/app/test/testdata/bear-640x360-ac3-golden-2.ts b/packager/app/test/testdata/avc-ac3-ts/output_audio-2.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-ac3-golden-2.ts rename to packager/app/test/testdata/avc-ac3-ts/output_audio-2.ts diff --git a/packager/app/test/testdata/bear-640x360-ac3-golden-3.ts b/packager/app/test/testdata/avc-ac3-ts/output_audio-3.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-ac3-golden-3.ts rename to packager/app/test/testdata/avc-ac3-ts/output_audio-3.ts diff --git a/packager/app/test/testdata/bear-640x360-v-golden-1.ts b/packager/app/test/testdata/avc-ac3-ts/output_video-1.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-golden-1.ts rename to packager/app/test/testdata/avc-ac3-ts/output_video-1.ts diff --git a/packager/app/test/testdata/avc-ac3-ts/output_video-2.ts b/packager/app/test/testdata/avc-ac3-ts/output_video-2.ts new file mode 100644 index 0000000000..7dadd15355 Binary files /dev/null and b/packager/app/test/testdata/avc-ac3-ts/output_video-2.ts differ diff --git a/packager/app/test/testdata/avc-ac3-ts/output_video-3.ts b/packager/app/test/testdata/avc-ac3-ts/output_video-3.ts new file mode 100644 index 0000000000..ab0c79483c Binary files /dev/null and b/packager/app/test/testdata/avc-ac3-ts/output_video-3.ts differ diff --git a/packager/app/test/testdata/avc-ac3-ts/video.m3u8 b/packager/app/test/testdata/avc-ac3-ts/video.m3u8 new file mode 100644 index 0000000000..14e87c0241 --- /dev/null +++ b/packager/app/test/testdata/avc-ac3-ts/video.m3u8 @@ -0,0 +1,12 @@ +#EXTM3U +#EXT-X-VERSION:6 +## Generated with https://github.com/google/shaka-packager version -- +#EXT-X-TARGETDURATION:2 +#EXT-X-PLAYLIST-TYPE:VOD +#EXTINF:1.001, +output_video-1.ts +#EXTINF:1.001, +output_video-2.ts +#EXTINF:0.734, +output_video-3.ts +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/bear-640x360-a-event-golden.m3u8 b/packager/app/test/testdata/avc-ts-event-playlist/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-event-golden.m3u8 rename to packager/app/test/testdata/avc-ts-event-playlist/audio.m3u8 diff --git a/packager/app/test/testdata/avc-ts-event-playlist/output.m3u8 b/packager/app/test/testdata/avc-ts-event-playlist/output.m3u8 new file mode 100644 index 0000000000..dbd74f0f68 --- /dev/null +++ b/packager/app/test/testdata/avc-ts-event-playlist/output.m3u8 @@ -0,0 +1,7 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1217518,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=640x360,AUDIO="default-audio-group" +video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-a-golden-1.ts b/packager/app/test/testdata/avc-ts-event-playlist/output_audio-1.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-golden-1.ts rename to packager/app/test/testdata/avc-ts-event-playlist/output_audio-1.ts diff --git a/packager/app/test/testdata/avc-ts-event-playlist/output_audio-2.ts b/packager/app/test/testdata/avc-ts-event-playlist/output_audio-2.ts new file mode 100644 index 0000000000..977aa81f5a Binary files /dev/null and b/packager/app/test/testdata/avc-ts-event-playlist/output_audio-2.ts differ diff --git a/packager/app/test/testdata/avc-ts-event-playlist/output_audio-3.ts b/packager/app/test/testdata/avc-ts-event-playlist/output_audio-3.ts new file mode 100644 index 0000000000..926ef4c075 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-event-playlist/output_audio-3.ts differ diff --git a/packager/app/test/testdata/avc-ts-event-playlist/output_video-1.ts b/packager/app/test/testdata/avc-ts-event-playlist/output_video-1.ts new file mode 100644 index 0000000000..c8600d8422 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-event-playlist/output_video-1.ts differ diff --git a/packager/app/test/testdata/avc-ts-event-playlist/output_video-2.ts b/packager/app/test/testdata/avc-ts-event-playlist/output_video-2.ts new file mode 100644 index 0000000000..7dadd15355 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-event-playlist/output_video-2.ts differ diff --git a/packager/app/test/testdata/avc-ts-event-playlist/output_video-3.ts b/packager/app/test/testdata/avc-ts-event-playlist/output_video-3.ts new file mode 100644 index 0000000000..ab0c79483c Binary files /dev/null and b/packager/app/test/testdata/avc-ts-event-playlist/output_video-3.ts differ diff --git a/packager/app/test/testdata/bear-640x360-v-event-golden.m3u8 b/packager/app/test/testdata/avc-ts-event-playlist/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-event-golden.m3u8 rename to packager/app/test/testdata/avc-ts-event-playlist/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-a-live-enc-rotation-golden.m3u8 b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-live-enc-rotation-golden.m3u8 rename to packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/audio.m3u8 diff --git a/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output.m3u8 b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output.m3u8 new file mode 100644 index 0000000000..dbd74f0f68 --- /dev/null +++ b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output.m3u8 @@ -0,0 +1,7 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1217518,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=640x360,AUDIO="default-audio-group" +video.m3u8 diff --git a/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_audio-1.ts b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_audio-1.ts new file mode 100644 index 0000000000..17d20c42c9 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_audio-1.ts differ diff --git a/packager/app/test/testdata/bear-640x360-a-enc-rotation-golden-2.ts b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_audio-2.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-enc-rotation-golden-2.ts rename to packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_audio-2.ts diff --git a/packager/app/test/testdata/bear-640x360-a-enc-rotation-golden-3.ts b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_audio-3.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-enc-rotation-golden-3.ts rename to packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_audio-3.ts diff --git a/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_video-1.ts b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_video-1.ts new file mode 100644 index 0000000000..c8600d8422 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_video-1.ts differ diff --git a/packager/app/test/testdata/bear-640x360-v-enc-rotation-golden-2.ts b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_video-2.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-enc-rotation-golden-2.ts rename to packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_video-2.ts diff --git a/packager/app/test/testdata/bear-640x360-v-enc-rotation-golden-3.ts b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_video-3.ts similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-enc-rotation-golden-3.ts rename to packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/output_video-3.ts diff --git a/packager/app/test/testdata/bear-640x360-v-live-enc-rotation-golden.m3u8 b/packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-live-enc-rotation-golden.m3u8 rename to packager/app/test/testdata/avc-ts-live-playlist-with-key-rotation/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-a-live-golden.m3u8 b/packager/app/test/testdata/avc-ts-live-playlist/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-live-golden.m3u8 rename to packager/app/test/testdata/avc-ts-live-playlist/audio.m3u8 diff --git a/packager/app/test/testdata/avc-ts-live-playlist/output.m3u8 b/packager/app/test/testdata/avc-ts-live-playlist/output.m3u8 new file mode 100644 index 0000000000..dbd74f0f68 --- /dev/null +++ b/packager/app/test/testdata/avc-ts-live-playlist/output.m3u8 @@ -0,0 +1,7 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1217518,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=640x360,AUDIO="default-audio-group" +video.m3u8 diff --git a/packager/app/test/testdata/avc-ts-live-playlist/output_audio-1.ts b/packager/app/test/testdata/avc-ts-live-playlist/output_audio-1.ts new file mode 100644 index 0000000000..17d20c42c9 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist/output_audio-1.ts differ diff --git a/packager/app/test/testdata/avc-ts-live-playlist/output_audio-2.ts b/packager/app/test/testdata/avc-ts-live-playlist/output_audio-2.ts new file mode 100644 index 0000000000..977aa81f5a Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist/output_audio-2.ts differ diff --git a/packager/app/test/testdata/avc-ts-live-playlist/output_audio-3.ts b/packager/app/test/testdata/avc-ts-live-playlist/output_audio-3.ts new file mode 100644 index 0000000000..926ef4c075 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist/output_audio-3.ts differ diff --git a/packager/app/test/testdata/avc-ts-live-playlist/output_video-1.ts b/packager/app/test/testdata/avc-ts-live-playlist/output_video-1.ts new file mode 100644 index 0000000000..c8600d8422 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist/output_video-1.ts differ diff --git a/packager/app/test/testdata/avc-ts-live-playlist/output_video-2.ts b/packager/app/test/testdata/avc-ts-live-playlist/output_video-2.ts new file mode 100644 index 0000000000..7dadd15355 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist/output_video-2.ts differ diff --git a/packager/app/test/testdata/avc-ts-live-playlist/output_video-3.ts b/packager/app/test/testdata/avc-ts-live-playlist/output_video-3.ts new file mode 100644 index 0000000000..ab0c79483c Binary files /dev/null and b/packager/app/test/testdata/avc-ts-live-playlist/output_video-3.ts differ diff --git a/packager/app/test/testdata/bear-640x360-v-live-golden.m3u8 b/packager/app/test/testdata/avc-ts-live-playlist/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-live-golden.m3u8 rename to packager/app/test/testdata/avc-ts-live-playlist/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-av-golden.mpd b/packager/app/test/testdata/bear-640x360-av-golden.mpd deleted file mode 100644 index dfa8debf37..0000000000 --- a/packager/app/test/testdata/bear-640x360-av-golden.mpd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - output_video.mp4 - - - - - - - - - output_audio.mp4 - - - - - - - diff --git a/packager/app/test/testdata/subtitle-english-vtt-golden.mpd b/packager/app/test/testdata/text/output.mpd similarity index 100% rename from packager/app/test/testdata/subtitle-english-vtt-golden.mpd rename to packager/app/test/testdata/text/output.mpd diff --git a/packager/app/test/testdata/subtitle-english-golden.vtt b/packager/app/test/testdata/text/output_text.vtt similarity index 100% rename from packager/app/test/testdata/subtitle-english-golden.vtt rename to packager/app/test/testdata/text/output_text.vtt diff --git a/packager/app/test/testdata/bear-640x360-avt-golden.mpd b/packager/app/test/testdata/video-audio-text/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-avt-golden.mpd rename to packager/app/test/testdata/video-audio-text/output.mpd diff --git a/packager/app/test/testdata/video-audio-text/output_audio.mp4 b/packager/app/test/testdata/video-audio-text/output_audio.mp4 new file mode 100644 index 0000000000..363c933a1a Binary files /dev/null and b/packager/app/test/testdata/video-audio-text/output_audio.mp4 differ diff --git a/packager/app/test/testdata/video-audio-text/output_text.vtt b/packager/app/test/testdata/video-audio-text/output_text.vtt new file mode 100644 index 0000000000..587623292c --- /dev/null +++ b/packager/app/test/testdata/video-audio-text/output_text.vtt @@ -0,0 +1,79 @@ +WEBVTT + +1 +00:00:03.837 --> 00:00:07.299 +Captain's log, stardate 41636.9. + +2 +00:00:07.466 --> 00:00:11.845 +As feared, our examination of the +overdue Federation freighter Odin, + +3 +00:00:12.012 --> 00:00:16.475 +disabled by an asteroid collision, +revealed no life signs. + +4 +00:00:16.642 --> 00:00:19.019 +However three escape pods +were missing, + +5 +00:00:19.186 --> 00:00:21.939 +suggesting +the possibility of survivors. + +6 +00:00:22.606 --> 00:00:27.861 +- Ready to orbit Angel One. +- What kind of place is this, Data? + +7 +00:00:28.028 --> 00:00:31.615 +A Class-M planet supporting +carbon-based flora and fauna, + +8 +00:00:31.782 --> 00:00:34.326 +sparsely populated +with intelligent life. + +9 +00:00:34.493 --> 00:00:38.497 +Similar in technological development +to mid-20th century Earth. + +10 +00:00:38.664 --> 00:00:41.000 +Kinda like being marooned at home. + +11 +00:00:41.166 --> 00:00:43.586 +Assuming any survivors +made it this far. + +12 +00:00:43.794 --> 00:00:49.174 +It is the closest planet, but to +go the distance we did in two days, + +13 +00:00:49.341 --> 00:00:52.344 +would've taken the Odin escape pod +five months. + +14 +00:00:52.511 --> 00:00:54.680 +Five months, six days, 11 hours, +two min... + +15 +00:00:54.847 --> 00:00:58.392 +- Thank you, Data. +- ...and 57 seconds. + +16 +00:00:58.559 --> 00:01:01.353 +Receiving an audio signal +from Angel One. diff --git a/packager/app/test/testdata/video-audio-text/output_video.mp4 b/packager/app/test/testdata/video-audio-text/output_video.mp4 new file mode 100644 index 0000000000..a4315c32cb Binary files /dev/null and b/packager/app/test/testdata/video-audio-text/output_video.mp4 differ diff --git a/packager/app/test/testdata/bear-320x240-vorbis-webm-golden.mpd b/packager/app/test/testdata/vorbis-webm/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-320x240-vorbis-webm-golden.mpd rename to packager/app/test/testdata/vorbis-webm/output.mpd diff --git a/packager/app/test/testdata/bear-320x240-vorbis-golden.webm b/packager/app/test/testdata/vorbis-webm/output_audio.webm similarity index 100% rename from packager/app/test/testdata/bear-320x240-vorbis-golden.webm rename to packager/app/test/testdata/vorbis-webm/output_audio.webm diff --git a/packager/app/test/testdata/bear-640x360-vp8-webm-golden.mpd b/packager/app/test/testdata/vp8-webm/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-vp8-webm-golden.mpd rename to packager/app/test/testdata/vp8-webm/output.mpd diff --git a/packager/app/test/testdata/vp8-webm/output_video.webm b/packager/app/test/testdata/vp8-webm/output_video.webm new file mode 100644 index 0000000000..5fa81b7d88 Binary files /dev/null and b/packager/app/test/testdata/vp8-webm/output_video.webm differ diff --git a/packager/app/test/testdata/vp9-webm-with-blockgroup/output.mpd b/packager/app/test/testdata/vp9-webm-with-blockgroup/output.mpd new file mode 100644 index 0000000000..6ce6b64055 --- /dev/null +++ b/packager/app/test/testdata/vp9-webm-with-blockgroup/output.mpd @@ -0,0 +1,14 @@ + + + + + + + output_video.webm + + + + + + + diff --git a/packager/app/test/testdata/bear-vp9-blockgroup-golden.webm b/packager/app/test/testdata/vp9-webm-with-blockgroup/output_video.webm similarity index 100% rename from packager/app/test/testdata/bear-vp9-blockgroup-golden.webm rename to packager/app/test/testdata/vp9-webm-with-blockgroup/output_video.webm diff --git a/packager/app/test/testdata/bear-320x240-vp9-opus-webm-golden.mpd b/packager/app/test/testdata/vp9-webm/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-320x240-vp9-opus-webm-golden.mpd rename to packager/app/test/testdata/vp9-webm/output.mpd diff --git a/packager/app/test/testdata/bear-320x240-opus-golden.webm b/packager/app/test/testdata/vp9-webm/output_audio.webm similarity index 100% rename from packager/app/test/testdata/bear-320x240-opus-golden.webm rename to packager/app/test/testdata/vp9-webm/output_audio.webm diff --git a/packager/app/test/testdata/bear-320x240-vp9-golden.webm b/packager/app/test/testdata/vp9-webm/output_video.webm similarity index 100% rename from packager/app/test/testdata/bear-320x240-vp9-golden.webm rename to packager/app/test/testdata/vp9-webm/output_video.webm diff --git a/packager/app/test/testdata/bear-640x360-ec3-a-mp4-cenc-golden.m3u8 b/packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ec3-a-mp4-cenc-golden.m3u8 rename to packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/audio.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-ec3-av-mp4-master-cenc-golden.m3u8 b/packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/output.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ec3-av-mp4-master-cenc-golden.m3u8 rename to packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/output.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-ec3-a-cenc-golden.mp4 b/packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/output_audio.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ec3-a-cenc-golden.mp4 rename to packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/output_audio.mp4 diff --git a/packager/app/test/testdata/bear-640x360-ec3-v-cenc-golden.mp4 b/packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/output_video.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ec3-v-cenc-golden.mp4 rename to packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/output_video.mp4 diff --git a/packager/app/test/testdata/bear-640x360-ec3-v-mp4-cenc-golden.m3u8 b/packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-ec3-v-mp4-cenc-golden.m3u8 rename to packager/app/test/testdata/with-ec3-and-hls-single-segment-mp4-encrypted/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-a-mp4-cenc-ad_cues-golden.m3u8 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-mp4-cenc-ad_cues-golden.m3u8 rename to packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/audio.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-av-mp4-master-cenc-golden.m3u8 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-mp4-master-cenc-golden.m3u8 rename to packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output.m3u8 diff --git a/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output_audio.mp4 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output_audio.mp4 new file mode 100644 index 0000000000..2b40464893 Binary files /dev/null and b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output_audio.mp4 differ diff --git a/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output_video.mp4 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output_video.mp4 new file mode 100644 index 0000000000..43bfd90f1f Binary files /dev/null and b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/output_video.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-v-mp4-cenc-ad_cues-golden.m3u8 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-mp4-cenc-ad_cues-golden.m3u8 rename to packager/app/test/testdata/with-hls-single-segment-mp4-encrypted-and-ad-cues/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-a-mp4-cenc-golden.m3u8 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/audio.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-mp4-cenc-golden.m3u8 rename to packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/audio.m3u8 diff --git a/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output.m3u8 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output.m3u8 new file mode 100644 index 0000000000..b3f0c6f629 --- /dev/null +++ b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output.m3u8 @@ -0,0 +1,7 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1111340,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=640x360,AUDIO="default-audio-group" +video.m3u8 diff --git a/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output_audio.mp4 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output_audio.mp4 new file mode 100644 index 0000000000..2b40464893 Binary files /dev/null and b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output_audio.mp4 differ diff --git a/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output_video.mp4 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output_video.mp4 new file mode 100644 index 0000000000..43bfd90f1f Binary files /dev/null and b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/output_video.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-v-mp4-cenc-golden.m3u8 b/packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/video.m3u8 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-mp4-cenc-golden.m3u8 rename to packager/app/test/testdata/with-hls-single-segment-mp4-encrypted/video.m3u8 diff --git a/packager/app/test/testdata/bear-640x360-av-live-static-ad_cues-golden.mpd b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-live-static-ad_cues-golden.mpd rename to packager/app/test/testdata/with-live-static-profile-and-ad-cues/output.mpd diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-1.m4s b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-1.m4s new file mode 100644 index 0000000000..f37ed8a13c Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-1.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-2.m4s b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-2.m4s new file mode 100644 index 0000000000..bf0257dff3 Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-2.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-3.m4s b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-3.m4s new file mode 100644 index 0000000000..4efd91c5dd Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-3.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-init.mp4 b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-init.mp4 new file mode 100644 index 0000000000..a703e29da8 Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_audio-init.mp4 differ diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-1.m4s b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-1.m4s new file mode 100644 index 0000000000..e8a21a613c Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-1.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-2.m4s b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-2.m4s new file mode 100644 index 0000000000..311f93260e Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-2.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-3.m4s b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-3.m4s new file mode 100644 index 0000000000..71e371e17a Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-3.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-init.mp4 b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-init.mp4 new file mode 100644 index 0000000000..b183dc5d1c Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile-and-ad-cues/output_video-init.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-av-live-static-golden.mpd b/packager/app/test/testdata/with-live-static-profile/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-640x360-av-live-static-golden.mpd rename to packager/app/test/testdata/with-live-static-profile/output.mpd diff --git a/packager/app/test/testdata/with-live-static-profile/output_audio-1.m4s b/packager/app/test/testdata/with-live-static-profile/output_audio-1.m4s new file mode 100644 index 0000000000..f37ed8a13c Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_audio-1.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile/output_audio-2.m4s b/packager/app/test/testdata/with-live-static-profile/output_audio-2.m4s new file mode 100644 index 0000000000..bf0257dff3 Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_audio-2.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile/output_audio-3.m4s b/packager/app/test/testdata/with-live-static-profile/output_audio-3.m4s new file mode 100644 index 0000000000..4efd91c5dd Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_audio-3.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile/output_audio-init.mp4 b/packager/app/test/testdata/with-live-static-profile/output_audio-init.mp4 new file mode 100644 index 0000000000..a703e29da8 Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_audio-init.mp4 differ diff --git a/packager/app/test/testdata/with-live-static-profile/output_video-1.m4s b/packager/app/test/testdata/with-live-static-profile/output_video-1.m4s new file mode 100644 index 0000000000..e8a21a613c Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_video-1.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile/output_video-2.m4s b/packager/app/test/testdata/with-live-static-profile/output_video-2.m4s new file mode 100644 index 0000000000..311f93260e Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_video-2.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile/output_video-3.m4s b/packager/app/test/testdata/with-live-static-profile/output_video-3.m4s new file mode 100644 index 0000000000..71e371e17a Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_video-3.m4s differ diff --git a/packager/app/test/testdata/with-live-static-profile/output_video-init.mp4 b/packager/app/test/testdata/with-live-static-profile/output_video-init.mp4 new file mode 100644 index 0000000000..b183dc5d1c Binary files /dev/null and b/packager/app/test/testdata/with-live-static-profile/output_video-init.mp4 differ diff --git a/packager/app/test/testdata/bear-avc3-wvm-golden.mpd b/packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-avc3-wvm-golden.mpd rename to packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output.mpd diff --git a/packager/app/test/testdata/bear-320x180-avc3-wvm-golden.mp4 b/packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_0.mp4 similarity index 100% rename from packager/app/test/testdata/bear-320x180-avc3-wvm-golden.mp4 rename to packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_0.mp4 diff --git a/packager/app/test/testdata/bear-320x180-a-wvm-golden.mp4 b/packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_1.mp4 similarity index 100% rename from packager/app/test/testdata/bear-320x180-a-wvm-golden.mp4 rename to packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_1.mp4 diff --git a/packager/app/test/testdata/bear-640x360-avc3-wvm-golden.mp4 b/packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_2.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-avc3-wvm-golden.mp4 rename to packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_2.mp4 diff --git a/packager/app/test/testdata/bear-640x360-a-wvm-golden.mp4 b/packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_3.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-a-wvm-golden.mp4 rename to packager/app/test/testdata/wvm-input-without-stripping-parameters-set-nalus/output_3.mp4 diff --git a/packager/app/test/testdata/bear-wvm-golden.mpd b/packager/app/test/testdata/wvm-input/output.mpd similarity index 100% rename from packager/app/test/testdata/bear-wvm-golden.mpd rename to packager/app/test/testdata/wvm-input/output.mpd diff --git a/packager/app/test/testdata/bear-320x180-v-wvm-golden.mp4 b/packager/app/test/testdata/wvm-input/output_0.mp4 similarity index 100% rename from packager/app/test/testdata/bear-320x180-v-wvm-golden.mp4 rename to packager/app/test/testdata/wvm-input/output_0.mp4 diff --git a/packager/app/test/testdata/wvm-input/output_1.mp4 b/packager/app/test/testdata/wvm-input/output_1.mp4 new file mode 100644 index 0000000000..1de4b6a9e8 Binary files /dev/null and b/packager/app/test/testdata/wvm-input/output_1.mp4 differ diff --git a/packager/app/test/testdata/bear-640x360-v-wvm-golden.mp4 b/packager/app/test/testdata/wvm-input/output_2.mp4 similarity index 100% rename from packager/app/test/testdata/bear-640x360-v-wvm-golden.mp4 rename to packager/app/test/testdata/wvm-input/output_2.mp4 diff --git a/packager/app/test/testdata/wvm-input/output_3.mp4 b/packager/app/test/testdata/wvm-input/output_3.mp4 new file mode 100644 index 0000000000..d7a846f1b8 Binary files /dev/null and b/packager/app/test/testdata/wvm-input/output_3.mp4 differ