Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def setUp(self):
     mkv = shane.open(SAMPLES / "mkv_stream.mkv")
     avi = shane.open(SAMPLES / "avi_stream.avi")
     mp4 = shane.open(SAMPLES / "mp4_stream.mp4")
Exemplo n.º 4
0
 def setUp(self):
     mkv = shane.open(SAMPLES / "mkv_container.mkv")
     mp4 = shane.open(SAMPLES / "mp4_container.mp4")
     avi = shane.open(SAMPLES / "avi_container.avi")
Exemplo n.º 5
0
 def setUp(self):
     srt = shane.open(SAMPLES / "srt_stream.srt")
Exemplo n.º 6
0
 def setUp(self):
     aac = shane.open(SAMPLES / "aac_stream.aac")
     ac3 = shane.open(SAMPLES / "ac3_stream.ac3")