コード例 #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)
コード例 #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)
コード例 #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")
コード例 #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")
コード例 #5
0
 def setUp(self):
     srt = shane.open(SAMPLES / "srt_stream.srt")
コード例 #6
0
 def setUp(self):
     aac = shane.open(SAMPLES / "aac_stream.aac")
     ac3 = shane.open(SAMPLES / "ac3_stream.ac3")