[FFmpeg-devel] [PATCH v3] ffmpeg CLI multithreading

Marton Balint cus at passwd.hu
Wed Dec 6 21:29:01 EET 2023



On Wed, 6 Dec 2023, Anton Khirnov wrote:

> Hi,
> this should hopefully be the last version of this set. If nobody has new
> comments, I will push it in a few days.

In some cases the performance penalty because of threading is quite 
significant:

Example command line:

ffmpeg -f lavfi -i sine -af volume=6dB -f null none

After latest threading changes: speed=810x
Before latest threading changes: speed=1.13e+03x
With 6.0 branch: speed=1.43e+03x
With 5.1 branch: speed=2.92e+03x

This is a significant decline from 5.1, getting slower with each 
release... Is there anything that can be done about this?

Thanks,
Marton


More information about the ffmpeg-devel mailing list