<p dir="ltr">Thanks for your reply.</p>
<p dir="ltr">It will help. I didn't think about it.</p>
<p dir="ltr">After analysing it seems that the function av_read_frame() is take a lot of time. I was thinking of using another method instead of this one. But couldn't find for the moment... </p>
<p dir="ltr">Math</p>
<div class="gmail_quote">Le 17 sept. 2014 12:19, "Taha Ansari" <<a href="mailto:mtaha.ansari@gmail.com">mtaha.ansari@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><span style="font-family:arial,helvetica,sans-serif"><font>A quick look at your code, you are opening up the encoder each time you write to disk:</font><br><br><font><span lang="EN-US">png_encoder_codec
</span><span lang="EN-US">=</span><span lang="EN-US"> avcodec_find_encoder_by_name (</span><span lang="EN-US">"png"</span><span lang="EN-US">)</span><span lang="EN-US">;<br><br></span></font></span></div><div class="gmail_extra"><font><span style="font-family:arial,helvetica,sans-serif"><span lang="EN-US">Do it just once, like at startup time, and use encoding routines on this </span><br><span lang="EN-US">png_encoder_codec later.<br><br></span></span></font></div><div class="gmail_extra"><span style="font-size:10pt;font-family:Consolas;color:black" lang="EN-US"><font><span style="font-family:arial,helvetica,sans-serif">Hope this helps</span></font><br></span></div></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>