aom: improve AVIF encoding performance by ~2x #496
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Available from aom v3.1.0, the new "all intra" usage mode is now considered its best setting for still images.
From what I can tell, it uses a single pass and skips the keyframe logic (i.e. everything is intra-frame), resulting in significantly fewer memory allocations in addition to almost halving CPU time. The compression ratio is nearly identical, sometimes better, and the worst case I've found so far was 0.8% larger.
https://aomedia.googlesource.com/aom/+/refs/tags/v3.1.0
libavif has already adopted this as the default - see AOMediaCodec/libavif#539
Homebrew currently provides aom v3.1.0 so the macOS CI job will test this.