AVX-512 Optimization for FFmpeg Shows Wild Improvement on AMD Ryzen (2025)
The latest AVX-512 optimization for FFmpeg has significantly improved performance on AMD Ryzen processors. The new code path achieves 18 times the speed of standard C code, surpassing the previous AVX2 optimization. This enhancement is particularly beneficial for users with AMD Zen 4 and Zen 5 CPUs.
- ▪The AVX-512 optimized code path for FFmpeg is 18 times faster than common C code.
- ▪The optimization specifically targets the uyvytoyuv422 function for format conversion.
- ▪Benchmarks were conducted using an AMD Ryzen 9 7950X processor.
Opening excerpt (first ~120 words) tap to expand
Latest AVX-512 Optimization For FFmpeg Shows Wild Improvement On AMD Ryzen Written by Michael Larabel in Multimedia on 18 February 2025 at 08:28 PM EST. 60 Comments Merged today for the widely-used FFmpeg open-source multimedia library was yet another AVX-512 optimized code path... Compared to the pure C code, the AVX2 code path was 10.98x faster while this new AVX-512 code path clocks in at 18x the performance of the common C code. The latest FFmpeg code seeing the AVX-512 treatment is the uyvytoyuv422 function for UYVY to YUV422 format conversion. The AVX-512 optimized code path via hand-written Assembly is a great benefit here. AVX-512 namely found with Intel Xeon processors or all AMD Ryzen and EPYC processors since Zen 4.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Phoronix.