[Libav-user] avcodec_open2 error when running encoding_decodingexample
stefano.masneri at brain.mpg.de
Tue Apr 26 16:12:10 CEST 2016
From: Libav-user [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of francesco at bltitalia.com
Sent: Dienstag, 26. April 2016 15:06
To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
Subject: Re: [Libav-user] avcodec_open2 error when running encoding_decodingexample
I solved setting a flag "Treat enum types as ints" in compiler settings.
I hope this help.
At 12.56 26/04/2016 +0000, you wrote:
>I was trying to update my application to FFmpeg 3.0 but I couldn't get it work.
>To see what was going on I was trying to run the decoding_encoding.c
example, and I keep getting an error, even though I don't change anything meaningful.
>The function returning an error is
>avcodec_open2(c, codec, NULL);
>with returned value -22.
>On the console I receive the following message:
>Could not open codec
>[libx264 @ 0000000000597180] Specified pixel format -1 is invalid or
>c->pix_fmt is AV_PIX_FMT_YUV420P;
>I tried it as well with the latest snapshot, but the error remains. I
using windows 7 64 bit, the libraries I am using are the ones retrieved from zeranoe.
>Any idea of what am I doing wrong?
Thanks. Any ideas on how to do that on Visual Studio 2015?
Libav-user mailing list
Libav-user at ffmpeg.org
More information about the Libav-user