[Libav-user] avcodec_open2 returns -22

Taha Ansari mtaha.ansari at gmail.com
Wed Jun 17 08:08:33 CEST 2015

On Wed, Jun 17, 2015 at 2:17 AM, Gonzalo Garramuno <ggarra13 at gmail.com>

> 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.

Since he mentions Windows 7, I assume he is using pre-built packages from
zeranoe site (as you mention). These builds contain proprietary codec(s)
like x264 (non GPL).

@Kevin: maybe you have some bare minimum code with you that can produce
this error, which people can have a look?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150617/aa03ec19/attachment.html>

More information about the Libav-user mailing list