avcodec_encode_video is deprecated in libavcodec54