[Cin] encode2mpeg with two small fixes