On Thu, Nov 21, 2013 at 06:37:16PM +0800, Mark Ma wrote:
> Hi everyone,
> Now I'm getting yuv frames from a video monitor every second and call
> avcodec_encode_video2() to convert them to mpeg frame. At first
> avcodec_encode_video2() works well, but after about 1 minute, it keeps
> returning -12 as return value.  But what's the meaning of -12?
> 
> Any suggestion is appreciated.
> 

Try:

  #include <libavutil/error.h>

 ret = avcodec_encode_video2(...);
 if (ret < 0)
   av_log(0, 0, "Err: %s\n", av_err2str(ret));

-- 
Clément B.

Attachment: pgpbwME8cjqMe.pgp
Description: PGP signature

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to