Closed mgenware closed 11 months ago
Seems like a regression introduced in 0.11.0
, 0.10.1
works fine.
libavif/core
This subspec is not enough. libavif/core
does not contain any codec, just dummy.
Seems break change. But this is the only way to avoid aom
default inject to your dependencies. (For user who don't want aom at all)
You at leat need to choose one codec when you use CocoaPods
If you need aom:
pod 'libavif/libaom`
If you don't need aom at all, but need AVIF encoding, use:
pod 'libavif/librav1e`
or
pod 'libavif/svt-av1`
aom By default
This is no-longer correct for CocoaPods. I'll change the readme.
Previouslly aom
actually default and not avoidable
, you can not disable aom. It always download and link to your App, which is not we want.
@mgenware Please check the updated README again 🙏
https://github.com/SDWebImage/SDWebImageAVIFCoder/commit/10b939f7e576bdaeed781f449734c64ae744a689
For your case, if you choose to use aom, use pod 'libavif/libaom'
is ok
or if you want faster AVIF encoding (aom using C-based software encoding is slowwwwwww), use:
pod 'libavif', :subspecs => ['libdav1d', 'librav1e']
See our demo's Podfile: https://github.com/SDWebImage/SDWebImageAVIFCoder/blob/master/Example/Podfile#L6
The rav1e is 10x faster than aom for our Demo's AVIF file...So this is why I not recommended to use aom for encoding
Thanks for the update. Right, libaom is so slow it's barely usable on any apple devices at the moment. Will use rav1e instead.
I'm on latest 0.11.0. Couldn't get the README example code to work on macOS Sonoma:
My current lock file:
It seems that libaom is missing from SDWebImageAVIFCoder dependencies.
As per SDWebImageAVIFCoder README:
This seems not true anymore. The libavif repo instead says "No AV1 codecs are enabled by default. Enable them by enabling any of the following CMake options (e.g. -DAVIF_CODEC_AOM=ON)".