[Libav-user] avcodec_open2 error when running encoding_decodingexample

Masneri, Stefano stefano.masneri at brain.mpg.de
Wed Apr 27 09:26:26 CEST 2016


-----Original Message-----
From: Libav-user [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Masneri, Stefano
Sent: Dienstag, 26. April 2016 16:12
To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
Subject: Re: [Libav-user] avcodec_open2 error when running encoding_decodingexample

-----Original Message-----
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

Hi
I solved setting a flag "Treat enum types as ints" in compiler settings.
I hope this help.
regards

At 12.56 26/04/2016 +0000, you wrote:
>Content-Language: en-US
>Content-Type: multipart/alternative;
>	boundary="_000_CB7EE9D2A0EC8547AA5983AD458E2A671CE64D37umexcdaga05umgw_"
>
>Hi
>
>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 
>not
supported
>
>c->pix_fmt is AV_PIX_FMT_YUV420P;
>
>I tried it as well with the latest snapshot, but the error remains. I 
>am
using windows 7 64 bit, the libraries I am using are the ones retrieved from zeranoe.
>
>Any idea of what am I doing wrong?
>Best,
>

FYI the issue disappear with FFmpeg 2.8.6
Regards

 

_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


More information about the Libav-user mailing list