[Libav-user] avcodec_encode_video2 failed (returned -12 as return value)

Mark Ma gbstack08 at gmail.com
Fri Nov 22 07:34:29 CET 2013


On 2013/11/22 2:36, Nicolas George wrote:
> Le primidi 1er frimaire, an CCXXII, Mark Ma a écrit :
>> I am using the latest release version for windows.
>> After calling av_strerror(), I found the error buffer string is
>> "Error number -12 occurred".. (I have set the error buffer size to
> This version seems rotten, as it returns an error code it is not able to
> decode afterwards.
>
> On Linux, -12 means ENOMEM. You could try and see if the memory use raises
> before encoding fails.
>
> Regards,
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
Hi,
Exactly it's caused by memory use raises (I found I didn't call 
av_free_packet after calling avcodec_encode_video2()). Thanks very much

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131122/51cae402/attachment.html>


More information about the Libav-user mailing list