Skip to content

Speed Optimization

Taner Sener edited this page Oct 3, 2022 · 2 revisions

By default, top level build scripts (android.sh, ios.sh, linux.sh, macos.sh and tvos.sh) build FFmpeg optimized for size. However, there is an optional --speed flag supported by top level scripts which optimizes FFmpeg for speed.

This flag enables build optimizations that increase the speed of FFmpeg operations. Unfortunately, these optimizations also cause library size to increase too much. This is why it is not set by default.

You can see the effect of enabling --speed flag on Android in the following table.

arm-v7a arm-v7a-neon arm64-v8a x86 x86-64
default library size 10765756 10991128 10959784 12687464 13505440
library size with --speed flag 15185340 15250968 14707528 17726056 18473376
difference +%41 +%39 +%34 +%40 +%37
Clone this wiki locally