def test_extract(self): if "mpg" in encoding.encoders(): eframes = pjoin(output_dir,"extract_out_%0m4d.png") encoding.encode(iframes,pjoin(output_dir,"wave.movie.mpg")) encoding.extract(pjoin(output_dir,"wave.movie.mpg"),eframes) ofile = pjoin(output_dir,"wave.movie.extract.and.reencode.mpg") encoding.encode(eframes,ofile) self.assertTrue(check_encoded_file(ofile))
def test_extract(self): if "mpg" in encoding.encoders(): eframes = pjoin(output_dir, "extract_out_%0m4d.png") encoding.encode(iframes, pjoin(output_dir, "wave.movie.mpg")) encoding.extract(pjoin(output_dir, "wave.movie.mpg"), eframes) ofile = pjoin(output_dir, "wave.movie.extract.and.reencode.mpg") encoding.encode(eframes, ofile) self.assertTrue(check_encoded_file(ofile))