top | item 46839018

(no title)

out_of_protocol | 29 days ago

Why .avifs when we have .webm already? Seems like overcomplicated replacement for already existing de-facto standard.

discuss

order

jjcm|29 days ago

Nitpick - the question should have been:

> Why .avifs when we have .webps already?

Webp and avif are both image containers, both of which support animated images. The key difference here between avif|mp4 and webp|webm is the mime type and the associated UX with each of these. Image types are presented without controls, and are looping by default if they have multiple frames. Video types are presented with controls and with many other options.

It's a good question as to why avif though. Webp is entirely sufficient in most situations. Where AV1 as a codec shines is for more advanced compression, which may not be necessary for a simple looped gif-analog, but you'll still get some gains. The gains come at a processing speed tradeoff though, so they're good to use when you have advanced hardware on a low-bandwidth connection. I personally don't find the tradeoff worth it, so all of my media encoding pipelines opt for webp/webm by default.

dagmx|29 days ago

1. How does one say that webm is the de facto standard? It’s common but not so ubiquitous that it can’t be replaced easily.

2. AVIF is a better codec with better compression, bit depth and hardware decode support.

thisislife2|29 days ago

I think OP is referring to the container than the codec when they talk about .avif and .webm - https://www.webmproject.org/docs/container/ (e.g. MP4 or MKV are container formats that support multiple codecs within them like OPUS, AVC, HEVC, AV1, mp3 etc).

out_of_protocol|29 days ago

1. It's VERY common, sometimes pretending to be a .gif file. Many major image hosters are serving .webm even if users upload gif files.

2. AVIF is not a codec but a container. Webm also can contain AV1 video (but usually contains VP9). Also, difference between VP9 and AV1 is not that huge to be noticable on small gif-like animated pictures

nine_k|29 days ago

If it has better hardware decode support, why are there complaints in another thread that a folder full of avifs would slow a computer to a crawl? I'd expect hardware-accelerated decoding to be smooth and efficient.

IshKebab|29 days ago

Very different UX. They autoplay, no controls, no fullscreen, no sound, easy to copy, etc.

socalgal2|29 days ago

videos have all of this too

AlienRobot|29 days ago

WebP also supports animation.