<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2013/11/21 20:19, Clément Bœsch
wrote:<br>
</div>
<blockquote cite="mid:20131121121921.GG27331@leki.pkh.me"
type="cite">
<pre wrap="">On Thu, Nov 21, 2013 at 07:56:40PM +0800, Mark Ma wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 2013/11/21 19:40, Clément Bœsch wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Thu, Nov 21, 2013 at 06:37:16PM +0800, Mark Ma wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">Try:
#include <libavutil/error.h>
ret = avcodec_encode_video2(...);
if (ret < 0)
av_log(0, 0, "Err: %s\n", av_err2str(ret));
</pre>
</blockquote>
<pre wrap="">
Hi,
After including error.h and using av_err2str(), I got following compilation error: Could not find the identifier "av_err2str"
</pre>
</blockquote>
<pre wrap="">
This macro was added in Jun 2012. Make sure you are up-to-date. You can
still look at av_strerror() which is older.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
</blockquote>
Hi,<br>
I am using the latest release version for windows.<br>
After calling av_strerror(), I found the error buffer string is
"Error number -12 occurred".. (I have set the error buffer size to
200)<br>
</body>
</html>