diff --git a/packager/app/test/packager_test.py b/packager/app/test/packager_test.py index eb266bd5fe..4d6b5fe4a5 100755 --- a/packager/app/test/packager_test.py +++ b/packager/app/test/packager_test.py @@ -223,7 +223,9 @@ class PackagerAppTest(unittest.TestCase): if base_ext in ['ts', 'mp4'] and descriptor == 'video': stream.Append('iframe_playlist_name', output_file_name + '-iframe.m3u8') - requires_init_segment = segmented and base_ext not in ['ts', 'vtt'] + requires_init_segment = segmented and base_ext not in [ + 'aac', 'ac3', 'ec3', 'ts', 'vtt' + ] output_file_path = os.path.join(self.tmp_dir, output_file_name) @@ -1061,6 +1063,27 @@ class PackagerFunctionalTest(PackagerAppTest): self._GetFlags(encryption=True, output_hls=True)) self._CheckTestResults('avc-ts-with-encryption') + def testAvcTsAacPackedAudioWithEncryption(self): + # Currently we only support live packaging for ts. + streams = [ + self._GetStream( + 'audio', + output_format='aac', + segmented=True, + hls=True, + test_file='bear-640x360.ts'), + self._GetStream( + 'video', + output_format='ts', + segmented=True, + hls=True, + test_file='bear-640x360.ts') + ] + flags = self._GetFlags(encryption=True, output_hls=True) + + self.assertPackageSuccess(streams, flags) + self._CheckTestResults('avc-ts-aac-packed-audio-with-encryption') + def testAvcTsWithEncryptionAndFairplay(self): # Currently we only support live packaging for ts. self.assertPackageSuccess( @@ -1085,6 +1108,27 @@ class PackagerFunctionalTest(PackagerAppTest): self._GetFlags(encryption=True, output_hls=True)) self._CheckTestResults('avc-ac3-ts-with-encryption') + def testAvcTsAc3PackedAudioWithEncryption(self): + # Currently we only support live packaging for ts. + streams = [ + self._GetStream( + 'audio', + output_format='ac3', + segmented=True, + hls=True, + test_file='bear-640x360-ac3.ts'), + self._GetStream( + 'video', + output_format='ts', + segmented=True, + hls=True, + test_file='bear-640x360-ac3.ts') + ] + flags = self._GetFlags(encryption=True, output_hls=True) + + self.assertPackageSuccess(streams, flags) + self._CheckTestResults('avc-ts-ac3-packed-audio-with-encryption') + def testAvcTsWithEncryptionExerciseEmulationPrevention(self): self.encryption_key = 'ad7e9786def9159db6724be06dfcde7a' # Currently we only support live packaging for ts. @@ -1247,6 +1291,26 @@ class PackagerFunctionalTest(PackagerAppTest): self._GetFlags(encryption=True, output_hls=True)) self._CheckTestResults('ec3-and-hls-single-segment-mp4-encrypted') + def testEc3PackedAudioEncrypted(self): + streams = [ + self._GetStream( + 'audio', + output_format='ec3', + segmented=True, + hls=True, + test_file='bear-640x360-ec3.mp4'), + self._GetStream( + 'video', + output_format='ts', + segmented=True, + hls=True, + test_file='bear-640x360-ec3.mp4') + ] + flags = self._GetFlags(encryption=True, output_hls=True) + + self.assertPackageSuccess(streams, flags) + self._CheckTestResults('ec3-packed-audio-encrypted') + def testHlsSingleSegmentMp4EncryptedAndAdCues(self): self.assertPackageSuccess( self._GetStreams(['audio', 'video'], hls=True), diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-1.aac b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-1.aac new file mode 100644 index 0000000000..18a9a678bb Binary files /dev/null and b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-1.aac differ diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-2.aac b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-2.aac new file mode 100644 index 0000000000..5f7eece6a9 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-2.aac differ diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-3.aac b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-3.aac new file mode 100644 index 0000000000..a829d3fedf Binary files /dev/null and b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio-3.aac differ diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio.m3u8 b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio.m3u8 new file mode 100644 index 0000000000..945e049cfa --- /dev/null +++ b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-audio.m3u8 @@ -0,0 +1,14 @@ +#EXTM3U +#EXT-X-VERSION:6 +## Generated with https://github.com/google/shaka-packager version -- +#EXT-X-TARGETDURATION:2 +#EXT-X-PLAYLIST-TYPE:VOD +#EXTINF:0.975, +bear-640x360-audio-1.aac +#EXT-X-DISCONTINUITY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:0.998, +bear-640x360-audio-2.aac +#EXTINF:0.789, +bear-640x360-audio-3.aac +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-1.ts b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-1.ts new file mode 100644 index 0000000000..c8600d8422 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-1.ts differ diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-2.ts b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-2.ts new file mode 100644 index 0000000000..80d082525f Binary files /dev/null and b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-2.ts differ diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-3.ts b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-3.ts new file mode 100644 index 0000000000..679ea2f35b Binary files /dev/null and b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-3.ts differ diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-iframe.m3u8 b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-iframe.m3u8 new file mode 100644 index 0000000000..ad51e2c4b3 --- /dev/null +++ b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video-iframe.m3u8 @@ -0,0 +1,17 @@ +#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-I-FRAMES-ONLY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.001, +#EXT-X-BYTERANGE:15604@376 +bear-640x360-video-1.ts +#EXTINF:1.001, +#EXT-X-BYTERANGE:18236@376 +bear-640x360-video-2.ts +#EXTINF:0.667, +#EXT-X-BYTERANGE:19928@376 +bear-640x360-video-3.ts +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video.m3u8 b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video.m3u8 new file mode 100644 index 0000000000..2c0fa89542 --- /dev/null +++ b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/bear-640x360-video.m3u8 @@ -0,0 +1,14 @@ +#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, +bear-640x360-video-1.ts +#EXT-X-DISCONTINUITY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.001, +bear-640x360-video-2.ts +#EXTINF:0.734, +bear-640x360-video-3.ts +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/output.m3u8 b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/output.m3u8 new file mode 100644 index 0000000000..4843c11db6 --- /dev/null +++ b/packager/app/test/testdata/avc-ts-aac-packed-audio-with-encryption/output.m3u8 @@ -0,0 +1,9 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="bear-640x360-audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1154997,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=640x360,AUDIO="default-audio-group" +bear-640x360-video.m3u8 + +#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=238897,CODECS="avc1.64001e",RESOLUTION=640x360,URI="bear-640x360-video-iframe.m3u8" diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-1.ac3 b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-1.ac3 new file mode 100644 index 0000000000..55568cff4d Binary files /dev/null and b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-1.ac3 differ diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-2.ac3 b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-2.ac3 new file mode 100644 index 0000000000..9b35fb84d4 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-2.ac3 differ diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-3.ac3 b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-3.ac3 new file mode 100644 index 0000000000..545efd1cbc Binary files /dev/null and b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio-3.ac3 differ diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio.m3u8 b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio.m3u8 new file mode 100644 index 0000000000..1a87fcd62a --- /dev/null +++ b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-audio.m3u8 @@ -0,0 +1,14 @@ +#EXTM3U +#EXT-X-VERSION:6 +## Generated with https://github.com/google/shaka-packager version -- +#EXT-X-TARGETDURATION:2 +#EXT-X-PLAYLIST-TYPE:VOD +#EXTINF:0.975, +bear-640x360-ac3-audio-1.ac3 +#EXT-X-DISCONTINUITY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.010, +bear-640x360-ac3-audio-2.ac3 +#EXTINF:0.801, +bear-640x360-ac3-audio-3.ac3 +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-1.ts b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-1.ts new file mode 100644 index 0000000000..c8600d8422 Binary files /dev/null and b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-1.ts differ diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-2.ts b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-2.ts new file mode 100644 index 0000000000..80d082525f Binary files /dev/null and b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-2.ts differ diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-3.ts b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-3.ts new file mode 100644 index 0000000000..679ea2f35b Binary files /dev/null and b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-3.ts differ diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-iframe.m3u8 b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-iframe.m3u8 new file mode 100644 index 0000000000..2c3bb4b23c --- /dev/null +++ b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video-iframe.m3u8 @@ -0,0 +1,17 @@ +#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-I-FRAMES-ONLY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.001, +#EXT-X-BYTERANGE:15604@376 +bear-640x360-ac3-video-1.ts +#EXTINF:1.001, +#EXT-X-BYTERANGE:18236@376 +bear-640x360-ac3-video-2.ts +#EXTINF:0.667, +#EXT-X-BYTERANGE:19928@376 +bear-640x360-ac3-video-3.ts +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video.m3u8 b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video.m3u8 new file mode 100644 index 0000000000..9c07bb27ba --- /dev/null +++ b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/bear-640x360-ac3-video.m3u8 @@ -0,0 +1,14 @@ +#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, +bear-640x360-ac3-video-1.ts +#EXT-X-DISCONTINUITY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.001, +bear-640x360-ac3-video-2.ts +#EXTINF:0.734, +bear-640x360-ac3-video-3.ts +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/output.m3u8 b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/output.m3u8 new file mode 100644 index 0000000000..781e1a3e47 --- /dev/null +++ b/packager/app/test/testdata/avc-ts-ac3-packed-audio-with-encryption/output.m3u8 @@ -0,0 +1,9 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="bear-640x360-ac3-audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1216576,CODECS="avc1.64001e,ac-3",RESOLUTION=640x360,AUDIO="default-audio-group" +bear-640x360-ac3-video.m3u8 + +#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=238897,CODECS="avc1.64001e",RESOLUTION=640x360,URI="bear-640x360-ac3-video-iframe.m3u8" diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-1.ec3 b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-1.ec3 new file mode 100644 index 0000000000..c0a4ebc021 Binary files /dev/null and b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-1.ec3 differ diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-2.ec3 b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-2.ec3 new file mode 100644 index 0000000000..d9f80c70cf Binary files /dev/null and b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-2.ec3 differ diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-3.ec3 b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-3.ec3 new file mode 100644 index 0000000000..c1aa0c9199 Binary files /dev/null and b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio-3.ec3 differ diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio.m3u8 b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio.m3u8 new file mode 100644 index 0000000000..511099a6cc --- /dev/null +++ b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-audio.m3u8 @@ -0,0 +1,14 @@ +#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.010, +bear-640x360-ec3-audio-1.ec3 +#EXT-X-DISCONTINUITY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.010, +bear-640x360-ec3-audio-2.ec3 +#EXTINF:0.731, +bear-640x360-ec3-audio-3.ec3 +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-1.ts b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-1.ts new file mode 100644 index 0000000000..9421516d5b Binary files /dev/null and b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-1.ts differ diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-2.ts b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-2.ts new file mode 100644 index 0000000000..80d082525f Binary files /dev/null and b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-2.ts differ diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-3.ts b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-3.ts new file mode 100644 index 0000000000..679ea2f35b Binary files /dev/null and b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-3.ts differ diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-iframe.m3u8 b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-iframe.m3u8 new file mode 100644 index 0000000000..4458420b7a --- /dev/null +++ b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video-iframe.m3u8 @@ -0,0 +1,17 @@ +#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-I-FRAMES-ONLY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.001, +#EXT-X-BYTERANGE:15604@376 +bear-640x360-ec3-video-1.ts +#EXTINF:1.001, +#EXT-X-BYTERANGE:18236@376 +bear-640x360-ec3-video-2.ts +#EXTINF:0.667, +#EXT-X-BYTERANGE:19928@376 +bear-640x360-ec3-video-3.ts +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video.m3u8 b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video.m3u8 new file mode 100644 index 0000000000..41cd010295 --- /dev/null +++ b/packager/app/test/testdata/ec3-packed-audio-encrypted/bear-640x360-ec3-video.m3u8 @@ -0,0 +1,14 @@ +#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, +bear-640x360-ec3-video-1.ts +#EXT-X-DISCONTINUITY +#EXT-X-KEY:METHOD=SAMPLE-AES,URI="data:text/plain;base64,MTIzNDU2Nzg5MDEyMzQ1Ng==",IV=0x3334353637383930,KEYFORMAT="identity" +#EXTINF:1.001, +bear-640x360-ec3-video-2.ts +#EXTINF:0.734, +bear-640x360-ec3-video-3.ts +#EXT-X-ENDLIST diff --git a/packager/app/test/testdata/ec3-packed-audio-encrypted/output.m3u8 b/packager/app/test/testdata/ec3-packed-audio-encrypted/output.m3u8 new file mode 100644 index 0000000000..25681d2c37 --- /dev/null +++ b/packager/app/test/testdata/ec3-packed-audio-encrypted/output.m3u8 @@ -0,0 +1,9 @@ +#EXTM3U +## Generated with https://github.com/google/shaka-packager version -- + +#EXT-X-MEDIA:TYPE=AUDIO,URI="bear-640x360-ec3-audio.m3u8",GROUP-ID="default-audio-group",NAME="stream_0",AUTOSELECT=YES,CHANNELS="2" + +#EXT-X-STREAM-INF:BANDWIDTH=1216653,CODECS="avc1.64001e,ec-3",RESOLUTION=640x360,AUDIO="default-audio-group" +bear-640x360-ec3-video.m3u8 + +#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=238897,CODECS="avc1.64001e",RESOLUTION=640x360,URI="bear-640x360-ec3-video-iframe.m3u8"