FFMPEG :Speed Gain libx264 codec Threads


0

Мне интересно, насколько выигрыш в скорости при использовании нескольких потоков (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.


As i read per default, it uses just one thread, so would i have 16 times speed gain, when i up it to 16?
user1767754

You may start loosing efficiency after 8 or so, but it really depends on your CPU, RAM speed, other x264 options, etc.
szatmary
Используя наш сайт, вы подтверждаете, что прочитали и поняли нашу Политику в отношении файлов cookie и Политику конфиденциальности.
Licensed under cc by-sa 3.0 with attribution required.