<html><head>
<meta content="text/html; charset=windows-1252" 
http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">Doesnt the decoder do this
 as default? If I just use the API to decode a video it creates multiple
 threads automatically.<br>
<br>
<br>
Kalileo wrote:
<blockquote 
cite="mid:D70024D2-8DEF-4F8D-95C1-D3957DB1C455@universalx.net" 
type="cite">
  <pre wrap="">On Jul 30, 2013, at 21:26 , Adi Shavit wrote:
</pre>
  <blockquote type="cite"><blockquote type="cite"><pre wrap="">You can also try to use multithreaded decoder. But this is not going
to help if you have more video streams in parallel than CPU cores.
</pre></blockquote><pre wrap="">I can give it a shot.
How do I set it up?
</pre></blockquote>
  <pre wrap=""><!---->

I think Alex means something like this, here as an example with 2 threads:

AVDictionary *opts = NULL;  
av_dict_set(&opts, "threads", "2", 0);
if (avcodec_open2(pVideoCodecCtx, pVideoCodec, &opts) 
    …



_______________________________________________
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>
<br>
</body></html>