- don't use 'avformat_alloc_output_context2'
- don't use 'av_opt_set_defaults'
- use AV_CODEC_ID_MPEG4 instead of CODEC_ID_MPEG4
- don't use 'avcodec_get_name'