[FFmpeg-devel] [PATCH]Fix possible crash with -threads 0
Fri Nov 26 18:28:56 CET 2010
Le 26 nov. 2010 ? 11:15, Alexander Strange a ?crit :
> The difficulty isn't in finding the number of CPUs but in deciding how to allocate threads.
> For a normal encode ffmpeg opens four codecs (audio/video decoder/encoder), and all of them could somehow benefit from multiple threads. Since there aren't multithreaded audio codecs yet, maybe giving all the extra threads to the video encoder is best.
Yes of course, and I suppose the optimal thread count depends usually on the macroblock count, ie. the frame size.
More information about the ffmpeg-devel