[Libav-user] avcodec_encode_video2 failed (returned -12 as return value)
Francesco Damato
francesco.damato7 at gmail.com
Wed Nov 27 15:22:09 CET 2013
Hi Mark,
now i'm getting yuv frames from a AVI video file (I have the doc/examples
programs compiled and running. I use the program demuxing.c to decode an
AVI file. From the source code, it looks it calls its own subroutine
decode_packet() to decode the next video or audio packet, and that
subroutine calls avcodec_decode_video2()to decode the next frame.)
Now i want to encode this frames in h264.
Any suggestion is appreciated.
Thanks
2013/11/22 Mark Ma <gbstack08 at gmail.com>
> 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 listLibav-user at ffmpeg.orghttp://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
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
--
Francesco Damato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131127/7e11379a/attachment.html>
More information about the Libav-user
mailing list