[Libav-user] Speeding up H264 decoding
Simon Brown
simon.k.brown at gmail.com
Thu Sep 8 16:24:22 EEST 2016
On 8 September 2016 at 14:12, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2016-09-07 17:59 GMT+02:00 Kristijonas Malisauskas <km at sportcaster.dk>:
> > First thing i would suggest doing is setting your
> > AVCodecContext to use more threads
> >
> > for ex: videoCtx->thread_count = 4;
>
> I believe default is to use all cpu cores.
>
> Please do not top-post here, Carl Eugen
Apologies - I was following what other people were doing - re top-posting.
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.
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160908/07f65479/attachment.html>
More information about the Libav-user
mailing list