slow decoding of animated AVIF images

Safari is supposed to support animated AVIF images since version 16, but the ones I've tested perform very poorly, even on an M4 Mac Mini running Sequoia 15.1.1.

I believe Safari delegates decoding to the operating system itself, so this issue also happens in Live Preview in the finder, when I try to preview a file.

Sample file here: https://s3.us-west-2.amazonaws.com/cdn.paintera.org/test/sample.avif

322KB file, 5 seconds long, 12fps

This plays perfectly on Chrome on Mac OS, but is slow and laggy on Safari and Live Preview (it takes about 6.5 seconds to finish the 5 second video).

Does anyone know how to fix this or workaround this issue?

Hello @skunkwerk, thank you for your post. Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include a sysdiagnose and/or minimal test Xcode project, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

thanks, I actually filed the bug reports a few days ago, but was hoping someone else on the forum would have some insights as well.

for iOS Safari: FB16252684

for MacOS Safari: FB16252692

As it's likely an OS-level issue, I'm not sure if I should create other issues but have left it at Safari for now.

slow decoding of animated AVIF images
 
 
Q