change from CodecID to AVCodecID(according to ffmpeg change.)
change from encode to encode_sub?(according to ffmpeg change.)