<div dir="ltr">Hi Mark, <div><br></div><div>now i'm getting yuv frames from a AVI video file (<span style="font-family:'times new roman','new york',times,serif;font-size:16px">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.) </span></div>
<div><span style="font-family:'times new roman','new york',times,serif;font-size:16px"><br></span></div><div><span style="font-family:'times new roman','new york',times,serif;font-size:16px">Now i want to encode this frames in h264. </span></div>
<div><span style="font-family:'times new roman','new york',times,serif;font-size:16px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Any suggestion is appreciated.</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Thanks</span><span style="font-family:'times new roman','new york',times,serif;font-size:16px"><br>
</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/22 Mark Ma <span dir="ltr"><<a href="mailto:gbstack08@gmail.com" target="_blank">gbstack08@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<div>On 2013/11/22 2:36, Nicolas George
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<pre>Le primidi 1er frimaire, an CCXXII, Mark Ma a écrit :
</pre>
<blockquote type="cite">
<pre>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
</pre>
</blockquote>
<pre>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,
</pre>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
Libav-user mailing list
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
</div></blockquote>
Hi,<br>
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<br>
<br>
</div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Francesco Damato
</div>