avcodec: check that format in to encoder is VID_FMT_YUV420P
video: add VIDENC_INTERNAL_FMT, fixes #3