class EncoderTest(unittest.TestCase): def setUp(self): #this statement should go clear if mencoder dependency is satisfied self.encoder = Encoder() self.listener = TestListsner() self.encoder.add_listener(self.listener) def testSimpleOnePass(self): self.listener.reset() settings = "-ovc lavc -lavcopts vcodec=mpeg4 -oac copy -vf scale=320:-2".split(" ") self.encoder.encode("../test_data/small.ogg","../test_data/results/small_mpeg4.avi", settings) self.assertTrue(self.listener.isStarted) self.assertTrue(self.listener.isFinished) self.assertTrue(len(self.listener.progresses) > 0)
def setUp(self): #this statement should go clear if mencoder dependency is satisfied self.encoder = Encoder() self.listener = TestListsner() self.encoder.add_listener(self.listener)