def test_open_container(self): mkv = shane.open(SAMPLES / "mkv_container.mkv") mp4 = shane.open(SAMPLES / "mp4_container.mp4") avi = shane.open(SAMPLES / "avi_container.avi") self.assertIsInstance(mkv, shane._container.Container) self.assertIsInstance(mp4, shane._container.Container) self.assertIsInstance(avi, shane._container.Container)
def test_open_stream(self): mkv = shane.open(SAMPLES / "mkv_stream.mkv") avi = shane.open(SAMPLES / "avi_stream.avi") mp4 = shane.open(SAMPLES / "mp4_stream.mp4") aac = shane.open(SAMPLES / "aac_stream.aac") ac3 = shane.open(SAMPLES / "ac3_stream.ac3") srt = shane.open(SAMPLES / "srt_stream.srt") self.assertIsInstance(mkv, shane._streams.VideoStream) self.assertIsInstance(avi, shane._streams.VideoStream) self.assertIsInstance(mp4, shane._streams.VideoStream) self.assertIsInstance(aac, shane._streams.AudioStream) self.assertIsInstance(ac3, shane._streams.AudioStream) self.assertIsInstance(srt, shane._streams.SubtitleStream)
def setUp(self): mkv = shane.open(SAMPLES / "mkv_stream.mkv") avi = shane.open(SAMPLES / "avi_stream.avi") mp4 = shane.open(SAMPLES / "mp4_stream.mp4")
def setUp(self): mkv = shane.open(SAMPLES / "mkv_container.mkv") mp4 = shane.open(SAMPLES / "mp4_container.mp4") avi = shane.open(SAMPLES / "avi_container.avi")
def setUp(self): srt = shane.open(SAMPLES / "srt_stream.srt")
def setUp(self): aac = shane.open(SAMPLES / "aac_stream.aac") ac3 = shane.open(SAMPLES / "ac3_stream.ac3")