[Libav-user] avcodec_open2 returns -22

Gonzalo Garramuno ggarra13 at gmail.com
Tue Jun 16 23:17:47 CEST 2015


On 16/06/15 09:06, Kevin J. Brooks wrote:
> Yes I am.  For more information, I am developing on Windoze 7.
avcodec_open2 can fail if you lack the library for the codec you want to 
decode or encode.  For example, libx264.  The libraries in 
ffmpeg.zeranoe.com contain all codecs, but they are GPL only.  You 
should try them first and see if the problem goes away.  If it does, you 
know you have to compile ffmpeg with different flags.

-- 
Gonzalo Garramuño



More information about the Libav-user mailing list