intergrated jpegenc into Videoencoder