

def test_OneBlackFrame(self):
    codec = vp8_mpeg_1d.Vp8CodecMpeg1dMode()
    my_optimizer = optimizer.Optimizer(codec)
    videofile = test_tools.MakeYuvFileWithOneBlankFrame('one_black_frame_1024_768_30.yuv')
    encoding = my_optimizer.BestEncoding(1000, videofile)
    encoding.Execute()
    self.assertLess(50.0, my_optimizer.Score(encoding))

dataset/ETHPy150Open google/compare-codecs/lib/vp8_mpeg_1d_unittest.py TestVp8Mpeg1dCodec.test_OneBlackFrame/original