[Libav-user] avcodec_open2 error when running encoding_decodingexample

Masneri, Stefano stefano.masneri at brain.mpg.de
Tue Apr 26 16:39:17 CEST 2016


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

>>
>
>Thanks. Any ideas on how to do that on Visual Studio 2015?
>
>
>Hi
>try displaying error message:
>
>char str_err[256];
>AnsiString stre;
>
>
>    errv = avcodec_open2(c, codec, NULL);
>    if(errv<0)
>    {
>       if(av_strerror(errv,str_err,256)==0){ stre.printf("Error (%s) returned from encoded video",str_err);  }
>         else { stre.printf("Error (%d) returned from encoded video",errv);  }
>    }
>

I get this:
Error (Invalid argument) returned from encoded video

 

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


More information about the Libav-user mailing list