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 <[email protected]> > 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 > [email protected]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 > > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > > -- Francesco Damato
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
