I am trying to use FFMPEG on windows. avcodec_find_encoder always returns NULL for any codec. I have checked using ffmpeg.exe using -formats, its lists a large number of formats, which when checked with avcodec_find_encoder always return NULL.