Мне интересно, насколько выигрыш в скорости при использовании нескольких потоков (16), потому что это больше, чем просто выписывание кадров одновременно? Может кто-нибудь дать какую-то информацию?
I don't know about this specific library, but some tests around the web compare h264 encoding with and without hyperthreading (simplified: twice the threads with more or less half the performance) and it's usually a wash. That means it's pretty close to 2x threads = 2x performance. Things might get more complicated if you want to do realtime encoding.
Peter
Ответы:
2
x264 scales pretty linearly. So doubling the thread will double the FPS ( give or take a few percent due to memory speed CPU cache size and locks). But it may increase the final file size (very) slightly. Especially if you use slice based threading.
Ответы:
x264 scales pretty linearly. So doubling the thread will double the FPS ( give or take a few percent due to memory speed CPU cache size and locks). But it may increase the final file size (very) slightly. Especially if you use slice based threading.
источник