[Libav-user] FFMPEG decoding H264 and Multithreading

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Feb 9 01:19:43 CET 2013


Jérôme SALAYET <jerome.salayet at ...> writes:

> if I decode one stream, my CPU usage is very low 
> (so good). If I decompress two streams, it's ok too. 
> But if I had a third decompression, my CPU increase 
> from 2-5% to 25-30%.So, I try to activate 
> Mutlithreading in FFMPEG

You should use multi-threading if you want 
to decrease overall decoding time, if you 
need minimal cpu usage, force -threads 1
(multithreading always has an overhead).

> (compiling with --enable-w32threads) with Mingw

I believe this should not be necessary, if it is 
there may be a bug (that should be reported).

Carl Eugen



More information about the Libav-user mailing list