[Libav-user] Recommended thread count to record video from rendering software

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Feb 28 13:27:06 CET 2012


John Dexter <jdxsolutions at ...> writes:

> I have a single-thread application which does 3D rendering; it is a
> moderate-heavy user of the single core it uses (~50%). In my quick
> tests, recording the rendered output to video using libav is fastest
> when I use AVCodecContext::thread_count == 3 on my quad-core PC, but
> it's almost identical with it set to 0.

I don't know your use case, but you typically have to set thread much 
higher than num_core if you want maximum performance.

Carl Eugen



More information about the Libav-user mailing list