Use JPEG for the first frame of the demo video
Don't reload the previous frame while encoding each frame -- gives a nice speed boost