<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 September 2016 at 14:12, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:ceffmpeg@gmail.com" target="_blank">ceffmpeg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2016-09-07 17:59 GMT+02:00 Kristijonas Malisauskas <<a href="mailto:km@sportcaster.dk">km@sportcaster.dk</a>>:<br>
> First thing i would suggest doing is setting your<br>
> AVCodecContext to use more threads<br>
><br>
> for ex: videoCtx->thread_count = 4;<br>
<br>
</span>I believe default is to use all cpu cores.<br>
<br>
Please do not top-post here, Carl Eugen</blockquote><div><br></div><div>Apologies - I was following what other people were doing - re top-posting.</div><div><br></div><div>When I set the thread_count correctly (using a dict, setting to "auto" and before the codec was opened) based on a later reply it made a significant difference to speed. So my guess would be that it defaults to 1 CPU core or 1 thread.</div><div><br></div><div>Simon</div></div></div></div>